Package com.mongodb

Class ParallelScanOptions


  • @Deprecated
    @Immutable
    public final class ParallelScanOptions
    extends java.lang.Object
    Deprecated.
    the parallelCollectionScan command will be removed in MongoDB 4.2
    The options to use for a parallel collection scan.
    Since:
    2.12
    • Method Detail

      • getNumCursors

        public int getNumCursors()
        Deprecated.
        Gets the number of cursors requested. The default value is 1.
        Returns:
        number of cursors requested.
      • getBatchSize

        public int getBatchSize()
        Deprecated.
        Gets the batch size to use for each cursor. The default value is 0, which tells the server to use its own default batch size.
        Returns:
        batch size
      • getReadPreference

        @Nullable
        public ReadPreference getReadPreference()
        Deprecated.
        Gets the read preference to use.
        Returns:
        read preference