Class ZKPropertiesWriter
- java.lang.Object
-
- org.apache.solr.handler.dataimport.DIHProperties
-
- org.apache.solr.handler.dataimport.SimplePropertiesWriter
-
- org.apache.solr.handler.dataimport.ZKPropertiesWriter
-
public class ZKPropertiesWriter extends SimplePropertiesWriter
A SolrCloud-friendly extension of
SimplePropertiesWriter. This implementation ignores the "directory" parameter, saving the properties file under /configs/[solrcloud collection name]/
-
-
Field Summary
-
Fields inherited from class org.apache.solr.handler.dataimport.SimplePropertiesWriter
configDir, DATE_FORMAT, dateFormat, DIRECTORY, filename, FILENAME, locale, LOCALE
-
-
Constructor Summary
Constructors Constructor Description ZKPropertiesWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfindDirectory(DataImporter dataImporter, Map<String,String> params)voidinit(DataImporter dataImporter, Map<String,String> params)booleanisWritable()voidpersist(Map<String,Object> propObjs)Map<String,Object>readIndexerProperties()-
Methods inherited from class org.apache.solr.handler.dataimport.SimplePropertiesWriter
convertDateToString, convertStringToDate, mapToProperties, propertiesToMap
-
Methods inherited from class org.apache.solr.handler.dataimport.DIHProperties
getCurrentTimestamp
-
-
-
-
Method Detail
-
init
public void init(DataImporter dataImporter, Map<String,String> params)
- Overrides:
initin classSimplePropertiesWriter
-
findDirectory
protected void findDirectory(DataImporter dataImporter, Map<String,String> params)
- Overrides:
findDirectoryin classSimplePropertiesWriter
-
isWritable
public boolean isWritable()
- Overrides:
isWritablein classSimplePropertiesWriter
-
persist
public void persist(Map<String,Object> propObjs)
- Overrides:
persistin classSimplePropertiesWriter
-
readIndexerProperties
public Map<String,Object> readIndexerProperties()
- Overrides:
readIndexerPropertiesin classSimplePropertiesWriter
-
-