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,
Document document) |
public NotShardedIndexManagerSelector(IndexManager indexManager)
public Set<IndexManager> all()
IndexManagerSelector
all
in interface IndexManagerSelector
IndexManager
for all shardspublic IndexManager forNew(IndexedTypeIdentifier typeId, Serializable id, String idInString, Document document)
forNew
in interface IndexManagerSelector
typeId
- 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 IndexManagerSelector
typeId
- 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 IndexManagerSelector
fullTextFilters
- 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 Red Hat, Inc. All Rights Reserved