public class DerivedSolrField extends Object implements ISolrDatasetField
| Modifier and Type | Field and Description |
|---|---|
protected IConverter |
converter |
protected boolean |
multivalue |
protected String |
name |
| Constructor and Description |
|---|
DerivedSolrField(String name) |
| Modifier and Type | Method and Description |
|---|---|
ElementCombiner |
getBase() |
IConverter |
getConverter()
Get the method that is used to convert this value to a form that will be stored
in Solr.
|
List<SolrElementField> |
getFields(byte[] data,
String identifier)
Method for extracting data from document
|
List<SolrElementField> |
getFields(com.hp.hpl.jena.query.Dataset dataset)
Get the field values, which could be multiple values
|
String |
getName()
Returns the search field name.
|
boolean |
isMultivalue()
Can this field contain multiple values.
|
void |
setBase(ElementCombiner base) |
void |
setConverter(IConverter converter) |
void |
setMultivalue(boolean multivalue)
Controls whether the search index field this instance of SolrField is generating is defined
as accepting multiple values (a collection of values).
|
void |
setName(String name) |
protected boolean multivalue
protected String name
protected IConverter converter
public DerivedSolrField(String name)
public ElementCombiner getBase()
getBase in interface ISolrDatasetFieldpublic void setBase(ElementCombiner base)
setBase in interface ISolrDatasetFieldpublic List<SolrElementField> getFields(com.hp.hpl.jena.query.Dataset dataset)
getFields in interface ISolrDatasetFielddataset - A triple store containing triples constructed from the source document.public List<SolrElementField> getFields(byte[] data, String identifier) throws Exception
ISolrDataFieldgetFields in interface ISolrDataFieldExceptionpublic boolean isMultivalue()
public String getName()
ISolrDataFieldgetName in interface ISolrDataFieldpublic void setName(String name)
public void setMultivalue(boolean multivalue)
multivalue - public IConverter getConverter()
public void setConverter(IConverter converter)
Copyright © 2022. All rights reserved.