Package tech.tablesaw.index
Class LongIndex
- java.lang.Object
-
- tech.tablesaw.index.LongIndex
-
-
Constructor Summary
Constructors Constructor Description LongIndex(LongColumn column)Constructs an index for the given columnLongIndex(TemporalColumn<?> column)Constructs an index for the given column
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectionatLeast(long value)Returns aSelectionof all values at least as large as the given valueSelectionatLeast(Instant value)Returns aSelectionof all values at least as large as the given valueSelectionatLeast(LocalDateTime value)Returns aSelectionof all values at least as large as the given valueSelectionatMost(long value)Returns aSelectionof all values at most as large as the given valueSelectionatMost(Instant value)Returns aSelectionof all values at most as large as the given valueSelectionatMost(LocalDateTime value)Returns aSelectionof all values at most as large as the given valueSelectionget(long value)Returns a bitmap containing row numbers of all cells matching the given longSelectionget(Instant value)Returns theSelectionof all values exactly equal to the given valueSelectionget(LocalDateTime value)Returns theSelectionof all values exactly equal to the given valueSelectiongreaterThan(long value)Returns aSelectionof all values greater than the given valueSelectiongreaterThan(Instant value)Returns aSelectionof all values greater than the given valueSelectiongreaterThan(LocalDateTime value)Returns aSelectionof all values greater than the given valueSelectionlessThan(long value)Returns aSelectionof all values less than the given valueSelectionlessThan(Instant value)Returns aSelectionof all values less than the given valueSelectionlessThan(LocalDateTime value)Returns aSelectionof all values less than the given value
-
-
-
Constructor Detail
-
LongIndex
public LongIndex(TemporalColumn<?> column)
Constructs an index for the given column
-
LongIndex
public LongIndex(LongColumn column)
Constructs an index for the given column
-
-
Method Detail
-
get
public Selection get(long value)
Returns a bitmap containing row numbers of all cells matching the given long- Parameters:
value- This is a 'key' from the index perspective, meaning it is a value from the standpoint of the column
-
get
public Selection get(Instant value)
Returns theSelectionof all values exactly equal to the given value
-
get
public Selection get(LocalDateTime value)
Returns theSelectionof all values exactly equal to the given value
-
atLeast
public Selection atLeast(long value)
Returns aSelectionof all values at least as large as the given value
-
atLeast
public Selection atLeast(Instant value)
Returns aSelectionof all values at least as large as the given value
-
atLeast
public Selection atLeast(LocalDateTime value)
Returns aSelectionof all values at least as large as the given value
-
greaterThan
public Selection greaterThan(long value)
Returns aSelectionof all values greater than the given value
-
greaterThan
public Selection greaterThan(Instant value)
Returns aSelectionof all values greater than the given value
-
greaterThan
public Selection greaterThan(LocalDateTime value)
Returns aSelectionof all values greater than the given value
-
atMost
public Selection atMost(long value)
Returns aSelectionof all values at most as large as the given value
-
atMost
public Selection atMost(Instant value)
Returns aSelectionof all values at most as large as the given value
-
atMost
public Selection atMost(LocalDateTime value)
Returns aSelectionof all values at most as large as the given value
-
lessThan
public Selection lessThan(long value)
Returns aSelectionof all values less than the given value
-
lessThan
public Selection lessThan(Instant value)
Returns aSelectionof all values less than the given value
-
lessThan
public Selection lessThan(LocalDateTime value)
Returns aSelectionof all values less than the given value
-
-