Package com.yahoo.search.predicate.index
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 Summary
Constructors Constructor Description IntervalWithBounds()
IntervalWithBounds(int interval, int bounds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(int value)
Checks if a value is contained within the specified bounds.boolean
equals(Object o)
int
getBounds()
int
getInterval()
16 MSB represents interval begin, 16 LSB represents interval end.int
hashCode()
boolean
hasValue()
void
nextValue()
void
setIntervalArray(int[] intervalBoundsArray, int arrayIndex)
Stream<Integer>
stream()
String
toString()
-
-
-
Method Detail
-
setIntervalArray
public void setIntervalArray(int[] intervalBoundsArray, int arrayIndex)
-
hasValue
public boolean hasValue()
-
nextValue
public void nextValue()
-
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
-
-