Class PostFindOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
      • Builder

        public Builder​(String db,
                       Map<String,​Object> selector)
        Instantiates a new builder with required properties.
        Parameters:
        db - the db
        selector - the selector
    • Method Detail

      • build

        public PostFindOptions build()
        Builds a PostFindOptions.
        Returns:
        the new PostFindOptions instance
      • addFields

        public PostFindOptions.Builder addFields​(String fields)
        Adds an fields to fields.
        Parameters:
        fields - the new fields
        Returns:
        the PostFindOptions builder
      • addUseIndex

        public PostFindOptions.Builder addUseIndex​(String useIndex)
        Adds an useIndex to useIndex.
        Parameters:
        useIndex - the new useIndex
        Returns:
        the PostFindOptions builder
      • bookmark

        public PostFindOptions.Builder bookmark​(String bookmark)
        Set the bookmark.
        Parameters:
        bookmark - the bookmark
        Returns:
        the PostFindOptions builder
      • conflicts

        public PostFindOptions.Builder conflicts​(Boolean conflicts)
        Set the conflicts.
        Parameters:
        conflicts - the conflicts
        Returns:
        the PostFindOptions builder
      • executionStats

        public PostFindOptions.Builder executionStats​(Boolean executionStats)
        Set the executionStats.
        Parameters:
        executionStats - the executionStats
        Returns:
        the PostFindOptions builder
      • fields

        public PostFindOptions.Builder fields​(List<String> fields)
        Set the fields. Existing fields will be replaced.
        Parameters:
        fields - the fields
        Returns:
        the PostFindOptions builder
      • limit

        public PostFindOptions.Builder limit​(long limit)
        Set the limit.
        Parameters:
        limit - the limit
        Returns:
        the PostFindOptions builder
      • skip

        public PostFindOptions.Builder skip​(long skip)
        Set the skip.
        Parameters:
        skip - the skip
        Returns:
        the PostFindOptions builder
      • stable

        public PostFindOptions.Builder stable​(Boolean stable)
        Set the stable.
        Parameters:
        stable - the stable
        Returns:
        the PostFindOptions builder
      • update

        public PostFindOptions.Builder update​(String update)
        Set the update.
        Parameters:
        update - the update
        Returns:
        the PostFindOptions builder
      • useIndex

        public PostFindOptions.Builder useIndex​(List<String> useIndex)
        Set the useIndex. Existing useIndex will be replaced.
        Parameters:
        useIndex - the useIndex
        Returns:
        the PostFindOptions builder
      • r

        public PostFindOptions.Builder r​(long r)
        Set the r.
        Parameters:
        r - the r
        Returns:
        the PostFindOptions builder