Examples of parallelScan()


Examples of com.mongodb.DBCollection.parallelScan()

                .builder()
                .numCursors(3)
                .batchSize(300)
                .build();

        List<Cursor> cursors = coll.parallelScan(parallelScanOptions);
        for (Cursor pCursor: cursors) {
            while (pCursor.hasNext()) {
                System.out.println(pCursor.next());
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.