Class DefaultIndexerBatchContext
java.lang.Object
de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexerBatchContext
- All Implemented Interfaces:
IndexerBatchContext
Default implementation of
IndexerBatchContext.-
Nested Class Summary
Nested classes/interfaces inherited from interface de.hybris.platform.solrfacetsearch.indexer.IndexerBatchContext
IndexerBatchContext.Status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFailureException(Exception exception) Returns a mutableMapthat can be used to store attributes associated with thisIndexerBatchContext.Returns the facet search configuration.Returns all failure causing exceptions for thisIndexerBatchContext.getIndex()Returns the index to use during the indexer operation.Returns the indexed properties to be indexed.Returns the indexed type.Returns a mutableMapthat can be used to store indexer hints.Returns the index operation.longReturns the index operation id.Returns a mutableListthat can be used to store attributes associated with this input documents.getItems()Returns the items to be indexed in this batch.getPks()Return the pks to be indexed in this batch.Returns the current status for thisIndexerBatchContextbooleanReturnstrueif the index operation is external.voidsetExternalIndexOperation(boolean externalIndexOperation) voidsetFacetSearchConfig(FacetSearchConfig facetSearchConfig) voidSets the index to use during the indexer operation.voidsetIndexedProperties(Collection<IndexedProperty> indexedProperties) voidsetIndexedType(IndexedType indexedType) voidsetIndexOperation(IndexOperation indexOperation) voidsetIndexOperationId(long indexOperationId) voidSets the items to be indexed in this batch.voidSets the pks to be indexed in this batch.voidsetStatus(IndexerBatchContext.Status status)
-
Constructor Details
-
DefaultIndexerBatchContext
public DefaultIndexerBatchContext()
-
-
Method Details
-
getIndexOperationId
public long getIndexOperationId()Description copied from interface:IndexerBatchContextReturns the index operation id.- Specified by:
getIndexOperationIdin interfaceIndexerBatchContext- Returns:
- the index operation id
-
setIndexOperationId
public void setIndexOperationId(long indexOperationId) -
getIndexOperation
Description copied from interface:IndexerBatchContextReturns the index operation.- Specified by:
getIndexOperationin interfaceIndexerBatchContext- Returns:
- the index operation
-
setIndexOperation
-
isExternalIndexOperation
public boolean isExternalIndexOperation()Description copied from interface:IndexerBatchContextReturnstrueif the index operation is external. An external operation does not use a default indexer query.- Specified by:
isExternalIndexOperationin interfaceIndexerBatchContext- Returns:
trueif the index operation is external,falseotherwise
-
setExternalIndexOperation
public void setExternalIndexOperation(boolean externalIndexOperation) -
getFacetSearchConfig
Description copied from interface:IndexerBatchContextReturns the facet search configuration.- Specified by:
getFacetSearchConfigin interfaceIndexerBatchContext- Returns:
- the facet search configuration
-
setFacetSearchConfig
-
getIndexedType
Description copied from interface:IndexerBatchContextReturns the indexed type.- Specified by:
getIndexedTypein interfaceIndexerBatchContext- Returns:
- the indexed type
-
setIndexedType
-
getIndexedProperties
Description copied from interface:IndexerBatchContextReturns the indexed properties to be indexed.- Specified by:
getIndexedPropertiesin interfaceIndexerBatchContext- Returns:
- the indexed properties to be indexed
-
setIndexedProperties
-
getPks
Description copied from interface:IndexerBatchContextReturn the pks to be indexed in this batch.- Specified by:
getPksin interfaceIndexerBatchContext- Returns:
- pks to be indexed in this batch.
-
setPks
Description copied from interface:IndexerBatchContextSets the pks to be indexed in this batch.- Specified by:
setPksin interfaceIndexerBatchContext- Parameters:
pks- - the pks to be indexed in this batch.
-
getItems
Description copied from interface:IndexerBatchContextReturns the items to be indexed in this batch.- Specified by:
getItemsin interfaceIndexerBatchContext- Returns:
- items to be indexed in this batch
-
setItems
Description copied from interface:IndexerBatchContextSets the items to be indexed in this batch.- Specified by:
setItemsin interfaceIndexerBatchContext- Parameters:
items- - the items to be indexed in this batch
-
getIndex
Description copied from interface:IndexerBatchContextReturns the index to use during the indexer operation.- Specified by:
getIndexin interfaceIndexerBatchContext- Returns:
- the index to use
-
setIndex
Description copied from interface:IndexerBatchContextSets the index to use during the indexer operation.- Specified by:
setIndexin interfaceIndexerBatchContext- Parameters:
index- - the index to use
-
getIndexerHints
Description copied from interface:IndexerBatchContextReturns a mutableMapthat can be used to store indexer hints.- Specified by:
getIndexerHintsin interfaceIndexerBatchContext- Returns:
- the map containing the indexer hints
-
getAttributes
Description copied from interface:IndexerBatchContextReturns a mutableMapthat can be used to store attributes associated with thisIndexerBatchContext.- Specified by:
getAttributesin interfaceIndexerBatchContext- Returns:
- the map containing the attributes
-
getInputDocuments
Description copied from interface:IndexerBatchContextReturns a mutableListthat can be used to store attributes associated with this input documents.- Specified by:
getInputDocumentsin interfaceIndexerBatchContext- Returns:
- the map containing the indexed property values
-
getStatus
Description copied from interface:IndexerBatchContextReturns the current status for thisIndexerBatchContext- Specified by:
getStatusin interfaceIndexerBatchContext- Returns:
- the current status
-
setStatus
-
addFailureException
-
getFailureExceptions
Description copied from interface:IndexerBatchContextReturns all failure causing exceptions for thisIndexerBatchContext.- Specified by:
getFailureExceptionsin interfaceIndexerBatchContext
-