public class DefaultIndexerBatchContext extends java.lang.Object implements IndexerBatchContext
IndexerBatchContext.IndexerBatchContext.Status| Constructor and Description |
|---|
DefaultIndexerBatchContext() |
| 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
IndexerBatchContext. |
FacetSearchConfig |
getFacetSearchConfig()
Returns the facet search configuration.
|
java.util.List<java.lang.Exception> |
getFailureExceptions()
Returns all failure causing exceptions for this
IndexerBatchContext. |
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<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.Status |
getStatus()
Returns the current status for this
IndexerBatchContext |
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 |
setItems(java.util.List<ItemModel> items)
Sets the items to be indexed in this batch.
|
void |
setPks(java.util.List<PK> pks)
Sets the pks to be indexed in this batch.
|
void |
setStatus(IndexerBatchContext.Status status) |
public long getIndexOperationId()
IndexerBatchContextgetIndexOperationId in interface IndexerBatchContextpublic void setIndexOperationId(long indexOperationId)
public IndexOperation getIndexOperation()
IndexerBatchContextgetIndexOperation in interface IndexerBatchContextpublic void setIndexOperation(IndexOperation indexOperation)
public boolean isExternalIndexOperation()
IndexerBatchContexttrue if the index operation is external. An external operation does not use a default indexer
query.isExternalIndexOperation in interface IndexerBatchContexttrue if the index operation is external, false otherwisepublic void setExternalIndexOperation(boolean externalIndexOperation)
public FacetSearchConfig getFacetSearchConfig()
IndexerBatchContextgetFacetSearchConfig in interface IndexerBatchContextpublic void setFacetSearchConfig(FacetSearchConfig facetSearchConfig)
public IndexedType getIndexedType()
IndexerBatchContextgetIndexedType in interface IndexerBatchContextpublic void setIndexedType(IndexedType indexedType)
public java.util.Collection<IndexedProperty> getIndexedProperties()
IndexerBatchContextgetIndexedProperties in interface IndexerBatchContextpublic void setIndexedProperties(java.util.Collection<IndexedProperty> indexedProperties)
public java.util.List<PK> getPks()
IndexerBatchContextgetPks in interface IndexerBatchContextpublic void setPks(java.util.List<PK> pks)
IndexerBatchContextsetPks in interface IndexerBatchContextpks - - the pks to be indexed in this batch.public java.util.List<ItemModel> getItems()
IndexerBatchContextgetItems in interface IndexerBatchContextpublic void setItems(java.util.List<ItemModel> items)
IndexerBatchContextsetItems in interface IndexerBatchContextitems - - the items to be indexed in this batchpublic Index getIndex()
IndexerBatchContextgetIndex in interface IndexerBatchContextpublic void setIndex(Index index)
IndexerBatchContextsetIndex in interface IndexerBatchContextindex - - the index to usepublic java.util.Map<java.lang.String,java.lang.String> getIndexerHints()
IndexerBatchContextMap that can be used to store indexer hints.getIndexerHints in interface IndexerBatchContextpublic java.util.Map<java.lang.String,java.lang.Object> getAttributes()
IndexerBatchContextMap that can be used to store attributes associated with this
IndexerBatchContext.getAttributes in interface IndexerBatchContextpublic IndexerBatchContext.Status getStatus()
IndexerBatchContextIndexerBatchContextgetStatus in interface IndexerBatchContextpublic void setStatus(IndexerBatchContext.Status status)
public void addFailureException(java.lang.Exception exception)
public java.util.List<java.lang.Exception> getFailureExceptions()
IndexerBatchContextIndexerBatchContext.getFailureExceptions in interface IndexerBatchContextCopyright © 2018 SAP SE. All Rights Reserved.