public interface DataColumn<TYPE> extends LongSizedDataStructure
Modifier and Type | Method and Description |
---|---|
TYPE[] |
get(int... indexes)
Return the column's values for the specified rows.
|
TYPE[] |
get(long... indexes)
Return the column's values for the specified rows.
|
TYPE |
get(long index)
Returns the value in the column at the row designated by the index
|
TYPE[] |
get(long startIndexInclusive,
long endIndexExclusive)
Return the column's values for the specified row range.
|
Boolean |
getBoolean(long index) |
Boolean[] |
getBooleans(int... indexes) |
Boolean[] |
getBooleans(long... indexes) |
Boolean[] |
getBooleans(long startIndexInclusive,
long endIndexExclusive) |
byte |
getByte(long index) |
byte[] |
getBytes(int... indexes) |
byte[] |
getBytes(long... indexes) |
byte[] |
getBytes(long startIndexInclusive,
long endIndexExclusive) |
char |
getChar(long index) |
char[] |
getChars(int... indexes) |
char[] |
getChars(long... indexes) |
char[] |
getChars(long startIndexInclusive,
long endIndexExclusive) |
Class |
getComponentType()
Get the array component type, or the type itself.
|
default Object |
getDirect()
Get the contents of this data column in array form.
|
default Object |
getDirect(int... indexes) |
default Object |
getDirect(long... indexes) |
default Object |
getDirect(long startIndexInclusive,
long endIndexExclusive)
Get the contents of a range of this data column in array form.
|
double |
getDouble(long index) |
double[] |
getDoubles(int... indexes) |
double[] |
getDoubles(long... indexes) |
double[] |
getDoubles(long startIndexInclusive,
long endIndexExclusive) |
float |
getFloat(long index) |
float[] |
getFloats(int... indexes) |
float[] |
getFloats(long... indexes) |
float[] |
getFloats(long startIndexInclusive,
long endIndexExclusive) |
int |
getInt(long index) |
int[] |
getInts(int... indexes) |
int[] |
getInts(long... indexes) |
int[] |
getInts(long startIndexInclusive,
long endIndexExclusive) |
long |
getLong(long index) |
long[] |
getLongs(int... indexes) |
long[] |
getLongs(long... indexes) |
long[] |
getLongs(long startIndexInclusive,
long endIndexExclusive) |
String |
getName() |
short |
getShort(long index) |
short[] |
getShorts(int... indexes) |
short[] |
getShorts(long... indexes) |
short[] |
getShorts(long startIndexInclusive,
long endIndexExclusive) |
Class |
getType() |
void |
set(long index,
TYPE value) |
void |
setArray(long startIndex,
TYPE... values) |
void |
setBoolean(long index,
Boolean value) |
void |
setBooleans(long startIndex,
Boolean... values) |
void |
setByte(long index,
byte value) |
void |
setBytes(long startIndex,
byte... values) |
void |
setChar(long index,
char value) |
void |
setChars(long startIndex,
char... values) |
default void |
setDirect(long startIndex,
Object array) |
void |
setDouble(long index,
double value) |
void |
setDoubles(long startIndex,
double... values) |
void |
setFloat(long index,
float value) |
void |
setFloats(long startIndex,
float... values) |
void |
setInt(long index,
int value) |
void |
setInts(long startIndex,
int... values) |
void |
setLong(long index,
long value) |
void |
setLongs(long startIndex,
long... values) |
void |
setShort(long index,
short value) |
void |
setShorts(long startIndex,
short... values) |
intSize, intSize, intSize, size
String getName()
Class getType()
Class getComponentType()
default Object getDirect()
default Object getDirect(long startIndexInclusive, long endIndexExclusive)
DataColumn.getDirect()
for an explanation
of return types. Note that it's required that endIndexExclusive - startIndexInclusive < Integer.MAX_VALUE
.startIndexInclusive
- The first position in the data column to include, inclusiveendIndexExclusive
- One more than the last position in the data column to includedefault Object getDirect(long... indexes)
default Object getDirect(int... indexes)
TYPE get(long index)
index
- - the index of the row for which the data is being retrievedTYPE[] get(long startIndexInclusive, long endIndexExclusive)
startIndexInclusive
- The first position in the data column to include, inclusiveendIndexExclusive
- One more than the last position in the data column to includeTYPE[] get(long... indexes)
indexes
- The row indexes to fetchTYPE[] get(int... indexes)
indexes
- The row indexes to fetchBoolean getBoolean(long index)
Boolean[] getBooleans(long startIndexInclusive, long endIndexExclusive)
Boolean[] getBooleans(long... indexes)
Boolean[] getBooleans(int... indexes)
byte getByte(long index)
byte[] getBytes(long startIndexInclusive, long endIndexExclusive)
byte[] getBytes(long... indexes)
byte[] getBytes(int... indexes)
char getChar(long index)
char[] getChars(long startIndexInclusive, long endIndexExclusive)
char[] getChars(long... indexes)
char[] getChars(int... indexes)
double getDouble(long index)
double[] getDoubles(long startIndexInclusive, long endIndexExclusive)
double[] getDoubles(long... indexes)
double[] getDoubles(int... indexes)
float getFloat(long index)
float[] getFloats(long startIndexInclusive, long endIndexExclusive)
float[] getFloats(long... indexes)
float[] getFloats(int... indexes)
int getInt(long index)
int[] getInts(long startIndexInclusive, long endIndexExclusive)
int[] getInts(long... indexes)
int[] getInts(int... indexes)
long getLong(long index)
long[] getLongs(long startIndexInclusive, long endIndexExclusive)
long[] getLongs(long... indexes)
long[] getLongs(int... indexes)
short getShort(long index)
short[] getShorts(long startIndexInclusive, long endIndexExclusive)
short[] getShorts(long... indexes)
short[] getShorts(int... indexes)
default void setDirect(long startIndex, Object array)
void set(long index, TYPE value)
void setArray(long startIndex, TYPE... values)
void setBoolean(long index, Boolean value)
void setBooleans(long startIndex, Boolean... values)
void setByte(long index, byte value)
void setBytes(long startIndex, byte... values)
void setChar(long index, char value)
void setChars(long startIndex, char... values)
void setDouble(long index, double value)
void setDoubles(long startIndex, double... values)
void setFloat(long index, float value)
void setFloats(long startIndex, float... values)
void setInt(long index, int value)
void setInts(long startIndex, int... values)
void setLong(long index, long value)
void setLongs(long startIndex, long... values)
void setShort(long index, short value)
void setShorts(long startIndex, short... values)