Class DatabaseShardedExecutableFindSupport<T>
- java.lang.Object
 - 
- com.alpha.mongodb.sharding.core.executable.DatabaseShardedExecutableFindSupport<T>
 
 
- 
- All Implemented Interfaces:
 DatabaseShardingAssistant<ExtendedMongoTemplate>,ShardingAssistant,org.springframework.data.mongodb.core.ExecutableFindOperation.ExecutableFind<T>,org.springframework.data.mongodb.core.ExecutableFindOperation.FindDistinct,org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithCollection<T>,org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithProjection<T>,org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithQuery<T>,org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
public class DatabaseShardedExecutableFindSupport<T> extends Object implements org.springframework.data.mongodb.core.ExecutableFindOperation.ExecutableFind<T>, org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithCollection<T>, org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithProjection<T>, org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithQuery<T>, DatabaseShardingAssistant<ExtendedMongoTemplate>
Implementation ofExecutableFindOperationmodified for Database Sharding- Author:
 - Shashank Sharma
 
 
- 
- 
Constructor Summary
Constructors Constructor Description DatabaseShardedExecutableFindSupport() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<T>all()<T1> org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithQuery<T1>as(Class<T1> returnType)longcount()org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingDistinct<Object>distinct(String field)booleanexists()TfirstValue()org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithProjection<T>inCollection(String collection)org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>matching(org.springframework.data.mongodb.core.query.Query query)org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFindNear<T>near(org.springframework.data.mongodb.core.query.NearQuery nearQuery)ToneValue()Stream<T>stream()- 
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.ExecutableFindOperation.FindWithQuery
matching 
- 
Methods inherited from interface org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind
first, one 
- 
Methods inherited from interface com.alpha.mongodb.sharding.core.assitant.ShardingAssistant
getHintResolutionCallbacks, getShardingOptions, resolveCollectionHintWithoutEntityContext, resolveCollectionNameWithoutEntityContext, resolveDatabaseHintWithoutEntityContext, resolveDatabaseNameWithoutEntityContext 
 - 
 
 - 
 
- 
- 
Method Detail
- 
inCollection
public org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithProjection<T> inCollection(String collection)
- Specified by:
 inCollectionin interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.FindWithCollection<T>
 
- 
as
public <T1> org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithQuery<T1> as(Class<T1> returnType)
- Specified by:
 asin interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.FindWithProjection<T>
 
- 
matching
public org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T> matching(org.springframework.data.mongodb.core.query.Query query)
- Specified by:
 matchingin interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.FindWithQuery<T>
 
- 
oneValue
public T oneValue()
- Specified by:
 oneValuein interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
 
- 
firstValue
public T firstValue()
- Specified by:
 firstValuein interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
 
- 
all
public List<T> all()
- Specified by:
 allin interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
 
- 
stream
public Stream<T> stream()
- Specified by:
 streamin interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
 
- 
near
public org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFindNear<T> near(org.springframework.data.mongodb.core.query.NearQuery nearQuery)
- Specified by:
 nearin interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.FindWithQuery<T>
 
- 
count
public long count()
- Specified by:
 countin interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
 
- 
exists
public boolean exists()
- Specified by:
 existsin interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
 
 - 
 
 -