public abstract class ShardIdentifierProviderTemplate extends Object implements ShardIdentifierProvider
ShardIdentifierProvider implementations. Sub-classes must provide a
no-arg constructor.| Constructor and Description |
|---|
ShardIdentifierProviderTemplate() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addShard(String shardName)
Deprecated.
Support for
dynamic sharding will be removed in Hibernate Search 6.
Future-proof implementations must not call this method and
must make sure the list of shards is fully defined on startup
(
loadInitialShardNames(Properties, BuildContext)). |
Set<String> |
getAllShardIdentifiers()
Returns the list of all currently known shard identifiers.
|
Set<String> |
getShardIdentifiersForDeletion(Class<?> entity,
Serializable id,
String idInString)
Deprecated.
Support for
dynamic sharding will be removed in Hibernate Search 6.
Future-proof implementations must not override this method.
|
Set<String> |
getShardIdentifiersForQuery(FullTextFilterImplementor[] fullTextFilters)
Deprecated.
Support for
dynamic sharding will be removed in Hibernate Search 6.
Future-proof implementations must not override this method.
|
void |
initialize(Properties properties,
BuildContext buildContext)
Initialize this provider.
|
protected abstract Set<String> |
loadInitialShardNames(Properties properties,
BuildContext buildContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetShardIdentifierpublic final void initialize(Properties properties, BuildContext buildContext)
ShardIdentifierProviderinitialize in interface ShardIdentifierProviderproperties - The configuration propertiesbuildContext - The build context available during bootstrappingprotected abstract Set<String> loadInitialShardNames(Properties properties, BuildContext buildContext)
@Deprecated protected final void addShard(String shardName)
loadInitialShardNames(Properties, BuildContext)).shardName - The name of a shard to add.public final Set<String> getAllShardIdentifiers()
ShardIdentifierProviderShardIdentifierProvider.getShardIdentifier(Class, Serializable, String, Document), ShardIdentifierProvider.getShardIdentifiersForQuery(FullTextFilterImplementor[]),
ShardIdentifierProvider.getAllShardIdentifiers().getAllShardIdentifiers in interface ShardIdentifierProvider@Deprecated public Set<String> getShardIdentifiersForQuery(FullTextFilterImplementor[] fullTextFilters)
getShardIdentifiersForQuery in interface ShardIdentifierProviderfullTextFilters - the filters which are applied to the current query@Deprecated public Set<String> getShardIdentifiersForDeletion(Class<?> entity, Serializable id, String idInString)
getShardIdentifiersForDeletion in interface ShardIdentifierProviderentity - the type of the deleted entityid - the id or nullidInString - the transformed id or nullCopyright © 2006-2023 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.