|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.search.store.IdHashShardingStrategy
public class IdHashShardingStrategy
This implementation use idInString as the hashKey.
Constructor Summary | |
---|---|
IdHashShardingStrategy()
|
Method Summary | |
---|---|
DirectoryProvider<?> |
getDirectoryProviderForAddition(Class<?> entity,
Serializable id,
String idInString,
org.apache.lucene.document.Document document)
return the DirectoryProvider where the given entity will be indexed |
DirectoryProvider<?>[] |
getDirectoryProvidersForAllShards()
Ask for all shards (eg to query or optimize) |
DirectoryProvider<?>[] |
getDirectoryProvidersForDeletion(Class<?> entity,
Serializable id,
String idInString)
return the DirectoryProvider(s) where the given entity is stored and where the deletion operation needs to be applied id and idInString can be null. |
void |
initialize(Properties properties,
DirectoryProvider<?>[] providers)
provides access to sharding properties (under the suffix sharding_strategy) and provide access to all the DirectoryProviders 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, DirectoryProvider<?>[] providers)
IndexShardingStrategy
initialize
in interface IndexShardingStrategy
public DirectoryProvider<?>[] getDirectoryProvidersForAllShards()
IndexShardingStrategy
getDirectoryProvidersForAllShards
in interface IndexShardingStrategy
public DirectoryProvider<?> getDirectoryProviderForAddition(Class<?> entity, Serializable id, String idInString, org.apache.lucene.document.Document document)
IndexShardingStrategy
getDirectoryProviderForAddition
in interface IndexShardingStrategy
public DirectoryProvider<?>[] getDirectoryProvidersForDeletion(Class<?> entity, Serializable id, String idInString)
IndexShardingStrategy
getDirectoryProvidersForDeletion
in interface IndexShardingStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |