Class DefaultSolrInputDocument
java.lang.Object
de.hybris.platform.solrfacetsearch.indexer.impl.DefaultSolrInputDocument
- All Implemented Interfaces:
InputDocument
- Direct Known Subclasses:
DefaultSolrPartialUpdateInputDocument
Default implementation of
InputDocument.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSolrInputDocument(org.apache.solr.common.SolrInputDocument delegate, IndexerBatchContext batchContext, FieldNameProvider fieldNameProvider, RangeNameProvider rangeNameProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddField(IndexedProperty indexedProperty, Object value) Same asInputDocument.addField(IndexedProperty, Object, String)with implied null value for the qualifier.voidaddField(IndexedProperty indexedProperty, Object value, String qualifier) Adds a field for the given indexed property, value and qualifier.voidAdds a field with the given name and value.protected voidorg.apache.solr.common.SolrInputDocumentGet collection of field namesgetFieldValue(String fieldName) Gets the value for a certain field name.protected void
-
Constructor Details
-
DefaultSolrInputDocument
public DefaultSolrInputDocument(org.apache.solr.common.SolrInputDocument delegate, IndexerBatchContext batchContext, FieldNameProvider fieldNameProvider, RangeNameProvider rangeNameProvider)
-
-
Method Details
-
getDelegate
public org.apache.solr.common.SolrInputDocument getDelegate() -
getBatchContext
-
getFieldNameProvider
-
getRangeNameProvider
-
addField
Description copied from interface:InputDocumentAdds a field with the given name and value. If a field with the same name already exists, then the given value is appended to the value of that field. If the value is a collection, then each of its values will be added to the field.- Specified by:
addFieldin interfaceInputDocument- Parameters:
fieldName- - the field namevalue- - the field value- Throws:
FieldValueProviderException
-
addField
public void addField(IndexedProperty indexedProperty, Object value) throws FieldValueProviderException Description copied from interface:InputDocumentSame asInputDocument.addField(IndexedProperty, Object, String)with implied null value for the qualifier.- Specified by:
addFieldin interfaceInputDocument- Parameters:
indexedProperty- - the indexed propertyvalue- - the field value- Throws:
FieldValueProviderException- See Also:
-
addField
public void addField(IndexedProperty indexedProperty, Object value, String qualifier) throws FieldValueProviderException Description copied from interface:InputDocumentAdds a field for the given indexed property, value and qualifier. If a field for the same indexed property and qualifier already exists, then the given value is appended to the value of that field. If the value is a collection, then each of its values will be added to the field.- Specified by:
addFieldin interfaceInputDocument- Parameters:
indexedProperty- - the indexed propertyvalue- - the field valuequalifier- - the qualifier- Throws:
FieldValueProviderException
-
getFieldValue
Description copied from interface:InputDocumentGets the value for a certain field name.- Specified by:
getFieldValuein interfaceInputDocument- Parameters:
fieldName- - the field name- Returns:
- the field value.
-
getFieldNames
Description copied from interface:InputDocumentGet collection of field names- Specified by:
getFieldNamesin interfaceInputDocument- Returns:
- field name collection
-
startDocument
protected void startDocument() -
endDocument
protected void endDocument()
-