org.springframework.data.mongodb.core.aggregation

Class AggregationOptions.Builder

  • java.lang.Object
    • org.springframework.data.mongodb.core.aggregation.AggregationOptions.Builder
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • allowDiskUse

        public AggregationOptions.Builder allowDiskUse(boolean allowDiskUse)
        Defines whether to off-load intensive sort-operations to disk.
        Parameters:
        allowDiskUse -
        Returns:
      • explain

        public AggregationOptions.Builder explain(boolean explain)
        Defines whether to get the execution plan for the aggregation instead of the actual results.
        Parameters:
        explain -
        Returns:
      • cursor

        public AggregationOptions.Builder cursor(org.bson.Document cursor)
        Additional options to the aggregation.
        Parameters:
        cursor -
        Returns:
      • cursorBatchSize

        public AggregationOptions.Builder cursorBatchSize(int batchSize)
        Define the initial cursor batch size.
        Parameters:
        batchSize -
        Returns:
        Since:
        2.0