Class IntervalWithBounds

java.lang.Object
com.yahoo.search.predicate.index.IntervalWithBounds

public class IntervalWithBounds extends Object
Represents a collapsed leaf node in the fixed tree range representation.
Author:
Magnar Nedland, bjorncs
  • Constructor Details

    • IntervalWithBounds

      public IntervalWithBounds()
    • IntervalWithBounds

      public IntervalWithBounds(int interval, int bounds)
  • Method Details

    • setIntervalArray

      public void setIntervalArray(int[] intervalBoundsArray, int arrayIndex)
    • hasValue

      public boolean hasValue()
    • nextValue

      public void nextValue()
    • stream

      public Stream<Integer> stream()
    • getInterval

      public int getInterval()
      16 MSB represents interval begin, 16 LSB represents interval end.
    • getBounds

      public int getBounds()
    • contains

      public boolean contains(int value)
      Checks if a value is contained within the specified bounds.
      Parameters:
      value - Value to check against
      Returns:
      true if value is contained within the specified bounds
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object