Class Sample


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

      • Sample

        protected Sample​(long size)
    • Method Detail

      • of

        @Deprecated(forRemoval=true)
        public static Sample of​(long size)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates a new stage with the given sample size.
        Parameters:
        size - the sample size
        Returns:
        the new stage
      • sample

        public static Sample sample​(long size)
        Creates a new stage with the given sample size.
        Parameters:
        size - the sample 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.