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]/
configDir, DATE_FORMAT, dateFormat, DIRECTORY, filename, FILENAME, locale, LOCALE
Constructor and Description |
---|
ZKPropertiesWriter() |
Modifier and Type | Method and Description |
---|---|
protected void |
findDirectory(DataImporter dataImporter,
Map<String,String> params) |
void |
init(DataImporter dataImporter,
Map<String,String> params) |
boolean |
isWritable() |
void |
persist(Map<String,Object> propObjs) |
Map<String,Object> |
readIndexerProperties() |
convertDateToString, convertStringToDate, mapToProperties, propertiesToMap
getCurrentTimestamp
public void init(DataImporter dataImporter, Map<String,String> params)
init
in class SimplePropertiesWriter
protected void findDirectory(DataImporter dataImporter, Map<String,String> params)
findDirectory
in class SimplePropertiesWriter
public boolean isWritable()
isWritable
in class SimplePropertiesWriter
public void persist(Map<String,Object> propObjs)
persist
in class SimplePropertiesWriter
public Map<String,Object> readIndexerProperties()
readIndexerProperties
in class SimplePropertiesWriter
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.