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 ofExecutableFindOperation
modified 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)
long
count()
org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingDistinct<Object>
distinct(String field)
boolean
exists()
T
firstValue()
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)
T
oneValue()
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:
inCollection
in 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:
as
in 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:
matching
in interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.FindWithQuery<T>
-
oneValue
public T oneValue()
- Specified by:
oneValue
in interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
-
firstValue
public T firstValue()
- Specified by:
firstValue
in interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
-
all
public List<T> all()
- Specified by:
all
in interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
-
stream
public Stream<T> stream()
- Specified by:
stream
in 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:
near
in interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.FindWithQuery<T>
-
count
public long count()
- Specified by:
count
in interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
-
exists
public boolean exists()
- Specified by:
exists
in interfaceorg.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
-
-