Class Skip

java.lang.Object
dev.morphia.aggregation.stages.Stage
dev.morphia.aggregation.stages.Skip

public class Skip extends Stage
Randomly selects the specified number of documents from its input.
  • Method Details

    • skip

      public static Skip skip(long size)
      Creates a new stage with the given skip size
      Parameters:
      size - the skip size
      Returns:
      the new stage
      Since:
      2.2
      MongoDB documentation
      Aggregration Pipeline Stage: $skip