Class FixedWidthFunction

  • All Implemented Interfaces:

    public class FixedWidthFunction
    extends FunctionNode
    This class represents a fixed-width bucket-function in a GroupingExpression. It maps the input into the given number of buckets by the result of the argument expression.
    Simon Thoresen Hult
    • Constructor Detail

      • FixedWidthFunction

        public FixedWidthFunction​(GroupingExpression exp,
                                  java.lang.Number width)
        Constructs a new instance of this class.
        exp - The expression to evaluate.
        width - The width of each bucket.
    • Method Detail

      • getWidth

        public java.lang.Number getWidth()
        Returns the number of buckets to divide the result into.
        The bucket count.