public class DefaultSolrInputDocument extends java.lang.Object implements InputDocument
InputDocument.| Constructor and Description |
|---|
DefaultSolrInputDocument(SolrInputDocument delegate,
IndexerBatchContext batchContext,
FieldNameProvider fieldNameProvider,
RangeNameProvider rangeNameProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(IndexedProperty indexedProperty,
java.lang.Object value)
Same as
InputDocument.addField(IndexedProperty, Object, String) with implied null value for the qualifier. |
void |
addField(IndexedProperty indexedProperty,
java.lang.Object value,
java.lang.String qualifier)
Adds a field for the given indexed property, value and qualifier.
|
void |
addField(java.lang.String fieldName,
java.lang.Object value)
Adds a field with the given name and value.
|
protected void |
endDocument() |
IndexerBatchContext |
getBatchContext() |
SolrInputDocument |
getDelegate() |
FieldNameProvider |
getFieldNameProvider() |
java.util.Collection<java.lang.String> |
getFieldNames()
Get collection of field names
|
java.lang.Object |
getFieldValue(java.lang.String fieldName)
Gets the value for a certain field name.
|
RangeNameProvider |
getRangeNameProvider() |
protected void |
startDocument() |
public DefaultSolrInputDocument(SolrInputDocument delegate,
IndexerBatchContext batchContext,
FieldNameProvider fieldNameProvider,
RangeNameProvider rangeNameProvider)
public SolrInputDocument getDelegate()
public IndexerBatchContext getBatchContext()
public FieldNameProvider getFieldNameProvider()
public RangeNameProvider getRangeNameProvider()
public void addField(java.lang.String fieldName,
java.lang.Object value)
throws FieldValueProviderException
InputDocumentaddField in interface InputDocumentfieldName - - the field namevalue - - the field valueFieldValueProviderExceptionpublic void addField(IndexedProperty indexedProperty, java.lang.Object value) throws FieldValueProviderException
InputDocumentInputDocument.addField(IndexedProperty, Object, String) with implied null value for the qualifier.addField in interface InputDocumentindexedProperty - - the indexed propertyvalue - - the field valueFieldValueProviderExceptionInputDocument.addField(IndexedProperty, Object)public void addField(IndexedProperty indexedProperty, java.lang.Object value, java.lang.String qualifier) throws FieldValueProviderException
InputDocumentaddField in interface InputDocumentindexedProperty - - the indexed propertyvalue - - the field valuequalifier - - the qualifierFieldValueProviderExceptionpublic java.lang.Object getFieldValue(java.lang.String fieldName)
InputDocumentgetFieldValue in interface InputDocumentfieldName - - the field namepublic java.util.Collection<java.lang.String> getFieldNames()
InputDocumentgetFieldNames in interface InputDocumentprotected void startDocument()
protected void endDocument()
Copyright © 2018 SAP SE. All Rights Reserved.