Package com.illumon.iris.db.tables
Interface DataColumn<TYPE>
- All Superinterfaces:
LongSizedDataStructure
- All Known Implementing Classes:
IndexedDataColumn
public interface DataColumn<TYPE> extends LongSizedDataStructure
Interface for positional column access to a Deephaven table column.
-
Method Summary
Modifier and Type Method Description TYPE[]
get(int... 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 indexTYPE[]
get(long... indexes)
Return the column's values for the specified rows.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()
Methods inherited from interface com.illumon.iris.db.util.LongSizedDataStructure
intSize, intSize, size
-
Method Details
-
getName
String getName() -
getType
Class getType()- Returns:
- the type of object contained within this column.
-
getComponentType
Class getComponentType()Get the array component type, or the type itself. For basic types, this is just the type. For example, if you have a column of java.lang.String, this also returns java.lang.String. For array types (java Arrays), or DbArray (which would be returned by getType), you get the type that is contained within the array. For example, if a single row in this column contains a DbDoubleArray, getComponentType returns double.- Returns:
- if type is an array, the type of object within the array. Otherwise type itself.
-
getDirect
Get the contents of this data column in array form. Note that this will return an array of the appropriate primitive type for columns of non-Boolean primitive types.- Returns:
- An appropriately-typed array containing the full contents of this data column
-
getDirect
Get the contents of a range of this data column in array form. SeegetDirect()
for an explanation of return types. Note that it's required thatendIndexExclusive - startIndexInclusive < Integer.MAX_VALUE
.- Parameters:
startIndexInclusive
- The first position in the data column to include, inclusiveendIndexExclusive
- One more than the last position in the data column to include- Returns:
- An appropriately-typed array containing the contents of the specified range of this data column
-
getDirect
-
getDirect
-
get
Returns the value in the column at the row designated by the index- Parameters:
index
- - the index of the row for which the data is being retrieved- Returns:
- the value in the column at the row designated by the index
-
get
Return the column's values for the specified row range. Note that this will be a boxed array, for data columns of primitive types.- Parameters:
startIndexInclusive
- The first position in the data column to include, inclusiveendIndexExclusive
- One more than the last position in the data column to include- Returns:
- Return the column's values for the specified row range
-
get
Return the column's values for the specified rows. Note that this will be a boxed array, for data columns of primitive types.- Parameters:
indexes
- The row indexes to fetch- Returns:
- Return the column's values for the specified rows
-
get
Return the column's values for the specified rows. Note that this will be a boxed array, for data columns of primitive types.- Parameters:
indexes
- The row indexes to fetch- Returns:
- Return the column's values for the specified rows
-
getBoolean
-
getBooleans
-
getBooleans
-
getBooleans
-
getByte
byte getByte(long index) -
getBytes
byte[] getBytes(long startIndexInclusive, long endIndexExclusive) -
getBytes
byte[] getBytes(long... indexes) -
getBytes
byte[] getBytes(int... indexes) -
getChar
char getChar(long index) -
getChars
char[] getChars(long startIndexInclusive, long endIndexExclusive) -
getChars
char[] getChars(long... indexes) -
getChars
char[] getChars(int... indexes) -
getDouble
double getDouble(long index) -
getDoubles
double[] getDoubles(long startIndexInclusive, long endIndexExclusive) -
getDoubles
double[] getDoubles(long... indexes) -
getDoubles
double[] getDoubles(int... indexes) -
getFloat
float getFloat(long index) -
getFloats
float[] getFloats(long startIndexInclusive, long endIndexExclusive) -
getFloats
float[] getFloats(long... indexes) -
getFloats
float[] getFloats(int... indexes) -
getInt
int getInt(long index) -
getInts
int[] getInts(long startIndexInclusive, long endIndexExclusive) -
getInts
int[] getInts(long... indexes) -
getInts
int[] getInts(int... indexes) -
getLong
long getLong(long index) -
getLongs
long[] getLongs(long startIndexInclusive, long endIndexExclusive) -
getLongs
long[] getLongs(long... indexes) -
getLongs
long[] getLongs(int... indexes) -
getShort
short getShort(long index) -
getShorts
short[] getShorts(long startIndexInclusive, long endIndexExclusive) -
getShorts
short[] getShorts(long... indexes) -
getShorts
short[] getShorts(int... indexes)
-