public class NotShardedIndexManagerSelector extends Object implements IndexManagerSelector
| Constructor and Description |
|---|
NotShardedIndexManagerSelector(IndexManager indexManager) |
| Modifier and Type | Method and Description |
|---|---|
Set<IndexManager> |
all()
Ask for all shards (eg to optimize)
|
Set<IndexManager> |
forExisting(IndexedTypeIdentifier typeId,
Serializable id,
String idInString) |
Set<IndexManager> |
forFilters(FullTextFilterImplementor[] fullTextFilters) |
IndexManager |
forNew(IndexedTypeIdentifier typeId,
Serializable id,
String idInString,
org.apache.lucene.document.Document document) |
public NotShardedIndexManagerSelector(IndexManager indexManager)
public Set<IndexManager> all()
IndexManagerSelectorall in interface IndexManagerSelectorIndexManager for all shardspublic IndexManager forNew(IndexedTypeIdentifier typeId, Serializable id, String idInString, org.apache.lucene.document.Document document)
forNew in interface IndexManagerSelectortypeId - the type of the entityid - the id in object formidInString - the id as transformed by the used TwoWayStringBridgedocument - the document to indexpublic Set<IndexManager> forExisting(IndexedTypeIdentifier typeId, Serializable id, String idInString)
forExisting in interface IndexManagerSelectortypeId - the type of the existing entityid - the id in object formidInString - the id as transformed by the used TwoWayStringBridgeIndexManager(s) where the given entity is stored.
If they are null, all the IndexManager(s) where an entity of the given type is stored.public Set<IndexManager> forFilters(FullTextFilterImplementor[] fullTextFilters)
forFilters in interface IndexManagerSelectorfullTextFilters - the filters applied to the query; must be empty if no filter is appliedIndexManager(s) where the entities matching the filters are storedCopyright © 2006–2017 Hibernate. All rights reserved.