Class FormulaKernelAdapter
java.lang.Object
io.deephaven.engine.table.impl.select.Formula
io.deephaven.engine.table.impl.select.formula.FormulaKernelAdapter
- All Implemented Interfaces:
ElementSource
-
Nested Class Summary
Nested classes/interfaces inherited from class io.deephaven.engine.table.impl.select.Formula
Formula.FillContext, Formula.GetContext
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFormulaKernelAdapter
(TrackingRowSet rowSet, FormulaSourceDescriptor sourceDescriptor, Map<String, ? extends ColumnSource> columnSources, FormulaKernel kernel) -
Method Summary
Modifier and TypeMethodDescriptionvoid
fillChunk
(@NotNull Formula.FillContext __context, @NotNull WritableChunk<? super Values> __destination, @NotNull RowSequence __rowSequence) void
fillPrevChunk
(@NotNull Formula.FillContext __context, @NotNull WritableChunk<? super Values> __destination, @NotNull RowSequence __rowSequence) get
(long rowKey) Get the value from the source.getBoolean
(long rowKey) Get the value at the rowKey as a Boolean.byte
getByte
(long rowKey) Get the value at the rowKey as a byte.char
getChar
(long rowKey) Get the value at the rowKey as a char.protected ChunkType
double
getDouble
(long rowKey) Get the value at the rowKey as a double.float
getFloat
(long rowKey) Get the value at the rowKey as a float.int
getInt
(long rowKey) Get the value at the rowKey as an int.long
getLong
(long rowKey) Get the value at the rowKey as a long.getPrev
(long rowKey) Get the previous value at the rowKey.getPrevBoolean
(long rowKey) Get the previous value at the rowKey as a Boolean.byte
getPrevByte
(long rowKey) Get the previous value at the rowKey as a byte.char
getPrevChar
(long rowKey) Get the previous value at the rowKey as a char.double
getPrevDouble
(long rowKey) Get the previous value at the rowKey as a double.float
getPrevFloat
(long rowKey) Get the previous value at the rowKey as a float.int
getPrevInt
(long rowKey) Get the previous value at the rowKey as an int.long
getPrevLong
(long rowKey) Get the previous value at the rowKey as a long.short
getPrevShort
(long rowKey) Get the previous value at the rowKey as a short.short
getShort
(long rowKey) Get the value at the rowKey as a short.io.deephaven.engine.table.impl.select.formula.FormulaKernelAdapter.AdapterContext
makeFillContext
(int chunkCapacity) Methods inherited from class io.deephaven.engine.table.impl.select.Formula
getChunk, getPrevChunk, getRowSet, makeGetContext
-
Constructor Details
-
FormulaKernelAdapter
public FormulaKernelAdapter(TrackingRowSet rowSet, FormulaSourceDescriptor sourceDescriptor, Map<String, ? extends ColumnSource> columnSources, FormulaKernel kernel)
-
-
Method Details
-
get
Description copied from interface:ElementSource
Get the value from the source. This may return boxed values for basic types. RowKeys that are not present are undefined.- Specified by:
get
in interfaceElementSource
- Specified by:
get
in classFormula
- Parameters:
rowKey
- the location in key space to get the value from.- Returns:
- the value at the rowKey, potentially null.
-
getPrev
Description copied from interface:ElementSource
Get the previous value at the rowKey. Previous values are used during anUG
update
cycle to process changes in data. Duringnormal
operation previous values will be identical tocurrent
values. RowKeys that were not present are undefined.- Specified by:
getPrev
in interfaceElementSource
- Specified by:
getPrev
in classFormula
- Parameters:
rowKey
- the location in key space to get the value from.- Returns:
- the previous value at the rowKey, potentially null.
-
getBoolean
Description copied from interface:ElementSource
Get the value at the rowKey as a Boolean. RowKeys that are not present are undefined.- Specified by:
getBoolean
in interfaceElementSource
- Overrides:
getBoolean
in classFormula
- Parameters:
rowKey
- the location in key space to get the value from.- Returns:
- the boolean at the rowKey, potentially null.
-
getByte
public byte getByte(long rowKey) Description copied from interface:ElementSource
Get the value at the rowKey as a byte. RowKeys that are not present are undefined.- Specified by:
getByte
in interfaceElementSource
- Overrides:
getByte
in classFormula
- Parameters:
rowKey
- the location in key space to get the value from.- Returns:
- the boolean at the rowKey, null values are represented by
QueryConstants.NULL_BYTE
-
getChar
public char getChar(long rowKey) Description copied from interface:ElementSource
Get the value at the rowKey as a char. RowKeys that are not present are undefined.- Specified by:
getChar
in interfaceElementSource
- Overrides:
getChar
in classFormula
- Parameters:
rowKey
- the location in key space to get the value from.- Returns:
- the char at the rowKey, null values are represented by
QueryConstants.NULL_CHAR
-
getDouble
public double getDouble(long rowKey) Description copied from interface:ElementSource
Get the value at the rowKey as a double. RowKeys that are not present are undefined.- Specified by:
getDouble
in interfaceElementSource
- Overrides:
getDouble
in classFormula
- Parameters:
rowKey
- the location in key space to get the value from.- Returns:
- the double at the rowKey, null values are represented by
QueryConstants.NULL_DOUBLE
-
getFloat
public float getFloat(long rowKey) Description copied from interface:ElementSource
Get the value at the rowKey as a float. RowKeys that are not present are undefined.- Specified by:
getFloat
in interfaceElementSource
- Overrides:
getFloat
in classFormula
- Parameters:
rowKey
- the location in key space to get the value from.- Returns:
- the float at the rowKey, null values are represented by
QueryConstants.NULL_FLOAT
-
getInt
public int getInt(long rowKey) Description copied from interface:ElementSource
Get the value at the rowKey as an int. RowKeys that are not present are undefined.- Specified by:
getInt
in interfaceElementSource
- Overrides:
getInt
in classFormula
- Parameters:
rowKey
- the location in key space to get the value from.- Returns:
- the int at the rowKey, null values are represented by
QueryConstants.NULL_INT
-
getLong
public long getLong(long rowKey) Description copied from interface:ElementSource
Get the value at the rowKey as a long. RowKeys that are not present are undefined.- Specified by:
getLong
in interfaceElementSource
- Overrides:
getLong
in classFormula
- Parameters:
rowKey
- the location in key space to get the value from.- Returns:
- the long at the rowKey, null values are represented by
QueryConstants.NULL_LONG
-
getShort
public short getShort(long rowKey) Description copied from interface:ElementSource
Get the value at the rowKey as a short. RowKeys that are not present are undefined.- Specified by:
getShort
in interfaceElementSource
- Overrides:
getShort
in classFormula
- Parameters:
rowKey
- the location in key space to get the value from.- Returns:
- the short at the rowKey, null values are represented by
QueryConstants.NULL_SHORT
-
getPrevBoolean
Description copied from interface:ElementSource
Get the previous value at the rowKey as a Boolean. SeeElementSource.getPrev(long)
for more details. RowKeys that were not present are undefined.- Specified by:
getPrevBoolean
in interfaceElementSource
- Overrides:
getPrevBoolean
in classFormula
- Parameters:
rowKey
- the location in key space to get the previous value from.- Returns:
- the previous boolean at the rowKey, potentially null.
-
getPrevByte
public byte getPrevByte(long rowKey) Description copied from interface:ElementSource
Get the previous value at the rowKey as a byte. SeeElementSource.getPrev(long)
for more details. RowKeys that were not present are undefined.- Specified by:
getPrevByte
in interfaceElementSource
- Overrides:
getPrevByte
in classFormula
- Parameters:
rowKey
- the location in key space to get the previous value from.- Returns:
- the previous boolean at the rowKey, null values are represented by
QueryConstants.NULL_BYTE
-
getPrevChar
public char getPrevChar(long rowKey) Description copied from interface:ElementSource
Get the previous value at the rowKey as a char. SeeElementSource.getPrev(long)
for more details. RowKeys that were not present are undefined.- Specified by:
getPrevChar
in interfaceElementSource
- Overrides:
getPrevChar
in classFormula
- Parameters:
rowKey
- ohe location in key space to get the previous value from.- Returns:
- the previous char at the rowKey, null values are represented by
QueryConstants.NULL_CHAR
-
getPrevDouble
public double getPrevDouble(long rowKey) Description copied from interface:ElementSource
Get the previous value at the rowKey as a double. SeeElementSource.getPrev(long)
for more details. RowKeys that were not present are undefined.- Specified by:
getPrevDouble
in interfaceElementSource
- Overrides:
getPrevDouble
in classFormula
- Parameters:
rowKey
- the location in key space to get the previous value from.- Returns:
- the previous double at the rowKey, null values are represented by
QueryConstants.NULL_DOUBLE
-
getPrevFloat
public float getPrevFloat(long rowKey) Description copied from interface:ElementSource
Get the previous value at the rowKey as a float. SeeElementSource.getPrev(long)
for more details. RowKeys that were not present are undefined.- Specified by:
getPrevFloat
in interfaceElementSource
- Overrides:
getPrevFloat
in classFormula
- Parameters:
rowKey
- the location in key space to get the previous value from.- Returns:
- the previous float at the rowKey, null values are represented by
QueryConstants.NULL_FLOAT
-
getPrevInt
public int getPrevInt(long rowKey) Description copied from interface:ElementSource
Get the previous value at the rowKey as an int. SeeElementSource.getPrev(long)
for more details. RowKeys that were not present are undefined.- Specified by:
getPrevInt
in interfaceElementSource
- Overrides:
getPrevInt
in classFormula
- Parameters:
rowKey
- the location in key space to get the previous value from.- Returns:
- the previous int at the rowKey, null values are represented by
QueryConstants.NULL_INT
-
getPrevLong
public long getPrevLong(long rowKey) Description copied from interface:ElementSource
Get the previous value at the rowKey as a long. SeeElementSource.getPrev(long)
for more details.- Specified by:
getPrevLong
in interfaceElementSource
- Overrides:
getPrevLong
in classFormula
- Parameters:
rowKey
- the location in key space to get the previous value from.- Returns:
- the previous long at the rowKey, null values are represented by
QueryConstants.NULL_LONG
-
getPrevShort
public short getPrevShort(long rowKey) Description copied from interface:ElementSource
Get the previous value at the rowKey as a short. SeeElementSource.getPrev(long)
for more details. RowKeys that were not present are undefined.- Specified by:
getPrevShort
in interfaceElementSource
- Overrides:
getPrevShort
in classFormula
- Parameters:
rowKey
- the location in key space to get the previous value from.- Returns:
- the previous short at the rowKey, null values are represented by
QueryConstants.NULL_SHORT
-
getChunkType
- Specified by:
getChunkType
in classFormula
-
fillChunk
public void fillChunk(@NotNull @NotNull Formula.FillContext __context, @NotNull @NotNull WritableChunk<? super Values> __destination, @NotNull @NotNull RowSequence __rowSequence) -
fillPrevChunk
public void fillPrevChunk(@NotNull @NotNull Formula.FillContext __context, @NotNull @NotNull WritableChunk<? super Values> __destination, @NotNull @NotNull RowSequence __rowSequence) - Specified by:
fillPrevChunk
in classFormula
-
makeFillContext
public io.deephaven.engine.table.impl.select.formula.FormulaKernelAdapter.AdapterContext makeFillContext(int chunkCapacity) - Specified by:
makeFillContext
in classFormula
-