vertx/src/main/java/eu/internetofus/common/vertx/AggregationBuilder.java
/**
   * Specify the query that has to match the documents.
   *
   * @param order  for the documents.
   * @param offset number of documents to skip.
   * @param limit  maximum number of documents to return.
   *
   * @return this builder.
   */
Specify the query that has to match the documents.
@param order  for the documents.
@param offset number of documents to skip.
@param limit  maximum number of documents to return.

@return this builder.
Specify the query that has to match the documents . @param order for the documents . @param offset number of documents to skip . @param limit maximum number of documents to return . @return this builder .
public AggregationBuilder sort(JsonObject order, int offset, int limit) {
    if (order != null && !order.isEmpty()) {
      this.pipeline.add(new JsonObject().put("$sort", order));
    }
    this.pipeline.add(new JsonObject().put("$limit", offset + limit));
    if (offset > 0) {
      this.pipeline.add(new JsonObject().put("$skip", offset));
    }
    return this;
  }
public AggregationBuilder sort ( JsonObject order , int offset , int limit ) { if ( order != null && ! order . isEmpty ( ) ) { this . pipeline . add ( new JsonObject ( ) . put ( "$sort" , order ) ) ; } this . pipeline . add ( new JsonObject ( ) . put ( "$limit" , offset + limit ) ) ; if ( offset > 0 ) { this . pipeline . add ( new JsonObject ( ) . put ( "$skip" , offset ) ) ; } return this ; }
Specify the query that has to match the documents.
Specify the query that has to match the documents .