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 Selection
atLeast(long value)
Returns aSelection
of all values at least as large as the given valueSelection
atLeast(Instant value)
Returns aSelection
of all values at least as large as the given valueSelection
atLeast(LocalDateTime value)
Returns aSelection
of all values at least as large as the given valueSelection
atMost(long value)
Returns aSelection
of all values at most as large as the given valueSelection
atMost(Instant value)
Returns aSelection
of all values at most as large as the given valueSelection
atMost(LocalDateTime value)
Returns aSelection
of all values at most as large as the given valueSelection
get(long value)
Returns a bitmap containing row numbers of all cells matching the given longSelection
get(Instant value)
Returns theSelection
of all values exactly equal to the given valueSelection
get(LocalDateTime value)
Returns theSelection
of all values exactly equal to the given valueSelection
greaterThan(long value)
Returns aSelection
of all values greater than the given valueSelection
greaterThan(Instant value)
Returns aSelection
of all values greater than the given valueSelection
greaterThan(LocalDateTime value)
Returns aSelection
of all values greater than the given valueSelection
lessThan(long value)
Returns aSelection
of all values less than the given valueSelection
lessThan(Instant value)
Returns aSelection
of all values less than the given valueSelection
lessThan(LocalDateTime value)
Returns aSelection
of 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 theSelection
of all values exactly equal to the given value
-
get
public Selection get(LocalDateTime value)
Returns theSelection
of all values exactly equal to the given value
-
atLeast
public Selection atLeast(long value)
Returns aSelection
of all values at least as large as the given value
-
atLeast
public Selection atLeast(Instant value)
Returns aSelection
of all values at least as large as the given value
-
atLeast
public Selection atLeast(LocalDateTime value)
Returns aSelection
of all values at least as large as the given value
-
greaterThan
public Selection greaterThan(long value)
Returns aSelection
of all values greater than the given value
-
greaterThan
public Selection greaterThan(Instant value)
Returns aSelection
of all values greater than the given value
-
greaterThan
public Selection greaterThan(LocalDateTime value)
Returns aSelection
of all values greater than the given value
-
atMost
public Selection atMost(long value)
Returns aSelection
of all values at most as large as the given value
-
atMost
public Selection atMost(Instant value)
Returns aSelection
of all values at most as large as the given value
-
atMost
public Selection atMost(LocalDateTime value)
Returns aSelection
of all values at most as large as the given value
-
lessThan
public Selection lessThan(long value)
Returns aSelection
of all values less than the given value
-
lessThan
public Selection lessThan(Instant value)
Returns aSelection
of all values less than the given value
-
lessThan
public Selection lessThan(LocalDateTime value)
Returns aSelection
of all values less than the given value
-
-