Class FormulaKernelAdapter
java.lang.Object
com.illumon.iris.db.v2.select.Formula
com.illumon.iris.db.v2.select.formula.FormulaKernelAdapter
- All Implemented Interfaces:
ElementSource
-
Nested Class Summary
Nested classes/interfaces inherited from class com.illumon.iris.db.v2.select.Formula
Formula.FillContext, Formula.GetContext -
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionFormulaKernelAdapter(Index index, FormulaSourceDescriptor sourceDescriptor, Map<String, ? extends ColumnSource> columnSources, FormulaKernel kernel) -
Method Summary
Modifier and TypeMethodDescriptionvoidfillChunk(Formula.FillContext __context, WritableChunk<? super Attributes.Values> __destination, OrderedKeys __orderedKeys) voidfillPrevChunk(Formula.FillContext __context, WritableChunk<? super Attributes.Values> __destination, OrderedKeys __orderedKeys) get(long k) Get the value from the source.getBoolean(long k) Get the value at the index as a Boolean.bytegetByte(long k) Get the value at the index as a byte.chargetChar(long k) Get the value at the index as a char.protected ChunkTypedoublegetDouble(long k) Get the value at the index as a double.floatgetFloat(long k) Get the value at the index as a float.intgetInt(long k) Get the value at the index as an int.longgetLong(long k) Get the value at the index as a long.getPrev(long k) Get the previous value at the index.getPrevBoolean(long k) Get the previous value at the index as a Boolean.bytegetPrevByte(long k) Get the previous value at the index as a byte.chargetPrevChar(long k) Get the previous value at the index as a char.doublegetPrevDouble(long k) Get the previous value at the index as a double.floatgetPrevFloat(long k) Get the previous value at the index as a float.intgetPrevInt(long k) Get the previous value at the index as an int.longgetPrevLong(long k) Get the previous value at the index as a long.shortgetPrevShort(long k) Get the previous value at the index as a short.shortgetShort(long k) Get the value at the index as a short.com.illumon.iris.db.v2.select.formula.FormulaKernelAdapter.AdapterContextmakeFillContext(int chunkCapacity) Methods inherited from class com.illumon.iris.db.v2.select.Formula
getChunk, getIndex, getPrevChunk, makeGetContext
-
Constructor Details
-
FormulaKernelAdapter
public FormulaKernelAdapter(Index index, FormulaSourceDescriptor sourceDescriptor, Map<String, ? extends ColumnSource> columnSources, FormulaKernel kernel)
-
-
Method Details
-
get
Description copied from interface:ElementSourceGet the value from the source. This may return boxed values for basic types.- Specified by:
getin interfaceElementSource- Specified by:
getin classFormula- Parameters:
k- the location in index space to get the value from.- Returns:
- the value at the index, potentially null.
-
getPrev
Description copied from interface:ElementSourceGet the previous value at the index. Previous values are used during anLTMupdatecycle to process changes in data. Duringnormaloperation previous values will be identical tocurrentvalues.- Specified by:
getPrevin interfaceElementSource- Specified by:
getPrevin classFormula- Parameters:
k- the location in index space to get the value from.- Returns:
- the previous value at the index, or null.
-
getBoolean
Description copied from interface:ElementSourceGet the value at the index as a Boolean.- Specified by:
getBooleanin interfaceElementSource- Overrides:
getBooleanin classFormula- Parameters:
k- the location in index space to get the value from.- Returns:
- the boolean at the index, potentially null.
-
getByte
public byte getByte(long k) Description copied from interface:ElementSourceGet the value at the index as a byte.- Specified by:
getBytein interfaceElementSource- Overrides:
getBytein classFormula- Parameters:
k- the location in index space to get the value from.- Returns:
- the boolean at the index, null values are represented by
QueryConstants.NULL_BYTE
-
getChar
public char getChar(long k) Description copied from interface:ElementSourceGet the value at the index as a char.- Specified by:
getCharin interfaceElementSource- Overrides:
getCharin classFormula- Parameters:
k- the location in index space to get the value from.- Returns:
- the char at the index, null values are represented by
QueryConstants.NULL_CHAR
-
getDouble
public double getDouble(long k) Description copied from interface:ElementSourceGet the value at the index as a double.- Specified by:
getDoublein interfaceElementSource- Overrides:
getDoublein classFormula- Parameters:
k- the location in index space to get the value from.- Returns:
- the double at the index, null values are represented by
QueryConstants.NULL_DOUBLE
-
getFloat
public float getFloat(long k) Description copied from interface:ElementSourceGet the value at the index as a float.- Specified by:
getFloatin interfaceElementSource- Overrides:
getFloatin classFormula- Parameters:
k- the location in index space to get the value from.- Returns:
- the float at the index, null values are represented by
QueryConstants.NULL_FLOAT
-
getInt
public int getInt(long k) Description copied from interface:ElementSourceGet the value at the index as an int.- Specified by:
getIntin interfaceElementSource- Overrides:
getIntin classFormula- Parameters:
k- the location in index space to get the value from.- Returns:
- the int at the index, null values are represented by
QueryConstants.NULL_INT
-
getLong
public long getLong(long k) Description copied from interface:ElementSourceGet the value at the index as a long.- Specified by:
getLongin interfaceElementSource- Overrides:
getLongin classFormula- Parameters:
k- the location in index space to get the value from.- Returns:
- the long at the index, null values are represented by
QueryConstants.NULL_LONG
-
getShort
public short getShort(long k) Description copied from interface:ElementSourceGet the value at the index as a short.- Specified by:
getShortin interfaceElementSource- Overrides:
getShortin classFormula- Parameters:
k- the location in index space to get the value from.- Returns:
- the short at the index, null values are represented by
QueryConstants.NULL_SHORT
-
getPrevBoolean
Description copied from interface:ElementSourceGet the previous value at the index as a Boolean. SeeElementSource.getPrev(long)for more details.- Specified by:
getPrevBooleanin interfaceElementSource- Overrides:
getPrevBooleanin classFormula- Parameters:
k- the location in index space to get the previous value from.- Returns:
- the previous boolean at the index, or null.
-
getPrevByte
public byte getPrevByte(long k) Description copied from interface:ElementSourceGet the previous value at the index as a byte. SeeElementSource.getPrev(long)for more details.- Specified by:
getPrevBytein interfaceElementSource- Overrides:
getPrevBytein classFormula- Parameters:
k- the location in index space to get the previous value from.- Returns:
- the previous boolean at the index, null values are represented by
QueryConstants.NULL_BYTE
-
getPrevChar
public char getPrevChar(long k) Description copied from interface:ElementSourceGet the previous value at the index as a char. SeeElementSource.getPrev(long)for more details.- Specified by:
getPrevCharin interfaceElementSource- Overrides:
getPrevCharin classFormula- Parameters:
k- the location in index space to get the previous value from.- Returns:
- the previous char at the index, null values are represented by
QueryConstants.NULL_CHAR
-
getPrevDouble
public double getPrevDouble(long k) Description copied from interface:ElementSourceGet the previous value at the index as a double. SeeElementSource.getPrev(long)for more details.- Specified by:
getPrevDoublein interfaceElementSource- Overrides:
getPrevDoublein classFormula- Parameters:
k- the location in index space to get the previous value from.- Returns:
- the previous double at the index, null values are represented by
QueryConstants.NULL_DOUBLE
-
getPrevFloat
public float getPrevFloat(long k) Description copied from interface:ElementSourceGet the previous value at the index as a float. SeeElementSource.getPrev(long)for more details.- Specified by:
getPrevFloatin interfaceElementSource- Overrides:
getPrevFloatin classFormula- Parameters:
k- the location in index space to get the previous value from.- Returns:
- the previous float at the index, null values are represented by
QueryConstants.NULL_FLOAT
-
getPrevInt
public int getPrevInt(long k) Description copied from interface:ElementSourceGet the previous value at the index as an int. SeeElementSource.getPrev(long)for more details.- Specified by:
getPrevIntin interfaceElementSource- Overrides:
getPrevIntin classFormula- Parameters:
k- the location in index space to get the previous value from.- Returns:
- the previous int at the index, null values are represented by
QueryConstants.NULL_INT
-
getPrevLong
public long getPrevLong(long k) Description copied from interface:ElementSourceGet the previous value at the index as a long. SeeElementSource.getPrev(long)for more details.- Specified by:
getPrevLongin interfaceElementSource- Overrides:
getPrevLongin classFormula- Parameters:
k- the location in index space to get the previous value from.- Returns:
- the previous long at the index, null values are represented by
QueryConstants.NULL_LONG
-
getPrevShort
public short getPrevShort(long k) Description copied from interface:ElementSourceGet the previous value at the index as a short. SeeElementSource.getPrev(long)for more details.- Specified by:
getPrevShortin interfaceElementSource- Overrides:
getPrevShortin classFormula- Parameters:
k- the location in index space to get the previous value from.- Returns:
- the previous short at the index, null values are represented by
QueryConstants.NULL_SHORT
-
getChunkType
- Specified by:
getChunkTypein classFormula
-
fillChunk
public void fillChunk(@NotNull Formula.FillContext __context, @NotNull WritableChunk<? super Attributes.Values> __destination, @NotNull OrderedKeys __orderedKeys) -
fillPrevChunk
public void fillPrevChunk(@NotNull Formula.FillContext __context, @NotNull WritableChunk<? super Attributes.Values> __destination, @NotNull OrderedKeys __orderedKeys) - Specified by:
fillPrevChunkin classFormula
-
makeFillContext
public com.illumon.iris.db.v2.select.formula.FormulaKernelAdapter.AdapterContext makeFillContext(int chunkCapacity) - Specified by:
makeFillContextin classFormula
-