Class Skip


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

      • Skip

        protected Skip​(long size)
    • Method Detail

      • of

        @Deprecated(forRemoval=true)
        public static Skip of​(long size)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates a new stage with the given skip size
        Parameters:
        size - the skip size
        Returns:
        the new stage
      • 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
      • getSize

        @MorphiaInternal
        public long getSize()
        Returns:
        the size
        Developer note.
        This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.