Class LongBucket

All Implemented Interfaces:
Comparable<BucketValue>

public class LongBucket extends BucketValue
This class represents a Long bucket in a PredefinedFunction.
Author:
Simon Thoresen Hult
  • Constructor Details

    • LongBucket

      public LongBucket(long from, long to)
      Constructs a new instance of this class.
      Parameters:
      from - The from-value to assign to this.
      to - The to-value to assign to this.
    • LongBucket

      public LongBucket(ConstantValue from, ConstantValue to)
      Constructs a new instance of this class.
      Parameters:
      from - The from-value to assign to this.
      to - The to-value to assign to this.
  • Method Details

    • nextValue

      public static LongValue nextValue(LongValue value)
      Gives the next distinct long value.
      Parameters:
      value - the base value.
      Returns:
      the next value.
    • copy

      public LongBucket copy()
      Description copied from class: GroupingExpression
      Returns a deep copy of this
      Overrides:
      copy in class BucketValue