Package tech.tablesaw.index
Class ShortIndex
- java.lang.Object
-
- tech.tablesaw.index.ShortIndex
-
- All Implemented Interfaces:
Index
public class ShortIndex extends Object implements Index
An index forShortColumn
-
-
Constructor Summary
Constructors Constructor Description ShortIndex(ShortColumn column)Constructs an index for the given column
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SelectionatLeast(short value)Returns aSelectionof all values at least as large as the given valueSelectionatMost(short value)Returns aSelectionof all values at most as large as the given valueSelectionget(short value)Returns a bitmap containing row numbers of all cells matching the given intSelectiongreaterThan(short value)Returns aSelectionof all values greater than the given valueSelectionlessThan(short value)Returns aSelectionof all values less than the given value
-
-
-
Constructor Detail
-
ShortIndex
public ShortIndex(ShortColumn column)
Constructs an index for the given column
-
-
Method Detail
-
get
public Selection get(short value)
Returns a bitmap containing row numbers of all cells matching the given int- Parameters:
value- This is a 'key' from the index perspective, meaning it is a value from the standpoint of the column
-
atLeast
public Selection atLeast(short value)
Returns aSelectionof all values at least as large as the given value
-
greaterThan
public Selection greaterThan(short value)
Returns aSelectionof all values greater than the given value
-
atMost
public Selection atMost(short value)
Returns aSelectionof all values at most as large as the given value
-
-