Class FixedWidthFunction

  • All Implemented Interfaces:
    java.lang.Iterable<GroupingExpression>

    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.
    Author:
    Simon Thoresen Hult
    • Constructor Detail

      • FixedWidthFunction

        public FixedWidthFunction​(GroupingExpression exp,
                                  java.lang.Number width)
        Constructs a new instance of this class.
        Parameters:
        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.
        Returns:
        The bucket count.