Interface CollectionShardingAssistant
-
- All Superinterfaces:
ShardingAssistant
- All Known Implementing Classes:
CollectionShardedMongoTemplate
,CollectionShardedReactiveMongoTemplate
public interface CollectionShardingAssistant extends ShardingAssistant
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default <T> String
resolveCollectionNameForDeleteContext(String collectionName, Class<T> entityClass, org.bson.Document query)
default <T> String
resolveCollectionNameForDeleteContext(String collectionName, Class<T> entityClass, org.springframework.data.mongodb.core.query.Query query)
default <T> String
resolveCollectionNameForFindContext(String collectionName, Class<T> entityClass, org.bson.Document query)
default <T> String
resolveCollectionNameForFindContext(String collectionName, Class<T> entityClass, org.springframework.data.mongodb.core.query.Query query)
default <T> String
resolveCollectionNameForSaveContext(String collectionName, T entity)
default <T> String
resolveCollectionNameForUpdateContext(String collectionName, Class<T> entityClass, org.springframework.data.mongodb.core.query.Query query, org.springframework.data.mongodb.core.query.UpdateDefinition updateDefinition)
default <T> String
resolveCollectionNameWithEntityContext(String collectionName, T entity)
default void
validateCollectionHint(String collectionName, String hint)
-
Methods inherited from interface com.alpha.mongodb.sharding.core.assitant.ShardingAssistant
getHintResolutionCallbacks, getShardingOptions, resolveCollectionHintWithoutEntityContext, resolveCollectionNameWithoutEntityContext, resolveDatabaseHintWithoutEntityContext, resolveDatabaseNameWithoutEntityContext
-
-
-
-
Method Detail
-
resolveCollectionNameWithEntityContext
@NonNull default <T> String resolveCollectionNameWithEntityContext(String collectionName, T entity) throws UnresolvableCollectionShardException
-
validateCollectionHint
default void validateCollectionHint(String collectionName, String hint) throws UnresolvableCollectionShardException
-
resolveCollectionNameForFindContext
default <T> String resolveCollectionNameForFindContext(String collectionName, Class<T> entityClass, org.springframework.data.mongodb.core.query.Query query)
-
resolveCollectionNameForFindContext
default <T> String resolveCollectionNameForFindContext(String collectionName, Class<T> entityClass, org.bson.Document query)
-
resolveCollectionNameForSaveContext
default <T> String resolveCollectionNameForSaveContext(String collectionName, T entity)
-
resolveCollectionNameForUpdateContext
default <T> String resolveCollectionNameForUpdateContext(String collectionName, Class<T> entityClass, org.springframework.data.mongodb.core.query.Query query, org.springframework.data.mongodb.core.query.UpdateDefinition updateDefinition)
-
resolveCollectionNameForDeleteContext
default <T> String resolveCollectionNameForDeleteContext(String collectionName, Class<T> entityClass, org.springframework.data.mongodb.core.query.Query query)
-
-