Class DefaultIndexerContext
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexerContext
-
- All Implemented Interfaces:
IndexerContext
public class DefaultIndexerContext extends java.lang.Object implements IndexerContext
Default implementation ofIndexerContext.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.hybris.platform.solrfacetsearch.indexer.IndexerContext
IndexerContext.Status
-
-
Constructor Summary
Constructors Constructor Description DefaultIndexerContext()
-
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 thisIndexerContext.FacetSearchConfiggetFacetSearchConfig()Returns the facet search configuration.java.util.List<java.lang.Exception>getFailureExceptions()Returns all failure causing exceptions for thisIndexerContext.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<PK>getPks()Returns the pks of the items to be indexed.IndexerContext.StatusgetStatus()Returns the current status for thisIndexerContextbooleanisExternalIndexOperation()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)voidsetPks(java.util.List<PK> pks)Sets the pks of the items to be indexed.voidsetStatus(IndexerContext.Status status)
-
-
-
Method Detail
-
getIndexOperationId
public long getIndexOperationId()
Description copied from interface:IndexerContextReturns the index operation id.- Specified by:
getIndexOperationIdin interfaceIndexerContext- Returns:
- the index operation id
-
setIndexOperationId
public void setIndexOperationId(long indexOperationId)
-
getIndexOperation
public IndexOperation getIndexOperation()
Description copied from interface:IndexerContextReturns the index operation.- Specified by:
getIndexOperationin interfaceIndexerContext- Returns:
- the index operation
-
setIndexOperation
public void setIndexOperation(IndexOperation indexOperation)
-
isExternalIndexOperation
public boolean isExternalIndexOperation()
Description copied from interface:IndexerContextReturnstrueif the index operation is external. An external operation does not use a default indexer query.- Specified by:
isExternalIndexOperationin interfaceIndexerContext- Returns:
trueif the index operation is external,falseotherwise
-
setExternalIndexOperation
public void setExternalIndexOperation(boolean externalIndexOperation)
-
getFacetSearchConfig
public FacetSearchConfig getFacetSearchConfig()
Description copied from interface:IndexerContextReturns the facet search configuration.- Specified by:
getFacetSearchConfigin interfaceIndexerContext- Returns:
- the facet search configuration
-
setFacetSearchConfig
public void setFacetSearchConfig(FacetSearchConfig facetSearchConfig)
-
getIndexedType
public IndexedType getIndexedType()
Description copied from interface:IndexerContextReturns the indexed type.- Specified by:
getIndexedTypein interfaceIndexerContext- Returns:
- the indexed type
-
setIndexedType
public void setIndexedType(IndexedType indexedType)
-
getIndexedProperties
public java.util.Collection<IndexedProperty> getIndexedProperties()
Description copied from interface:IndexerContextReturns the indexed properties to be indexed.- Specified by:
getIndexedPropertiesin interfaceIndexerContext- 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:IndexerContextReturns the pks of the items to be indexed.- Specified by:
getPksin interfaceIndexerContext- Returns:
- pks of the items to be indexed
-
setPks
public void setPks(java.util.List<PK> pks)
Description copied from interface:IndexerContextSets the pks of the items to be indexed.- Specified by:
setPksin interfaceIndexerContext- Parameters:
pks- - the pks of the items to be indexed
-
getIndex
public Index getIndex()
Description copied from interface:IndexerContextReturns the index to use during the indexer operation.- Specified by:
getIndexin interfaceIndexerContext- Returns:
- the index to use
-
setIndex
public void setIndex(Index index)
Description copied from interface:IndexerContextSets the index to use during the indexer operation.- Specified by:
setIndexin interfaceIndexerContext- Parameters:
index- - the index to use
-
getIndexerHints
public java.util.Map<java.lang.String,java.lang.String> getIndexerHints()
Description copied from interface:IndexerContextReturns a mutableMapthat can be used to store indexer hints.- Specified by:
getIndexerHintsin interfaceIndexerContext- Returns:
- the map containing the indexer hints
-
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
Description copied from interface:IndexerContextReturns a mutableMapthat can be used to store attributes associated with thisIndexerContext.- Specified by:
getAttributesin interfaceIndexerContext- Returns:
- the map containing the attributes
-
getStatus
public IndexerContext.Status getStatus()
Description copied from interface:IndexerContextReturns the current status for thisIndexerContext- Specified by:
getStatusin interfaceIndexerContext- Returns:
- the current status
-
setStatus
public void setStatus(IndexerContext.Status status)
-
addFailureException
public void addFailureException(java.lang.Exception exception)
-
getFailureExceptions
public java.util.List<java.lang.Exception> getFailureExceptions()
Description copied from interface:IndexerContextReturns all failure causing exceptions for thisIndexerContext.- Specified by:
getFailureExceptionsin interfaceIndexerContext
-
-