public interface ManagedIndex extends Filter, Costable, Lifecycle, Reindexable
Index providers may choose to implement this from scratch and return it to the repository, or they may choose to implement a
ManagedIndexBuilder instance and use an DefaultManagedIndex instance to wrap their ProvidedIndex instances.
ManagedIndexBuilder,
ProvidedIndexFilter.ResultBatch, Filter.Results| Modifier and Type | Method and Description |
|---|---|
void |
enable(boolean enable)
Mark whether this index is enabled for use, or not enabled meaning it should not be used.
|
IndexChangeAdapter |
getIndexChangeAdapter()
Get the ChangeSetAdapter implementation through which changes to content are sent to the index.
|
IndexManager.IndexStatus |
getStatus()
Return the current status of the managed index
|
boolean |
isEnabled()
Determine if this index is enabled for use.
|
void |
updateStatus(IndexManager.IndexStatus currentStatus,
IndexManager.IndexStatus newStatus)
Update the status of this index to a new value if the current status is
currentStatus |
estimateCardinality, estimateTotalCountclearAllData, requiresReindexingIndexChangeAdapter getIndexChangeAdapter()
ChangeSetListener that is registered on the event bus and kept throughout the lifetime of the index (even if there
are changes), and that listener delegates to this adapter.void enable(boolean enable)
enable - true if the index is to be enabled, or false otherwiseboolean isEnabled()
IndexManager.IndexStatus getStatus()
IndexManager.IndexStatus instance, never nullvoid updateStatus(IndexManager.IndexStatus currentStatus, IndexManager.IndexStatus newStatus)
currentStatuscurrentStatus - a IndexManager.IndexStatus instance, may not be nullnewStatus - a IndexManager.IndexStatus instance, may not be nullCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.