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

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

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

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

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

        public com.mongodb.client.DistinctIterable<TResult> comment​(org.bson.BsonValue bsonValue)
        Specified by:
        comment in interface com.mongodb.client.DistinctIterable<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>