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 SummaryAll 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- 
getShardingOptionsShardingOptions getShardingOptions() 
 - 
getHintResolutionCallbacksHintResolutionCallbacks getHintResolutionCallbacks() 
 - 
resolveCollectionHintWithoutEntityContextdefault String resolveCollectionHintWithoutEntityContext() throws UnresolvableCollectionShardException 
 - 
resolveDatabaseHintWithoutEntityContextdefault String resolveDatabaseHintWithoutEntityContext() throws UnresolvableDatabaseShardException 
 - 
resolveCollectionNameWithoutEntityContextdefault 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
 
 - 
resolveDatabaseNameWithoutEntityContextdefault 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 hint
- UnresolvableDatabaseShardException
 
 
- 
 
-