public class DefaultIndexerContext extends java.lang.Object implements IndexerContext
IndexerContext.IndexerContext.Status| Constructor and Description |
|---|
DefaultIndexerContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFailureException(java.lang.Exception exception) |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Returns a mutable
Map that can be used to store attributes associated with this IndexerContext. |
FacetSearchConfig |
getFacetSearchConfig()
Returns the facet search configuration.
|
java.util.List<java.lang.Exception> |
getFailureExceptions()
Returns all failure causing exceptions for this
IndexerContext. |
Index |
getIndex()
Returns the index to use during the indexer operation.
|
java.util.Collection<IndexedProperty> |
getIndexedProperties()
Returns the indexed properties to be indexed.
|
IndexedType |
getIndexedType()
Returns the indexed type.
|
java.util.Map<java.lang.String,java.lang.String> |
getIndexerHints()
Returns a mutable
Map that can be used to store indexer hints. |
IndexOperation |
getIndexOperation()
Returns the index operation.
|
long |
getIndexOperationId()
Returns the index operation id.
|
java.util.List<PK> |
getPks()
Returns the pks of the items to be indexed.
|
IndexerContext.Status |
getStatus()
Returns the current status for this
IndexerContext |
boolean |
isExternalIndexOperation()
Returns
true if the index operation is external. |
void |
setExternalIndexOperation(boolean externalIndexOperation) |
void |
setFacetSearchConfig(FacetSearchConfig facetSearchConfig) |
void |
setIndex(Index index)
Sets the index to use during the indexer operation.
|
void |
setIndexedProperties(java.util.Collection<IndexedProperty> indexedProperties) |
void |
setIndexedType(IndexedType indexedType) |
void |
setIndexOperation(IndexOperation indexOperation) |
void |
setIndexOperationId(long indexOperationId) |
void |
setPks(java.util.List<PK> pks)
Sets the pks of the items to be indexed.
|
void |
setStatus(IndexerContext.Status status) |
public long getIndexOperationId()
IndexerContextgetIndexOperationId in interface IndexerContextpublic void setIndexOperationId(long indexOperationId)
public IndexOperation getIndexOperation()
IndexerContextgetIndexOperation in interface IndexerContextpublic void setIndexOperation(IndexOperation indexOperation)
public boolean isExternalIndexOperation()
IndexerContexttrue if the index operation is external. An external operation does not use a default indexer
query.isExternalIndexOperation in interface IndexerContexttrue if the index operation is external, false otherwisepublic void setExternalIndexOperation(boolean externalIndexOperation)
public FacetSearchConfig getFacetSearchConfig()
IndexerContextgetFacetSearchConfig in interface IndexerContextpublic void setFacetSearchConfig(FacetSearchConfig facetSearchConfig)
public IndexedType getIndexedType()
IndexerContextgetIndexedType in interface IndexerContextpublic void setIndexedType(IndexedType indexedType)
public java.util.Collection<IndexedProperty> getIndexedProperties()
IndexerContextgetIndexedProperties in interface IndexerContextpublic void setIndexedProperties(java.util.Collection<IndexedProperty> indexedProperties)
public java.util.List<PK> getPks()
IndexerContextgetPks in interface IndexerContextpublic void setPks(java.util.List<PK> pks)
IndexerContextsetPks in interface IndexerContextpks - - the pks of the items to be indexedpublic Index getIndex()
IndexerContextgetIndex in interface IndexerContextpublic void setIndex(Index index)
IndexerContextsetIndex in interface IndexerContextindex - - the index to usepublic java.util.Map<java.lang.String,java.lang.String> getIndexerHints()
IndexerContextMap that can be used to store indexer hints.getIndexerHints in interface IndexerContextpublic java.util.Map<java.lang.String,java.lang.Object> getAttributes()
IndexerContextMap that can be used to store attributes associated with this IndexerContext.getAttributes in interface IndexerContextpublic IndexerContext.Status getStatus()
IndexerContextIndexerContextgetStatus in interface IndexerContextpublic void setStatus(IndexerContext.Status status)
public void addFailureException(java.lang.Exception exception)
public java.util.List<java.lang.Exception> getFailureExceptions()
IndexerContextIndexerContext.getFailureExceptions in interface IndexerContextCopyright © 2018 SAP SE. All Rights Reserved.