Class FormulaKernelAdapter
java.lang.Object
com.illumon.iris.db.v2.select.Formula
com.illumon.iris.db.v2.select.formula.FormulaKernelAdapter
- All Implemented Interfaces:
- ElementSource
public class FormulaKernelAdapter extends Formula
- 
Nested Class SummaryNested classes/interfaces inherited from class com.illumon.iris.db.v2.select.FormulaFormula.FillContext, Formula.GetContext
- 
Field Summary
- 
Constructor SummaryConstructors Constructor Description FormulaKernelAdapter(Index index, FormulaSourceDescriptor sourceDescriptor, Map<String,? extends ColumnSource> columnSources, FormulaKernel kernel)
- 
Method SummaryModifier and Type Method Description voidfillChunk(Formula.FillContext __context, WritableChunk<? super Attributes.Values> __destination, OrderedKeys __orderedKeys)voidfillPrevChunk(Formula.FillContext __context, WritableChunk<? super Attributes.Values> __destination, OrderedKeys __orderedKeys)Objectget(long k)Get the value from the source.BooleangetBoolean(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 ChunkTypegetChunkType()doublegetDouble(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.ObjectgetPrev(long k)Get the previous value at the index.BooleangetPrevBoolean(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.FormulagetChunk, getIndex, getPrevChunk, makeGetContext
- 
Constructor Details- 
FormulaKernelAdapterpublic FormulaKernelAdapter(Index index, FormulaSourceDescriptor sourceDescriptor, Map<String,? extends ColumnSource> columnSources, FormulaKernel kernel)
 
- 
- 
Method Details- 
getDescription copied from interface:ElementSourceGet the value from the source. This may return boxed values for basic types.- Specified by:
- getin interface- ElementSource
- Specified by:
- getin class- Formula
- Parameters:
- k- the location in index space to get the value from.
- Returns:
- the value at the index, potentially null.
 
- 
getPrevDescription 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 interface- ElementSource
- Specified by:
- getPrevin class- Formula
- Parameters:
- k- the location in index space to get the value from.
- Returns:
- the previous value at the index, or null.
 
- 
getBooleanDescription copied from interface:ElementSourceGet the value at the index as a Boolean.- Specified by:
- getBooleanin interface- ElementSource
- Overrides:
- getBooleanin class- Formula
- Parameters:
- k- the location in index space to get the value from.
- Returns:
- the boolean at the index, potentially null.
 
- 
getBytepublic byte getByte(long k)Description copied from interface:ElementSourceGet the value at the index as a byte.- Specified by:
- getBytein interface- ElementSource
- Overrides:
- getBytein class- Formula
- 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
 
- 
getCharpublic char getChar(long k)Description copied from interface:ElementSourceGet the value at the index as a char.- Specified by:
- getCharin interface- ElementSource
- Overrides:
- getCharin class- Formula
- 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
 
- 
getDoublepublic double getDouble(long k)Description copied from interface:ElementSourceGet the value at the index as a double.- Specified by:
- getDoublein interface- ElementSource
- Overrides:
- getDoublein class- Formula
- 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
 
- 
getFloatpublic float getFloat(long k)Description copied from interface:ElementSourceGet the value at the index as a float.- Specified by:
- getFloatin interface- ElementSource
- Overrides:
- getFloatin class- Formula
- 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
 
- 
getIntpublic int getInt(long k)Description copied from interface:ElementSourceGet the value at the index as an int.- Specified by:
- getIntin interface- ElementSource
- Overrides:
- getIntin class- Formula
- 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
 
- 
getLongpublic long getLong(long k)Description copied from interface:ElementSourceGet the value at the index as a long.- Specified by:
- getLongin interface- ElementSource
- Overrides:
- getLongin class- Formula
- 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
 
- 
getShortpublic short getShort(long k)Description copied from interface:ElementSourceGet the value at the index as a short.- Specified by:
- getShortin interface- ElementSource
- Overrides:
- getShortin class- Formula
- 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
 
- 
getPrevBooleanDescription copied from interface:ElementSourceGet the previous value at the index as a Boolean. SeeElementSource.getPrev(long)for more details.- Specified by:
- getPrevBooleanin interface- ElementSource
- Overrides:
- getPrevBooleanin class- Formula
- Parameters:
- k- the location in index space to get the previous value from.
- Returns:
- the previous boolean at the index, or null.
 
- 
getPrevBytepublic 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 interface- ElementSource
- Overrides:
- getPrevBytein class- Formula
- 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
 
- 
getPrevCharpublic 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 interface- ElementSource
- Overrides:
- getPrevCharin class- Formula
- 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
 
- 
getPrevDoublepublic 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 interface- ElementSource
- Overrides:
- getPrevDoublein class- Formula
- 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
 
- 
getPrevFloatpublic 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 interface- ElementSource
- Overrides:
- getPrevFloatin class- Formula
- 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
 
- 
getPrevIntpublic 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 interface- ElementSource
- Overrides:
- getPrevIntin class- Formula
- 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
 
- 
getPrevLongpublic 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 interface- ElementSource
- Overrides:
- getPrevLongin class- Formula
- 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
 
- 
getPrevShortpublic 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 interface- ElementSource
- Overrides:
- getPrevShortin class- Formula
- 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 class- Formula
 
- 
fillChunkpublic void fillChunk(@NotNull Formula.FillContext __context, @NotNull WritableChunk<? super Attributes.Values> __destination, @NotNull OrderedKeys __orderedKeys)
- 
fillPrevChunkpublic void fillPrevChunk(@NotNull Formula.FillContext __context, @NotNull WritableChunk<? super Attributes.Values> __destination, @NotNull OrderedKeys __orderedKeys)- Specified by:
- fillPrevChunkin class- Formula
 
- 
makeFillContextpublic com.illumon.iris.db.v2.select.formula.FormulaKernelAdapter.AdapterContext makeFillContext(int chunkCapacity)- Specified by:
- makeFillContextin class- Formula
 
 
-