org.kitesdk.morphline.solr
Class SolrLocator
java.lang.Object
org.kitesdk.morphline.solr.SolrLocator
public class SolrLocator
- extends Object
Set of configuration parameters that identify the location and schema of a Solr server or
SolrCloud; Based on this information this class can return the schema and a corresponding
DocumentLoader
.
SolrLocator
protected SolrLocator(MorphlineContext context)
SolrLocator
public SolrLocator(com.typesafe.config.Config config,
MorphlineContext context)
getLoader
public DocumentLoader getLoader()
getIndexSchema
public org.apache.solr.schema.IndexSchema getIndexSchema()
toString
public String toString()
- Overrides:
toString
in class Object
toConfig
public com.typesafe.config.Config toConfig(String key)
getCollectionName
public String getCollectionName()
setCollectionName
public void setCollectionName(String collectionName)
getZkHost
public String getZkHost()
setZkHost
public void setZkHost(String zkHost)
getSolrHomeDir
public String getSolrHomeDir()
setSolrHomeDir
public void setSolrHomeDir(String solrHomeDir)
getServerUrl
public String getServerUrl()
setServerUrl
public void setServerUrl(String solrUrl)
getBatchSize
public int getBatchSize()
setBatchSize
public void setBatchSize(int batchSize)
Copyright © 2013–2014. All rights reserved.