public class SchemaConfiguration extends Configuration implements java.io.Serializable
Configuration.Entry
Modifier and Type | Field and Description |
---|---|
private static ConcurrentLog |
log |
private static long |
serialVersionUID |
lazy
Constructor and Description |
---|
SchemaConfiguration() |
SchemaConfiguration(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
void |
add(SolrInputDocument doc,
SchemaDeclaration key,
boolean value) |
void |
add(SolrInputDocument doc,
SchemaDeclaration key,
java.util.Date value) |
void |
add(SolrInputDocument doc,
SchemaDeclaration key,
java.util.Date[] value) |
void |
add(SolrInputDocument doc,
SchemaDeclaration key,
int value) |
void |
add(SolrInputDocument doc,
SchemaDeclaration key,
java.lang.Integer[] value) |
void |
add(SolrInputDocument doc,
SchemaDeclaration key,
java.util.List<?> values) |
void |
add(SolrInputDocument doc,
SchemaDeclaration key,
long value) |
void |
add(SolrInputDocument doc,
SchemaDeclaration key,
java.lang.String value) |
void |
add(SolrInputDocument doc,
SchemaDeclaration key,
java.lang.String[] value) |
boolean |
contains(SchemaDeclaration field) |
void |
fill(SchemaConfiguration other,
boolean defaultActivated) |
static java.util.Date |
getDate(SolrInputDocument doc,
SchemaDeclaration key) |
void |
remove(SolrInputDocument doc,
SchemaDeclaration key) |
void |
remove(SolrInputDocument doc,
java.lang.String key) |
SolrDocument |
toSolrDocument(SolrInputDocument doc,
java.util.Set<java.lang.String> omitFields) |
SolrInputDocument |
toSolrInputDocument(MultiMapSolrParams params) |
SolrInputDocument |
toSolrInputDocument(SolrDocument doc,
java.util.Set<java.lang.String> omitFields)
Convert a SolrDocument to a SolrInputDocument.
|
add, add, add, commit, contains, containsDisabled, entryIterator, main
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, put, putAll, remove, size, subMap, subMap, tailMap, tailMap, values
private static final long serialVersionUID
private static final ConcurrentLog log
public SchemaConfiguration()
public SchemaConfiguration(java.io.File file) throws java.io.IOException
java.io.IOException
public void fill(SchemaConfiguration other, boolean defaultActivated)
public SolrInputDocument toSolrInputDocument(SolrDocument doc, java.util.Set<java.lang.String> omitFields)
doc
- the solr documentpublic SolrInputDocument toSolrInputDocument(MultiMapSolrParams params)
public SolrDocument toSolrDocument(SolrInputDocument doc, java.util.Set<java.lang.String> omitFields)
public boolean contains(SchemaDeclaration field)
public void remove(SolrInputDocument doc, SchemaDeclaration key)
public void remove(SolrInputDocument doc, java.lang.String key)
public void add(SolrInputDocument doc, SchemaDeclaration key, java.lang.String value)
public void add(SolrInputDocument doc, SchemaDeclaration key, java.util.Date value)
public void add(SolrInputDocument doc, SchemaDeclaration key, java.util.Date[] value)
public void add(SolrInputDocument doc, SchemaDeclaration key, java.lang.String[] value)
public void add(SolrInputDocument doc, SchemaDeclaration key, java.lang.Integer[] value)
public void add(SolrInputDocument doc, SchemaDeclaration key, java.util.List<?> values)
public void add(SolrInputDocument doc, SchemaDeclaration key, int value)
public void add(SolrInputDocument doc, SchemaDeclaration key, long value)
public void add(SolrInputDocument doc, SchemaDeclaration key, boolean value)
public static java.util.Date getDate(SolrInputDocument doc, SchemaDeclaration key)