Package org.mongojack.internal.util
Class FindIterableDecorator<TResult>
- java.lang.Object
-
- org.mongojack.internal.util.FindIterableDecorator<TResult>
-
- Type Parameters:
TResult
- the type this iterable produces
- All Implemented Interfaces:
com.mongodb.client.FindIterable<TResult>
,com.mongodb.client.MongoIterable<TResult>
,Iterable<TResult>
public class FindIterableDecorator<TResult> extends Object implements com.mongodb.client.FindIterable<TResult>
Wraps a FindIterable so we can map the incoming filters.
-
-
Constructor Summary
Constructors Constructor Description FindIterableDecorator(com.mongodb.client.FindIterable<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.FindIterable<TResult>
allowDiskUse(Boolean aBoolean)
com.mongodb.client.FindIterable<TResult>
batchSize(int batchSize)
com.mongodb.client.FindIterable<TResult>
collation(com.mongodb.client.model.Collation collation)
com.mongodb.client.FindIterable<TResult>
comment(String comment)
com.mongodb.client.FindIterable<TResult>
comment(org.bson.BsonValue bsonValue)
com.mongodb.client.MongoCursor<TResult>
cursor()
com.mongodb.client.FindIterable<TResult>
cursorType(com.mongodb.CursorType cursorType)
org.bson.Document
explain()
org.bson.Document
explain(com.mongodb.ExplainVerbosity explainVerbosity)
<E> E
explain(Class<E> aClass)
<E> E
explain(Class<E> aClass, com.mongodb.ExplainVerbosity explainVerbosity)
com.mongodb.client.FindIterable<TResult>
filter(org.bson.conversions.Bson filter)
TResult
first()
void
forEach(Consumer<? super TResult> action)
com.mongodb.client.FindIterable<TResult>
hint(org.bson.conversions.Bson hint)
com.mongodb.client.FindIterable<TResult>
hintString(String hint)
<A extends Collection<? super TResult>>
Ainto(A target)
com.mongodb.client.MongoCursor<TResult>
iterator()
com.mongodb.client.FindIterable<TResult>
let(org.bson.conversions.Bson bson)
com.mongodb.client.FindIterable<TResult>
limit(int limit)
<U> com.mongodb.client.MongoIterable<U>
map(com.mongodb.Function<TResult,U> mapper)
com.mongodb.client.FindIterable<TResult>
max(org.bson.conversions.Bson max)
com.mongodb.client.FindIterable<TResult>
maxAwaitTime(long maxAwaitTime, TimeUnit timeUnit)
com.mongodb.client.FindIterable<TResult>
maxTime(long maxTime, TimeUnit timeUnit)
com.mongodb.client.FindIterable<TResult>
min(org.bson.conversions.Bson min)
com.mongodb.client.FindIterable<TResult>
noCursorTimeout(boolean noCursorTimeout)
com.mongodb.client.FindIterable<TResult>
partial(boolean partial)
com.mongodb.client.FindIterable<TResult>
projection(org.bson.conversions.Bson projection)
com.mongodb.client.FindIterable<TResult>
returnKey(boolean returnKey)
com.mongodb.client.FindIterable<TResult>
showRecordId(boolean showRecordId)
com.mongodb.client.FindIterable<TResult>
skip(int skip)
com.mongodb.client.FindIterable<TResult>
sort(org.bson.conversions.Bson sort)
Spliterator<TResult>
spliterator()
-
-
-
Constructor Detail
-
FindIterableDecorator
public FindIterableDecorator(com.mongodb.client.FindIterable<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.FindIterable<TResult> filter(org.bson.conversions.Bson filter)
- Specified by:
filter
in interfacecom.mongodb.client.FindIterable<TResult>
-
limit
public com.mongodb.client.FindIterable<TResult> limit(int limit)
- Specified by:
limit
in interfacecom.mongodb.client.FindIterable<TResult>
-
skip
public com.mongodb.client.FindIterable<TResult> skip(int skip)
- Specified by:
skip
in interfacecom.mongodb.client.FindIterable<TResult>
-
maxTime
public com.mongodb.client.FindIterable<TResult> maxTime(long maxTime, TimeUnit timeUnit)
- Specified by:
maxTime
in interfacecom.mongodb.client.FindIterable<TResult>
-
maxAwaitTime
public com.mongodb.client.FindIterable<TResult> maxAwaitTime(long maxAwaitTime, TimeUnit timeUnit)
- Specified by:
maxAwaitTime
in interfacecom.mongodb.client.FindIterable<TResult>
-
projection
public com.mongodb.client.FindIterable<TResult> projection(org.bson.conversions.Bson projection)
- Specified by:
projection
in interfacecom.mongodb.client.FindIterable<TResult>
-
sort
public com.mongodb.client.FindIterable<TResult> sort(org.bson.conversions.Bson sort)
- Specified by:
sort
in interfacecom.mongodb.client.FindIterable<TResult>
-
noCursorTimeout
public com.mongodb.client.FindIterable<TResult> noCursorTimeout(boolean noCursorTimeout)
- Specified by:
noCursorTimeout
in interfacecom.mongodb.client.FindIterable<TResult>
-
partial
public com.mongodb.client.FindIterable<TResult> partial(boolean partial)
- Specified by:
partial
in interfacecom.mongodb.client.FindIterable<TResult>
-
cursorType
public com.mongodb.client.FindIterable<TResult> cursorType(com.mongodb.CursorType cursorType)
- Specified by:
cursorType
in interfacecom.mongodb.client.FindIterable<TResult>
-
batchSize
public com.mongodb.client.FindIterable<TResult> batchSize(int batchSize)
-
collation
public com.mongodb.client.FindIterable<TResult> collation(com.mongodb.client.model.Collation collation)
- Specified by:
collation
in interfacecom.mongodb.client.FindIterable<TResult>
-
comment
public com.mongodb.client.FindIterable<TResult> comment(String comment)
- Specified by:
comment
in interfacecom.mongodb.client.FindIterable<TResult>
-
comment
public com.mongodb.client.FindIterable<TResult> comment(org.bson.BsonValue bsonValue)
- Specified by:
comment
in interfacecom.mongodb.client.FindIterable<TResult>
-
hint
public com.mongodb.client.FindIterable<TResult> hint(org.bson.conversions.Bson hint)
- Specified by:
hint
in interfacecom.mongodb.client.FindIterable<TResult>
-
hintString
public com.mongodb.client.FindIterable<TResult> hintString(String hint)
- Specified by:
hintString
in interfacecom.mongodb.client.FindIterable<TResult>
-
let
public com.mongodb.client.FindIterable<TResult> let(org.bson.conversions.Bson bson)
- Specified by:
let
in interfacecom.mongodb.client.FindIterable<TResult>
-
max
public com.mongodb.client.FindIterable<TResult> max(org.bson.conversions.Bson max)
- Specified by:
max
in interfacecom.mongodb.client.FindIterable<TResult>
-
min
public com.mongodb.client.FindIterable<TResult> min(org.bson.conversions.Bson min)
- Specified by:
min
in interfacecom.mongodb.client.FindIterable<TResult>
-
returnKey
public com.mongodb.client.FindIterable<TResult> returnKey(boolean returnKey)
- Specified by:
returnKey
in interfacecom.mongodb.client.FindIterable<TResult>
-
showRecordId
public com.mongodb.client.FindIterable<TResult> showRecordId(boolean showRecordId)
- Specified by:
showRecordId
in interfacecom.mongodb.client.FindIterable<TResult>
-
allowDiskUse
public com.mongodb.client.FindIterable<TResult> allowDiskUse(Boolean aBoolean)
- Specified by:
allowDiskUse
in interfacecom.mongodb.client.FindIterable<TResult>
-
explain
public org.bson.Document explain()
- Specified by:
explain
in interfacecom.mongodb.client.FindIterable<TResult>
-
explain
public org.bson.Document explain(com.mongodb.ExplainVerbosity explainVerbosity)
- Specified by:
explain
in interfacecom.mongodb.client.FindIterable<TResult>
-
explain
public <E> E explain(Class<E> aClass)
- Specified by:
explain
in interfacecom.mongodb.client.FindIterable<TResult>
-
explain
public <E> E explain(Class<E> aClass, com.mongodb.ExplainVerbosity explainVerbosity)
- Specified by:
explain
in interfacecom.mongodb.client.FindIterable<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>
-
-