Package org.apache.beam.sdk.io.solr
Class SolrIO.ConnectionConfiguration
- java.lang.Object
-
- org.apache.beam.sdk.io.solr.SolrIO.ConnectionConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- SolrIO
public abstract static class SolrIO.ConnectionConfiguration extends java.lang.Object implements java.io.SerializableA POJO describing a connection configuration to Solr.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConnectionConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SolrIO.ConnectionConfigurationcreate(java.lang.String zkHost)Creates a new Solr connection configuration.SolrIO.ConnectionConfigurationwithBasicCredentials(java.lang.String username, java.lang.String password)If Solr basic authentication is enabled, provide the username and password.
-
-
-
Method Detail
-
create
public static SolrIO.ConnectionConfiguration create(java.lang.String zkHost)
Creates a new Solr connection configuration.- Parameters:
zkHost- host of zookeeper- Returns:
- the connection configuration object
-
withBasicCredentials
public SolrIO.ConnectionConfiguration withBasicCredentials(java.lang.String username, java.lang.String password)
If Solr basic authentication is enabled, provide the username and password.
-
-