Class 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 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 interface com.mongodb.client.FindIterable<TResult>
      • limit

        public com.mongodb.client.FindIterable<TResult> limit​(int limit)
        Specified by:
        limit in interface com.mongodb.client.FindIterable<TResult>
      • skip

        public com.mongodb.client.FindIterable<TResult> skip​(int skip)
        Specified by:
        skip in interface com.mongodb.client.FindIterable<TResult>
      • maxTime

        public com.mongodb.client.FindIterable<TResult> maxTime​(long maxTime,
                                                                TimeUnit timeUnit)
        Specified by:
        maxTime in interface com.mongodb.client.FindIterable<TResult>
      • maxAwaitTime

        public com.mongodb.client.FindIterable<TResult> maxAwaitTime​(long maxAwaitTime,
                                                                     TimeUnit timeUnit)
        Specified by:
        maxAwaitTime in interface com.mongodb.client.FindIterable<TResult>
      • projection

        public com.mongodb.client.FindIterable<TResult> projection​(org.bson.conversions.Bson projection)
        Specified by:
        projection in interface com.mongodb.client.FindIterable<TResult>
      • sort

        public com.mongodb.client.FindIterable<TResult> sort​(org.bson.conversions.Bson sort)
        Specified by:
        sort in interface com.mongodb.client.FindIterable<TResult>
      • noCursorTimeout

        public com.mongodb.client.FindIterable<TResult> noCursorTimeout​(boolean noCursorTimeout)
        Specified by:
        noCursorTimeout in interface com.mongodb.client.FindIterable<TResult>
      • partial

        public com.mongodb.client.FindIterable<TResult> partial​(boolean partial)
        Specified by:
        partial in interface com.mongodb.client.FindIterable<TResult>
      • cursorType

        public com.mongodb.client.FindIterable<TResult> cursorType​(com.mongodb.CursorType cursorType)
        Specified by:
        cursorType in interface com.mongodb.client.FindIterable<TResult>
      • batchSize

        public com.mongodb.client.FindIterable<TResult> batchSize​(int batchSize)
        Specified by:
        batchSize in interface com.mongodb.client.FindIterable<TResult>
        Specified by:
        batchSize in interface com.mongodb.client.MongoIterable<TResult>
      • collation

        public com.mongodb.client.FindIterable<TResult> collation​(com.mongodb.client.model.Collation collation)
        Specified by:
        collation in interface com.mongodb.client.FindIterable<TResult>
      • comment

        public com.mongodb.client.FindIterable<TResult> comment​(String comment)
        Specified by:
        comment in interface com.mongodb.client.FindIterable<TResult>
      • comment

        public com.mongodb.client.FindIterable<TResult> comment​(org.bson.BsonValue bsonValue)
        Specified by:
        comment in interface com.mongodb.client.FindIterable<TResult>
      • hint

        public com.mongodb.client.FindIterable<TResult> hint​(org.bson.conversions.Bson hint)
        Specified by:
        hint in interface com.mongodb.client.FindIterable<TResult>
      • hintString

        public com.mongodb.client.FindIterable<TResult> hintString​(String hint)
        Specified by:
        hintString in interface com.mongodb.client.FindIterable<TResult>
      • let

        public com.mongodb.client.FindIterable<TResult> let​(org.bson.conversions.Bson bson)
        Specified by:
        let in interface com.mongodb.client.FindIterable<TResult>
      • max

        public com.mongodb.client.FindIterable<TResult> max​(org.bson.conversions.Bson max)
        Specified by:
        max in interface com.mongodb.client.FindIterable<TResult>
      • min

        public com.mongodb.client.FindIterable<TResult> min​(org.bson.conversions.Bson min)
        Specified by:
        min in interface com.mongodb.client.FindIterable<TResult>
      • returnKey

        public com.mongodb.client.FindIterable<TResult> returnKey​(boolean returnKey)
        Specified by:
        returnKey in interface com.mongodb.client.FindIterable<TResult>
      • showRecordId

        public com.mongodb.client.FindIterable<TResult> showRecordId​(boolean showRecordId)
        Specified by:
        showRecordId in interface com.mongodb.client.FindIterable<TResult>
      • allowDiskUse

        public com.mongodb.client.FindIterable<TResult> allowDiskUse​(Boolean aBoolean)
        Specified by:
        allowDiskUse in interface com.mongodb.client.FindIterable<TResult>
      • explain

        public org.bson.Document explain()
        Specified by:
        explain in interface com.mongodb.client.FindIterable<TResult>
      • explain

        public org.bson.Document explain​(com.mongodb.ExplainVerbosity explainVerbosity)
        Specified by:
        explain in interface com.mongodb.client.FindIterable<TResult>
      • explain

        public <E> E explain​(Class<E> aClass)
        Specified by:
        explain in interface com.mongodb.client.FindIterable<TResult>
      • explain

        public <E> E explain​(Class<E> aClass,
                             com.mongodb.ExplainVerbosity explainVerbosity)
        Specified by:
        explain in interface com.mongodb.client.FindIterable<TResult>
      • iterator

        public com.mongodb.client.MongoCursor<TResult> iterator()
        Specified by:
        iterator in interface Iterable<TResult>
        Specified by:
        iterator in interface com.mongodb.client.MongoIterable<TResult>
      • cursor

        public com.mongodb.client.MongoCursor<TResult> cursor()
        Specified by:
        cursor in interface com.mongodb.client.MongoIterable<TResult>
      • first

        @Nullable
        public TResult first()
        Specified by:
        first in interface com.mongodb.client.MongoIterable<TResult>
      • map

        public <U> com.mongodb.client.MongoIterable<U> map​(com.mongodb.Function<TResult,​U> mapper)
        Specified by:
        map in interface com.mongodb.client.MongoIterable<TResult>
      • into

        public <A extends Collection<? super TResult>> A into​(A target)
        Specified by:
        into in interface com.mongodb.client.MongoIterable<TResult>