Class CompositeShardedMongoTemplate
- java.lang.Object
-
- org.springframework.data.mongodb.core.MongoTemplate
-
- com.alpha.mongodb.sharding.core.template.ExtendedMongoTemplate
-
- com.alpha.mongodb.sharding.core.template.ShardedMongoTemplate
-
- com.alpha.mongodb.sharding.core.template.DatabaseShardedMongoTemplate
-
- com.alpha.mongodb.sharding.core.template.CompositeShardedMongoTemplate
-
- All Implemented Interfaces:
DatabaseShardingAssistant<ExtendedMongoTemplate>
,ShardingAssistant
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.data.mongodb.core.ExecutableAggregationOperation
,org.springframework.data.mongodb.core.ExecutableFindOperation
,org.springframework.data.mongodb.core.ExecutableInsertOperation
,org.springframework.data.mongodb.core.ExecutableMapReduceOperation
,org.springframework.data.mongodb.core.ExecutableRemoveOperation
,org.springframework.data.mongodb.core.ExecutableUpdateOperation
,org.springframework.data.mongodb.core.FluentMongoOperations
,org.springframework.data.mongodb.core.index.IndexOperationsProvider
,org.springframework.data.mongodb.core.MongoOperations
public class CompositeShardedMongoTemplate extends DatabaseShardedMongoTemplate
Composite Sharded Mongo Template to be used with collections that are sharded both by Database and Collection- Author:
- Shashank Sharma
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.springframework.data.mongodb.core.ExecutableAggregationOperation
org.springframework.data.mongodb.core.ExecutableAggregationOperation.AggregationWithAggregation<T extends Object>, org.springframework.data.mongodb.core.ExecutableAggregationOperation.AggregationWithCollection<T extends Object>, org.springframework.data.mongodb.core.ExecutableAggregationOperation.ExecutableAggregation<T extends Object>, org.springframework.data.mongodb.core.ExecutableAggregationOperation.TerminatingAggregation<T extends Object>
-
Nested classes/interfaces inherited from interface org.springframework.data.mongodb.core.ExecutableFindOperation
org.springframework.data.mongodb.core.ExecutableFindOperation.DistinctWithProjection, org.springframework.data.mongodb.core.ExecutableFindOperation.DistinctWithQuery<T extends Object>, org.springframework.data.mongodb.core.ExecutableFindOperation.ExecutableFind<T extends Object>, org.springframework.data.mongodb.core.ExecutableFindOperation.FindDistinct, org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithCollection<T extends Object>, org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithProjection<T extends Object>, org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithQuery<T extends Object>, org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingDistinct<T extends Object>, org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T extends Object>, org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFindNear<T extends Object>
-
Nested classes/interfaces inherited from interface org.springframework.data.mongodb.core.ExecutableInsertOperation
org.springframework.data.mongodb.core.ExecutableInsertOperation.ExecutableInsert<T extends Object>, org.springframework.data.mongodb.core.ExecutableInsertOperation.InsertWithBulkMode<T extends Object>, org.springframework.data.mongodb.core.ExecutableInsertOperation.InsertWithCollection<T extends Object>, org.springframework.data.mongodb.core.ExecutableInsertOperation.TerminatingBulkInsert<T extends Object>, org.springframework.data.mongodb.core.ExecutableInsertOperation.TerminatingInsert<T extends Object>
-
Nested classes/interfaces inherited from interface org.springframework.data.mongodb.core.ExecutableMapReduceOperation
org.springframework.data.mongodb.core.ExecutableMapReduceOperation.ExecutableMapReduce<T extends Object>, org.springframework.data.mongodb.core.ExecutableMapReduceOperation.MapReduceWithCollection<T extends Object>, org.springframework.data.mongodb.core.ExecutableMapReduceOperation.MapReduceWithMapFunction<T extends Object>, org.springframework.data.mongodb.core.ExecutableMapReduceOperation.MapReduceWithOptions<T extends Object>, org.springframework.data.mongodb.core.ExecutableMapReduceOperation.MapReduceWithProjection<T extends Object>, org.springframework.data.mongodb.core.ExecutableMapReduceOperation.MapReduceWithQuery<T extends Object>, org.springframework.data.mongodb.core.ExecutableMapReduceOperation.MapReduceWithReduceFunction<T extends Object>, org.springframework.data.mongodb.core.ExecutableMapReduceOperation.TerminatingMapReduce<T extends Object>
-
Nested classes/interfaces inherited from interface org.springframework.data.mongodb.core.ExecutableRemoveOperation
org.springframework.data.mongodb.core.ExecutableRemoveOperation.ExecutableRemove<T extends Object>, org.springframework.data.mongodb.core.ExecutableRemoveOperation.RemoveWithCollection<T extends Object>, org.springframework.data.mongodb.core.ExecutableRemoveOperation.RemoveWithQuery<T extends Object>, org.springframework.data.mongodb.core.ExecutableRemoveOperation.TerminatingRemove<T extends Object>
-
Nested classes/interfaces inherited from interface org.springframework.data.mongodb.core.ExecutableUpdateOperation
org.springframework.data.mongodb.core.ExecutableUpdateOperation.ExecutableUpdate<T extends Object>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndModifyWithOptions<T extends Object>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithOptions<T extends Object>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.FindAndReplaceWithProjection<T extends Object>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingFindAndModify<T extends Object>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingFindAndReplace<T extends Object>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.TerminatingUpdate<T extends Object>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithCollection<T extends Object>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithQuery<T extends Object>, org.springframework.data.mongodb.core.ExecutableUpdateOperation.UpdateWithUpdate<T extends Object>
-
-
Constructor Summary
Constructors Constructor Description CompositeShardedMongoTemplate(com.mongodb.client.MongoClient mongoClient, String databaseName, CompositeShardingOptions shardingOptions)
CompositeShardedMongoTemplate(Map<String,org.springframework.data.mongodb.MongoDatabaseFactory> delegatedDatabaseFactory, CompositeShardingOptions shardingOptions)
CompositeShardedMongoTemplate(Map<String,org.springframework.data.mongodb.MongoDatabaseFactory> delegatedDatabaseFactory, org.springframework.data.mongodb.core.convert.MongoConverter mongoConverter, CompositeShardingOptions shardingOptions)
-
Method Summary
-
Methods inherited from class com.alpha.mongodb.sharding.core.template.DatabaseShardedMongoTemplate
find, find, findAll, findAll, findAllAndRemove, findAllAndRemove, findAllAndRemove, findAndModify, findAndModify, findAndModify, findAndModify, findAndRemove, findAndRemove, findAndReplace, findAndReplace, findAndReplace, findAndReplace, findAndReplace, findAndReplace, findAndReplace, findById, findById, findDistinct, findDistinct, findDistinct, findDistinct, findOne, findOne, insert, insert, insert, insert, insert, insertAll, query, remove, remove, remove, remove, remove, remove, save, save, stream, stream, update, updateFirst, updateFirst, updateFirst, updateMulti, updateMulti, updateMulti, upsert, upsert, upsert
-
Methods inherited from class com.alpha.mongodb.sharding.core.template.ShardedMongoTemplate
setApplicationContext
-
Methods inherited from class com.alpha.mongodb.sharding.core.template.ExtendedMongoTemplate
removeOne
-
Methods inherited from class org.springframework.data.mongodb.core.MongoTemplate
aggregate, aggregate, aggregate, aggregate, aggregate, aggregateAndReturn, aggregateStream, aggregateStream, aggregateStream, aggregateStream, aggregateStream, bulkOps, bulkOps, bulkOps, collectionExists, collectionExists, convertToDocument, convertToDocument, count, count, count, countCanBeEstimated, createCollection, createCollection, createCollection, createCollection, doAggregate, doCount, doCreateCollection, doCreateCollection, doEstimatedCount, doExactCount, doFind, doFind, doFind, doFindAndDelete, doFindAndModify, doFindAndRemove, doFindAndReplace, doFindOne, doFindOne, doGetDatabase, doInsert, doInsertAll, doInsertBatch, doRemove, doSave, doStream, doUpdate, dropCollection, dropCollection, ensureNotCollectionLike, ensureNotIterable, estimatedCount, exactCount, execute, execute, execute, executeCommand, executeCommand, executeCommand, executeQuery, executeQuery, exists, exists, exists, geoNear, geoNear, geoNear, getCollection, getCollectionName, getCollectionNames, getConverter, getDb, getExceptionTranslator, getMongoDatabaseFactory, getMongoDbFactory, group, group, indexOps, indexOps, indexOps, insertDocument, insertDocumentList, mapReduce, mapReduce, mapReduce, mapReduce, mapReduce, mapReduce, maybeCallAfterConvert, maybeCallAfterSave, maybeCallBeforeConvert, maybeCallBeforeSave, maybeEmitEvent, populateIdIfNecessary, prepareCollection, prepareDatabase, prepareWriteConcern, replaceWithResourceIfNecessary, saveDocument, scriptOps, setEntityCallbacks, setReadPreference, setSessionSynchronization, setWriteConcern, setWriteConcernResolver, setWriteResultChecking, useEstimatedCount, withSession, withSession
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.alpha.mongodb.sharding.core.assitant.DatabaseShardingAssistant
getDelegatedShardedMongoTemplateMap, getDelegatedTemplateForDeleteContext, getDelegatedTemplateForDeleteContext, getDelegatedTemplateForDeleteContext, getDelegatedTemplateForFindContext, getDelegatedTemplateForFindContext, getDelegatedTemplateForSaveContext, getDelegatedTemplateForUpdateContext, getDelegatedTemplateForUpdateContext, getDelegatedTemplateWithEntityContext, getDelegatedTemplateWithoutEntityContext, resolveDatabaseHintWithEntityContext
-
Methods inherited from interface org.springframework.data.mongodb.core.MongoOperations
estimatedCount, exactCount, exactCount, withSession
-
Methods inherited from interface com.alpha.mongodb.sharding.core.assitant.ShardingAssistant
getHintResolutionCallbacks, getShardingOptions, resolveCollectionHintWithoutEntityContext, resolveCollectionNameWithoutEntityContext, resolveDatabaseHintWithoutEntityContext, resolveDatabaseNameWithoutEntityContext
-
-
-
-
Constructor Detail
-
CompositeShardedMongoTemplate
public CompositeShardedMongoTemplate(com.mongodb.client.MongoClient mongoClient, String databaseName, CompositeShardingOptions shardingOptions)
-
CompositeShardedMongoTemplate
public CompositeShardedMongoTemplate(Map<String,org.springframework.data.mongodb.MongoDatabaseFactory> delegatedDatabaseFactory, CompositeShardingOptions shardingOptions)
-
CompositeShardedMongoTemplate
public CompositeShardedMongoTemplate(Map<String,org.springframework.data.mongodb.MongoDatabaseFactory> delegatedDatabaseFactory, org.springframework.data.mongodb.core.convert.MongoConverter mongoConverter, CompositeShardingOptions shardingOptions)
-
-