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 SummaryModifier and Type Method Description TYPE[]get(int... indexes)Return the column's values for the specified rows.TYPEget(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.BooleangetBoolean(long index)Boolean[]getBooleans(int... indexes)Boolean[]getBooleans(long... indexes)Boolean[]getBooleans(long startIndexInclusive, long endIndexExclusive)bytegetByte(long index)byte[]getBytes(int... indexes)byte[]getBytes(long... indexes)byte[]getBytes(long startIndexInclusive, long endIndexExclusive)chargetChar(long index)char[]getChars(int... indexes)char[]getChars(long... indexes)char[]getChars(long startIndexInclusive, long endIndexExclusive)ClassgetComponentType()Get the array component type, or the type itself.default ObjectgetDirect()Get the contents of this data column in array form.default ObjectgetDirect(int... indexes)default ObjectgetDirect(long... indexes)default ObjectgetDirect(long startIndexInclusive, long endIndexExclusive)Get the contents of a range of this data column in array form.doublegetDouble(long index)double[]getDoubles(int... indexes)double[]getDoubles(long... indexes)double[]getDoubles(long startIndexInclusive, long endIndexExclusive)floatgetFloat(long index)float[]getFloats(int... indexes)float[]getFloats(long... indexes)float[]getFloats(long startIndexInclusive, long endIndexExclusive)intgetInt(long index)int[]getInts(int... indexes)int[]getInts(long... indexes)int[]getInts(long startIndexInclusive, long endIndexExclusive)longgetLong(long index)long[]getLongs(int... indexes)long[]getLongs(long... indexes)long[]getLongs(long startIndexInclusive, long endIndexExclusive)StringgetName()shortgetShort(long index)short[]getShorts(int... indexes)short[]getShorts(long... indexes)short[]getShorts(long startIndexInclusive, long endIndexExclusive)ClassgetType()Methods inherited from interface com.illumon.iris.db.util.LongSizedDataStructureintSize, intSize, size
- 
Method Details- 
getNameString getName()
- 
getTypeClass getType()- Returns:
- the type of object contained within this column.
 
- 
getComponentTypeClass 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.
 
- 
getDirectGet 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
 
- 
getDirectGet 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, inclusive
- endIndexExclusive- 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
- 
getReturns 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
 
- 
getReturn 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, inclusive
- endIndexExclusive- One more than the last position in the data column to include
- Returns:
- Return the column's values for the specified row range
 
- 
getReturn 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
 
- 
getReturn 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
- 
getBytebyte getByte(long index)
- 
getBytesbyte[] getBytes(long startIndexInclusive, long endIndexExclusive)
- 
getBytesbyte[] getBytes(long... indexes)
- 
getBytesbyte[] getBytes(int... indexes)
- 
getCharchar getChar(long index)
- 
getCharschar[] getChars(long startIndexInclusive, long endIndexExclusive)
- 
getCharschar[] getChars(long... indexes)
- 
getCharschar[] getChars(int... indexes)
- 
getDoubledouble getDouble(long index)
- 
getDoublesdouble[] getDoubles(long startIndexInclusive, long endIndexExclusive)
- 
getDoublesdouble[] getDoubles(long... indexes)
- 
getDoublesdouble[] getDoubles(int... indexes)
- 
getFloatfloat getFloat(long index)
- 
getFloatsfloat[] getFloats(long startIndexInclusive, long endIndexExclusive)
- 
getFloatsfloat[] getFloats(long... indexes)
- 
getFloatsfloat[] getFloats(int... indexes)
- 
getIntint getInt(long index)
- 
getIntsint[] getInts(long startIndexInclusive, long endIndexExclusive)
- 
getIntsint[] getInts(long... indexes)
- 
getIntsint[] getInts(int... indexes)
- 
getLonglong getLong(long index)
- 
getLongslong[] getLongs(long startIndexInclusive, long endIndexExclusive)
- 
getLongslong[] getLongs(long... indexes)
- 
getLongslong[] getLongs(int... indexes)
- 
getShortshort getShort(long index)
- 
getShortsshort[] getShorts(long startIndexInclusive, long endIndexExclusive)
- 
getShortsshort[] getShorts(long... indexes)
- 
getShortsshort[] getShorts(int... indexes)
 
-