Package org.mongojack.internal.util
Class DistinctIterableDecorator<TResult>
- java.lang.Object
-
- org.mongojack.internal.util.DistinctIterableDecorator<TResult>
-
- All Implemented Interfaces:
com.mongodb.client.DistinctIterable<TResult>
,com.mongodb.client.MongoIterable<TResult>
,Iterable<TResult>
public class DistinctIterableDecorator<TResult> extends Object implements com.mongodb.client.DistinctIterable<TResult>
Wraps a DistinctIterable so we can map filters
-
-
Constructor Summary
Constructors Constructor Description DistinctIterableDecorator(com.mongodb.client.DistinctIterable<TResult> delegate, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.databind.JavaType type, JacksonCodecRegistry codecRegistry, SerializationOptions serializationOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.mongodb.client.DistinctIterable<TResult>
batchSize(int batchSize)
com.mongodb.client.DistinctIterable<TResult>
collation(com.mongodb.client.model.Collation collation)
com.mongodb.client.DistinctIterable<TResult>
comment(String s)
com.mongodb.client.DistinctIterable<TResult>
comment(org.bson.BsonValue bsonValue)
com.mongodb.client.MongoCursor<TResult>
cursor()
com.mongodb.client.DistinctIterable<TResult>
filter(org.bson.conversions.Bson filter)
TResult
first()
void
forEach(Consumer<? super TResult> action)
<A extends Collection<? super TResult>>
Ainto(A target)
com.mongodb.client.MongoCursor<TResult>
iterator()
<U> com.mongodb.client.MongoIterable<U>
map(com.mongodb.Function<TResult,U> mapper)
com.mongodb.client.DistinctIterable<TResult>
maxTime(long maxTime, TimeUnit timeUnit)
Spliterator<TResult>
spliterator()
-
-
-
Constructor Detail
-
DistinctIterableDecorator
public DistinctIterableDecorator(com.mongodb.client.DistinctIterable<TResult> delegate, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.fasterxml.jackson.databind.JavaType type, JacksonCodecRegistry codecRegistry, SerializationOptions serializationOptions)
-
-
Method Detail
-
filter
public com.mongodb.client.DistinctIterable<TResult> filter(org.bson.conversions.Bson filter)
- Specified by:
filter
in interfacecom.mongodb.client.DistinctIterable<TResult>
-
maxTime
public com.mongodb.client.DistinctIterable<TResult> maxTime(long maxTime, TimeUnit timeUnit)
- Specified by:
maxTime
in interfacecom.mongodb.client.DistinctIterable<TResult>
-
batchSize
public com.mongodb.client.DistinctIterable<TResult> batchSize(int batchSize)
-
collation
public com.mongodb.client.DistinctIterable<TResult> collation(com.mongodb.client.model.Collation collation)
- Specified by:
collation
in interfacecom.mongodb.client.DistinctIterable<TResult>
-
comment
public com.mongodb.client.DistinctIterable<TResult> comment(String s)
- Specified by:
comment
in interfacecom.mongodb.client.DistinctIterable<TResult>
-
comment
public com.mongodb.client.DistinctIterable<TResult> comment(org.bson.BsonValue bsonValue)
- Specified by:
comment
in interfacecom.mongodb.client.DistinctIterable<TResult>
-
iterator
public com.mongodb.client.MongoCursor<TResult> iterator()
-
cursor
public com.mongodb.client.MongoCursor<TResult> cursor()
- Specified by:
cursor
in interfacecom.mongodb.client.MongoIterable<TResult>
-
first
@Nullable public TResult first()
- Specified by:
first
in interfacecom.mongodb.client.MongoIterable<TResult>
-
map
public <U> com.mongodb.client.MongoIterable<U> map(com.mongodb.Function<TResult,U> mapper)
- Specified by:
map
in interfacecom.mongodb.client.MongoIterable<TResult>
-
into
public <A extends Collection<? super TResult>> A into(A target)
- Specified by:
into
in interfacecom.mongodb.client.MongoIterable<TResult>
-
spliterator
public Spliterator<TResult> spliterator()
- Specified by:
spliterator
in interfaceIterable<TResult>
-
-