Interface ShardingAssistant
-
- All Known Subinterfaces:
CollectionShardingAssistant,DatabaseShardingAssistant<M>
- All Known Implementing Classes:
CollectionShardedMongoTemplate,CollectionShardedReactiveMongoTemplate,CompositeShardedMongoTemplate,CompositeShardedReactiveMongoTemplate,DatabaseShardedExecutableFindSupport,DatabaseShardedExecutableInsertSupport,DatabaseShardedExecutableRemoveSupport,DatabaseShardedExecutableUpdateSupport,DatabaseShardedMongoTemplate,DatabaseShardedReactiveMongoTemplate,ShardedMongoTemplate,ShardedReactiveMongoTemplate
public interface ShardingAssistant
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description HintResolutionCallbacksgetHintResolutionCallbacks()ShardingOptionsgetShardingOptions()default StringresolveCollectionHintWithoutEntityContext()default StringresolveCollectionNameWithoutEntityContext(String collectionName)Resolve the collection name when there is no entity context.default StringresolveDatabaseHintWithoutEntityContext()default StringresolveDatabaseNameWithoutEntityContext(String databaseName)Resolve the database name when there is no entity context.
-
-
-
Method Detail
-
getShardingOptions
ShardingOptions getShardingOptions()
-
getHintResolutionCallbacks
HintResolutionCallbacks getHintResolutionCallbacks()
-
resolveCollectionHintWithoutEntityContext
default String resolveCollectionHintWithoutEntityContext() throws UnresolvableCollectionShardException
-
resolveDatabaseHintWithoutEntityContext
default String resolveDatabaseHintWithoutEntityContext() throws UnresolvableDatabaseShardException
-
resolveCollectionNameWithoutEntityContext
default String resolveCollectionNameWithoutEntityContext(String collectionName) throws UnresolvableCollectionShardException
Resolve the collection name when there is no entity context. Here,ShardingHintManageris used to determine the collection.- Parameters:
collectionName- Base Collection Name- Returns:
- Resolved Collection Name
- Throws:
UnresolvableCollectionShardException- when the flow is unable to determine the hint
-
resolveDatabaseNameWithoutEntityContext
default String resolveDatabaseNameWithoutEntityContext(String databaseName) throws UnresolvableDatabaseShardException
Resolve the database name when there is no entity context. Here,ShardingHintManageris used to determine the database name.- Parameters:
databaseName- Base Database Name- Returns:
- Resolved Collection Name
- Throws:
UnresolvableCollectionShardException- when the flow is unable to determine the hintUnresolvableDatabaseShardException
-
-