Class DefaultIndexerBatchContext
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexerBatchContext
-
- All Implemented Interfaces:
IndexerBatchContext
public class DefaultIndexerBatchContext extends java.lang.Object implements IndexerBatchContext
Default implementation ofIndexerBatchContext.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.hybris.platform.solrfacetsearch.indexer.IndexerBatchContext
IndexerBatchContext.Status
-
-
Constructor Summary
Constructors Constructor Description DefaultIndexerBatchContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFailureException(java.lang.Exception exception)java.util.Map<java.lang.String,java.lang.Object>getAttributes()Returns a mutableMapthat can be used to store attributes associated with thisIndexerBatchContext.FacetSearchConfiggetFacetSearchConfig()Returns the facet search configuration.java.util.List<java.lang.Exception>getFailureExceptions()Returns all failure causing exceptions for thisIndexerBatchContext.IndexgetIndex()Returns the index to use during the indexer operation.java.util.Collection<IndexedProperty>getIndexedProperties()Returns the indexed properties to be indexed.IndexedTypegetIndexedType()Returns the indexed type.java.util.Map<java.lang.String,java.lang.String>getIndexerHints()Returns a mutableMapthat can be used to store indexer hints.IndexOperationgetIndexOperation()Returns the index operation.longgetIndexOperationId()Returns the index operation id.java.util.List<InputDocument>getInputDocuments()Returns a mutableListthat can be used to store attributes associated with this input documents.java.util.List<ItemModel>getItems()Returns the items to be indexed in this batch.java.util.List<PK>getPks()Return the pks to be indexed in this batch.IndexerBatchContext.StatusgetStatus()Returns the current status for thisIndexerBatchContextbooleanisExternalIndexOperation()Returnstrueif the index operation is external.voidsetExternalIndexOperation(boolean externalIndexOperation)voidsetFacetSearchConfig(FacetSearchConfig facetSearchConfig)voidsetIndex(Index index)Sets the index to use during the indexer operation.voidsetIndexedProperties(java.util.Collection<IndexedProperty> indexedProperties)voidsetIndexedType(IndexedType indexedType)voidsetIndexOperation(IndexOperation indexOperation)voidsetIndexOperationId(long indexOperationId)voidsetItems(java.util.List<ItemModel> items)Sets the items to be indexed in this batch.voidsetPks(java.util.List<PK> pks)Sets the pks to be indexed in this batch.voidsetStatus(IndexerBatchContext.Status status)
-
-
-
Method Detail
-
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
public IndexOperation getIndexOperation()
Description copied from interface:IndexerBatchContextReturns the index operation.- Specified by:
getIndexOperationin interfaceIndexerBatchContext- Returns:
- the index operation
-
setIndexOperation
public void setIndexOperation(IndexOperation indexOperation)
-
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
public FacetSearchConfig getFacetSearchConfig()
Description copied from interface:IndexerBatchContextReturns the facet search configuration.- Specified by:
getFacetSearchConfigin interfaceIndexerBatchContext- Returns:
- the facet search configuration
-
setFacetSearchConfig
public void setFacetSearchConfig(FacetSearchConfig facetSearchConfig)
-
getIndexedType
public IndexedType getIndexedType()
Description copied from interface:IndexerBatchContextReturns the indexed type.- Specified by:
getIndexedTypein interfaceIndexerBatchContext- Returns:
- the indexed type
-
setIndexedType
public void setIndexedType(IndexedType indexedType)
-
getIndexedProperties
public java.util.Collection<IndexedProperty> getIndexedProperties()
Description copied from interface:IndexerBatchContextReturns the indexed properties to be indexed.- Specified by:
getIndexedPropertiesin interfaceIndexerBatchContext- Returns:
- the indexed properties to be indexed
-
setIndexedProperties
public void setIndexedProperties(java.util.Collection<IndexedProperty> indexedProperties)
-
getPks
public java.util.List<PK> 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
public void setPks(java.util.List<PK> pks)
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
public java.util.List<ItemModel> 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
public void setItems(java.util.List<ItemModel> items)
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
public Index getIndex()
Description copied from interface:IndexerBatchContextReturns the index to use during the indexer operation.- Specified by:
getIndexin interfaceIndexerBatchContext- Returns:
- the index to use
-
setIndex
public void setIndex(Index index)
Description copied from interface:IndexerBatchContextSets the index to use during the indexer operation.- Specified by:
setIndexin interfaceIndexerBatchContext- Parameters:
index- - the index to use
-
getIndexerHints
public java.util.Map<java.lang.String,java.lang.String> 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
public java.util.Map<java.lang.String,java.lang.Object> 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
public java.util.List<InputDocument> 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
public IndexerBatchContext.Status getStatus()
Description copied from interface:IndexerBatchContextReturns the current status for thisIndexerBatchContext- Specified by:
getStatusin interfaceIndexerBatchContext- Returns:
- the current status
-
setStatus
public void setStatus(IndexerBatchContext.Status status)
-
addFailureException
public void addFailureException(java.lang.Exception exception)
-
getFailureExceptions
public java.util.List<java.lang.Exception> getFailureExceptions()
Description copied from interface:IndexerBatchContextReturns all failure causing exceptions for thisIndexerBatchContext.- Specified by:
getFailureExceptionsin interfaceIndexerBatchContext
-
-