|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.search.store.impl.IdHashShardingStrategy
public class IdHashShardingStrategy
This implementation use idInString as the hashKey.
Constructor Summary | |
---|---|
IdHashShardingStrategy()
|
Method Summary | |
---|---|
IndexManager |
getIndexManagerForAddition(Class<?> entity,
Serializable id,
String idInString,
org.apache.lucene.document.Document document)
return the IndexManager where the given entity will be indexed |
IndexManager[] |
getIndexManagersForAllShards()
Ask for all shards (eg to query or optimize) |
IndexManager[] |
getIndexManagersForDeletion(Class<?> entity,
Serializable id,
String idInString)
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)
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[] providers)
provides access to sharding properties (under the suffix sharding_strategy) and provide access to all the IndexManager for a given index |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdHashShardingStrategy()
Method Detail |
---|
public void initialize(Properties properties, IndexManager[] providers)
IndexShardingStrategy
initialize
in interface IndexShardingStrategy
public IndexManager[] getIndexManagersForAllShards()
IndexShardingStrategy
getIndexManagersForAllShards
in interface IndexShardingStrategy
public IndexManager getIndexManagerForAddition(Class<?> entity, Serializable id, String idInString, org.apache.lucene.document.Document document)
IndexShardingStrategy
getIndexManagerForAddition
in interface IndexShardingStrategy
public IndexManager[] getIndexManagersForDeletion(Class<?> entity, Serializable id, String idInString)
IndexShardingStrategy
getIndexManagersForDeletion
in interface IndexShardingStrategy
entity
- the type of the deleted entityid
- the id in object formidInString
- the id as transformed by the used TwoWayStringBridgepublic IndexManager[] getIndexManagersForQuery(FullTextFilterImplementor[] fullTextFilters)
IndexShardingStrategy
getIndexManagersForQuery
in interface IndexShardingStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |