public class DefaultIndexerBatchContext extends Object implements IndexerBatchContext
IndexerBatchContext.IndexerBatchContext.Status| Constructor and Description |
|---|
DefaultIndexerBatchContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFailureException(Exception exception) |
Map<String,Object> |
getAttributes()
Returns a mutable
Map that can be used to store attributes associated with this
IndexerBatchContext. |
FacetSearchConfig |
getFacetSearchConfig()
Returns the facet search configuration.
|
List<Exception> |
getFailureExceptions()
Returns all failure causing exceptions for this
IndexerBatchContext. |
Index |
getIndex()
Returns the index to use during the indexer operation.
|
Collection<IndexedProperty> |
getIndexedProperties()
Returns the indexed properties to be indexed.
|
IndexedType |
getIndexedType()
Returns the indexed type.
|
Map<String,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.
|
List<ItemModel> |
getItems()
Returns the items to be indexed in this batch.
|
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(Collection<IndexedProperty> indexedProperties) |
void |
setIndexedType(IndexedType indexedType) |
void |
setIndexOperation(IndexOperation indexOperation) |
void |
setIndexOperationId(long indexOperationId) |
void |
setItems(List<ItemModel> items)
Sets the items to be indexed in this batch.
|
void |
setPks(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 Collection<IndexedProperty> getIndexedProperties()
IndexerBatchContextgetIndexedProperties in interface IndexerBatchContextpublic void setIndexedProperties(Collection<IndexedProperty> indexedProperties)
public List<PK> getPks()
IndexerBatchContextgetPks in interface IndexerBatchContextpublic void setPks(List<PK> pks)
IndexerBatchContextsetPks in interface IndexerBatchContextpks - - the pks to be indexed in this batch.public List<ItemModel> getItems()
IndexerBatchContextgetItems in interface IndexerBatchContextpublic void setItems(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 Map<String,String> getIndexerHints()
IndexerBatchContextMap that can be used to store indexer hints.getIndexerHints in interface IndexerBatchContextpublic Map<String,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(Exception exception)
public List<Exception> getFailureExceptions()
IndexerBatchContextIndexerBatchContext.getFailureExceptions in interface IndexerBatchContextCopyright © 2017 SAP SE. All Rights Reserved.