Class PostExplainOptions.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 PostExplainOptions build()
        Builds a PostExplainOptions.
        Returns:
        the new PostExplainOptions instance
      • addFields

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

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

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

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

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

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

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

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

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