Class Limit


  • public class Limit
    extends Stage
    Limits the number of documents passed to the next stage in the pipeline.
    • Constructor Detail

      • Limit

        protected Limit​(long limit)
    • Method Detail

      • limit

        public static Limit limit​(long limit)
        Creates the new stage.
        Parameters:
        limit - the limit to apply
        Returns:
        this
        Since:
        2.2
      • of

        @Deprecated(forRemoval=true)
        public static Limit of​(long limit)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Creates the new stage.
        Parameters:
        limit - the limit to apply
        Returns:
        this
      • getLimit

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