Package step.client.collections.remote
Class RemoteCollection<T>
java.lang.Object
step.client.collections.remote.RemoteCollection<T>
- All Implemented Interfaces:
step.core.collections.Collection<T>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRemoteCollection
(AbstractRemoteClient client, String collection, Class<T> entityClass) -
Method Summary
Modifier and TypeMethodDescriptionlong
void
createOrUpdateCompoundIndex
(String... fields) void
void
createOrUpdateIndex
(String field) void
createOrUpdateIndex
(String field, int order) void
drop()
long
find
(step.core.collections.Filter filter, step.core.collections.SearchOrder order, Integer skip, Integer limit, int maxTime) findLazy
(step.core.collections.Filter filter, step.core.collections.SearchOrder order, Integer skip, Integer limit, int maxTime) findReduced
(step.core.collections.Filter filter, step.core.collections.SearchOrder order, Integer skip, Integer limit, int maxTime, List<String> reduceFields) protected UnsupportedOperationException
void
remove
(step.core.collections.Filter filter) void
void
-
Field Details
-
path
-
entityClass
-
client
-
-
Constructor Details
-
RemoteCollection
-
-
Method Details
-
find
public Stream<T> find(step.core.collections.Filter filter, step.core.collections.SearchOrder order, Integer skip, Integer limit, int maxTime) - Specified by:
find
in interfacestep.core.collections.Collection<T>
-
findLazy
public Stream<T> findLazy(step.core.collections.Filter filter, step.core.collections.SearchOrder order, Integer skip, Integer limit, int maxTime) - Specified by:
findLazy
in interfacestep.core.collections.Collection<T>
-
distinct
- Specified by:
distinct
in interfacestep.core.collections.Collection<T>
-
findReduced
public Stream<T> findReduced(step.core.collections.Filter filter, step.core.collections.SearchOrder order, Integer skip, Integer limit, int maxTime, List<String> reduceFields) - Specified by:
findReduced
in interfacestep.core.collections.Collection<T>
-
remove
public void remove(step.core.collections.Filter filter) - Specified by:
remove
in interfacestep.core.collections.Collection<T>
-
save
- Specified by:
save
in interfacestep.core.collections.Collection<T>
-
save
- Specified by:
save
in interfacestep.core.collections.Collection<T>
-
createOrUpdateIndex
- Specified by:
createOrUpdateIndex
in interfacestep.core.collections.Collection<T>
-
createOrUpdateIndex
- Specified by:
createOrUpdateIndex
in interfacestep.core.collections.Collection<T>
-
createOrUpdateCompoundIndex
- Specified by:
createOrUpdateCompoundIndex
in interfacestep.core.collections.Collection<T>
-
createOrUpdateCompoundIndex
- Specified by:
createOrUpdateCompoundIndex
in interfacestep.core.collections.Collection<T>
-
rename
- Specified by:
rename
in interfacestep.core.collections.Collection<T>
-
drop
public void drop()- Specified by:
drop
in interfacestep.core.collections.Collection<T>
-
getEntityClass
- Specified by:
getEntityClass
in interfacestep.core.collections.Collection<T>
-
notImplemented
-
count
- Specified by:
count
in interfacestep.core.collections.Collection<T>
-
estimatedCount
public long estimatedCount()- Specified by:
estimatedCount
in interfacestep.core.collections.Collection<T>
-