Example usage for com.mongodb.client.model Aggregates skip

List of usage examples for com.mongodb.client.model Aggregates skip

Introduction

In this page you can find the example usage for com.mongodb.client.model Aggregates skip.

Prototype

public static Bson skip(final int skip) 

Source Link

Document

Creates a $skip pipeline stage

Usage

From source file:org.opencb.commons.datastore.mongodb.MongoDBQueryUtils.java

License:Apache License

public static Bson getSkip(QueryOptions options) {
    if (options.getInt(QueryOptions.SKIP) > 0) {
        return Aggregates.skip(options.getInt(QueryOptions.SKIP));
    }//from   w w w  .j  a va 2 s .c o  m
    return null;
}