Package com.mongodb

Examples of com.mongodb.DBCursor.skip()


      cursor.sort( query.getOrderBy() );
    }

    // apply firstRow/maxRows if present
    if ( queryParameters.getRowSelection().getFirstRow() != null ) {
      cursor.skip( queryParameters.getRowSelection().getFirstRow() );
    }

    if ( queryParameters.getRowSelection().getMaxRows() != null ) {
      cursor.limit( queryParameters.getRowSelection().getMaxRows() );
    }
View Full Code Here


            if (batchSize != null) {
                ret.batchSize(batchSize.intValue());
            }

            if (numToSkip != null) {
                ret.skip(numToSkip.intValue());
            }

            if (limit != null) {
                ret.limit(limit.intValue());
            }
View Full Code Here

                if (sort != null) {
                    cursor.sort(sort);
                }
                try {
                    if (mongoSpec.getSkip() > 0) {
                        cursor.skip(mongoSpec.getSkip());
                    }
                    if (mongoSpec.getLimit() != 0) {
                        cursor.limit(mongoSpec.getLimit());
                    }
                    if (mongoSpec.getBatchSize() != 0) {
View Full Code Here

      cursor.sort( query.getOrderBy() );
    }

    // apply firstRow/maxRows if present
    if ( queryParameters.getRowSelection().getFirstRow() != null ) {
      cursor.skip( queryParameters.getRowSelection().getFirstRow() );
    }

    if ( queryParameters.getRowSelection().getMaxRows() != null ) {
      cursor.limit( queryParameters.getRowSelection().getMaxRows() );
    }
View Full Code Here

        if (maxRows > 0) {
            cursor = cursor.limit(maxRows);
        }
        if (firstRow > 1) {
            final int skip = firstRow - 1;
            cursor = cursor.skip(skip);
        }

        return new MongoDbDataSet(cursor, columns, queryPostProcessed);
    }
View Full Code Here

            }

            // limit data
            if (skip > 0 || limit > 0) {
                if (skip > 0) {
                    cursor = cursor.skip(skip);
                }
                if (limit > 0) {
                    cursor = cursor.limit(limit);
                }
            }
View Full Code Here

            if (batchSize != null) {
                ret.batchSize(batchSize.intValue());
            }
           
            if (numToSkip != null) {
                ret.skip(numToSkip.intValue());
            }
   
            if (limit != null) {
                ret.limit(limit.intValue());
            }
View Full Code Here

            if (batchSize != null) {
                ret.batchSize(batchSize.intValue());
            }
           
            if (numToSkip != null) {
                ret.skip(numToSkip.intValue());
            }
   
            if (limit != null) {
                ret.limit(limit.intValue());
            }
View Full Code Here

            if (batchSize != null) {
                ret.batchSize(batchSize.intValue());
            }

            if (numToSkip != null) {
                ret.skip(numToSkip.intValue());
            }

            if (limit != null) {
                ret.limit(limit.intValue());
            }
View Full Code Here

        if (maxRows > 0) {
            cursor = cursor.limit(maxRows);
        }
        if (firstRow > 1) {
            final int skip = firstRow - 1;
            cursor = cursor.skip(skip);
        }

        return new MongoDbDataSet(cursor, columns, queryPostProcessed);
    }
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.