Class DatabaseShardedExecutableFindSupport<T>

  • All Implemented Interfaces:
    DatabaseShardingAssistant<ExtendedMongoTemplate>, ShardingAssistant, org.springframework.data.mongodb.core.ExecutableFindOperation.ExecutableFind<T>, org.springframework.data.mongodb.core.ExecutableFindOperation.FindDistinct, org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithCollection<T>, org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithProjection<T>, org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithQuery<T>, org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>

    public class DatabaseShardedExecutableFindSupport<T>
    extends Object
    implements org.springframework.data.mongodb.core.ExecutableFindOperation.ExecutableFind<T>, org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithCollection<T>, org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithProjection<T>, org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithQuery<T>, DatabaseShardingAssistant<ExtendedMongoTemplate>
    Implementation of ExecutableFindOperation modified for Database Sharding
    Author:
    Shashank Sharma
    • Constructor Detail

      • DatabaseShardedExecutableFindSupport

        public DatabaseShardedExecutableFindSupport()
    • Method Detail

      • inCollection

        public org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithProjection<T> inCollection​(String collection)
        Specified by:
        inCollection in interface org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithCollection<T>
      • as

        public <T1> org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithQuery<T1> as​(Class<T1> returnType)
        Specified by:
        as in interface org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithProjection<T>
      • matching

        public org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T> matching​(org.springframework.data.mongodb.core.query.Query query)
        Specified by:
        matching in interface org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithQuery<T>
      • oneValue

        public T oneValue()
        Specified by:
        oneValue in interface org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
      • firstValue

        public T firstValue()
        Specified by:
        firstValue in interface org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
      • all

        public List<T> all()
        Specified by:
        all in interface org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
      • stream

        public Stream<T> stream()
        Specified by:
        stream in interface org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
      • near

        public org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFindNear<T> near​(org.springframework.data.mongodb.core.query.NearQuery nearQuery)
        Specified by:
        near in interface org.springframework.data.mongodb.core.ExecutableFindOperation.FindWithQuery<T>
      • count

        public long count()
        Specified by:
        count in interface org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
      • exists

        public boolean exists()
        Specified by:
        exists in interface org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingFind<T>
      • distinct

        public org.springframework.data.mongodb.core.ExecutableFindOperation.TerminatingDistinct<Object> distinct​(String field)
        Specified by:
        distinct in interface org.springframework.data.mongodb.core.ExecutableFindOperation.FindDistinct