Package com.mongodb

Class ParallelScanOptions.Builder

    • Constructor Detail

      • Builder

        public Builder​()
    • Method Detail

      • numCursors

        public ParallelScanOptions.Builder numCursors​(int numCursors)
        Set the requested number of cursors to iterate in parallel. This is an upper bound and the server may provide fewer.
        Parameters:
        numCursors - the number of cursors requested, which must be >= 1
        Returns:
        this
      • batchSize

        public ParallelScanOptions.Builder batchSize​(int batchSize)
        The batch size to use for each cursor.
        Parameters:
        batchSize - the batch size, which must be >= 0
        Returns:
        this
      • build

        public ParallelScanOptions build​()
        Creates a ParallelScanOptions with the settings initialised in this builder.
        Returns:
        a new ParallelScanOptions.