ShardIdentifierProvider
instead.@Deprecated public interface IndexShardingStrategy
Modifier and Type | Method and Description |
---|---|
IndexManager |
getIndexManagerForAddition(Class<?> entity,
Serializable id,
String idInString,
Document document)
Deprecated.
return the IndexManager where the given entity will be indexed
|
IndexManager[] |
getIndexManagersForAllShards()
Deprecated.
Ask for all shards (eg to query or optimize)
|
IndexManager[] |
getIndexManagersForDeletion(Class<?> entity,
Serializable id,
String idInString)
Deprecated.
return the IndexManager(s) where the given entity is stored and where the deletion operation needs to be applied
id and idInString could be null.
|
IndexManager[] |
getIndexManagersForQuery(FullTextFilterImplementor[] fullTextFilters)
Deprecated.
return the set of IndexManager(s) where the entities matching the filters are stored
this optional optimization allows queries to hit a subset of all shards, which may be useful for some datasets
if this optimization is not needed, return getIndexManagersForAllShards()
fullTextFilters can be empty if no filter is applied
|
void |
initialize(Properties properties,
IndexManager[] indexManagers)
Deprecated.
provides access to sharding properties (under the suffix sharding_strategy)
and provide access to all the IndexManager for a given index
|
void initialize(Properties properties, IndexManager[] indexManagers)
IndexManager[] getIndexManagersForAllShards()
IndexManager getIndexManagerForAddition(Class<?> entity, Serializable id, String idInString, Document document)
IndexManager[] getIndexManagersForDeletion(Class<?> entity, Serializable id, String idInString)
entity
- the type of the deleted entityid
- the id in object formidInString
- the id as transformed by the used TwoWayStringBridgeIndexManager[] getIndexManagersForQuery(FullTextFilterImplementor[] fullTextFilters)
Copyright © 2006-2014 Red Hat, Inc. All Rights Reserved