Package com.illumon.iris.db.v2.sources
Interface ImmutableColumnSource<DATA_TYPE>
- All Superinterfaces:
ChunkSource<Attributes.Values>
,ChunkSource.WithPrev<Attributes.Values>
,ColumnSource<DATA_TYPE>
,DefaultChunkSource<Attributes.Values>
,DefaultChunkSource.WithPrev<Attributes.Values>
,ElementSource<DATA_TYPE>
,FillContextMaker
,GetContextMaker
,Releasable
,TupleExporter<DATA_TYPE>
,TupleSource<DATA_TYPE>
- All Known Subinterfaces:
ImmutableColumnSourceGetDefaults.ForBoolean
,ImmutableColumnSourceGetDefaults.ForByte
,ImmutableColumnSourceGetDefaults.ForChar
,ImmutableColumnSourceGetDefaults.ForDouble
,ImmutableColumnSourceGetDefaults.ForFloat
,ImmutableColumnSourceGetDefaults.ForInt
,ImmutableColumnSourceGetDefaults.ForLong
,ImmutableColumnSourceGetDefaults.ForLongAsDateTime
,ImmutableColumnSourceGetDefaults.ForObject<DATA_TYPE>
,ImmutableColumnSourceGetDefaults.ForShort
,ImmutableColumnSourceGetDefaults.LongBacked<DATA_TYPE>
,RegionedColumnSource<DATA_TYPE>
- All Known Implementing Classes:
AbstractColumnSource.DefaultedImmutable
,ImmutableBooleanArraySource
,ImmutableByteArraySource
,ImmutableCharArraySource
,ImmutableDateTimeArraySource
,ImmutableDoubleArraySource
,ImmutableFloatArraySource
,ImmutableInstantArraySource
,ImmutableIntArraySource
,ImmutableLongArraySource
,ImmutableObjectArraySource
,ImmutableShortArraySource
,RegionedColumnSourceObject
,RegionedColumnSourceObject.AsValues
,RegionedColumnSourceObjectWithDictionary
,RowIdSource
,SingleValueObjectColumnSource
,SymbolTableToUniqueIdSource
public interface ImmutableColumnSource<DATA_TYPE> extends ColumnSource<DATA_TYPE>
Sub-interface of
ColumnSource
for implementations that always use return true
from
isImmutable()
and delegate all getPrev*
methods to their current (non-previous) equivalents.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource
ChunkSource.FillContext, ChunkSource.GetContext, ChunkSource.WithPrev<ATTR extends Attributes.Any>
Nested classes/interfaces inherited from interface com.illumon.iris.db.v2.sources.chunk.DefaultChunkSource
DefaultChunkSource.SupportsContiguousGet<ATTR extends Attributes.Any>, DefaultChunkSource.WithPrev<ATTR extends Attributes.Any>
-
Field Summary
Fields inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource
DEFAULT_FILL_INSTANCE, ZERO_LENGTH_CHUNK_SOURCE_ARRAY
Fields inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource.WithPrev
ZERO_LENGTH_CHUNK_SOURCE_WITH_PREV_ARRAY
Fields inherited from interface com.illumon.iris.db.v2.sources.ColumnSource
ZERO_LENGTH_COLUMN_SOURCE_ARRAY
-
Method Summary
Modifier and Type Method Description default DATA_TYPE
getPrev(long elementIndex)
Get the previous value at the index.default Boolean
getPrevBoolean(long elementIndex)
Get the previous value at the index as a Boolean.default byte
getPrevByte(long elementIndex)
Get the previous value at the index as a byte.default char
getPrevChar(long elementIndex)
Get the previous value at the index as a char.default double
getPrevDouble(long elementIndex)
Get the previous value at the index as a double.default float
getPrevFloat(long elementIndex)
Get the previous value at the index as a float.default int
getPrevInt(long elementIndex)
Get the previous value at the index as an int.default long
getPrevLong(long elementIndex)
Get the previous value at the index as a long.default short
getPrevShort(long elementIndex)
Get the previous value at the index as a short.default boolean
isImmutable()
Determine if this column source is immutable, meaning that the values at a given index key never change.Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource
fillChunk, getChunkType
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource.WithPrev
fillPrevChunk
Methods inherited from interface com.illumon.iris.db.v2.sources.ColumnSource
allowsReinterpret, cast, createPreviousTuple, createTuple, createTupleFromValues, exportElement, exportElement, exportToExternalKey, getColumnSources, getComponentType, getGroupingBuilder, getGroupingProvider, getNativeType, getPrevSource, getType, hasGrouping, match, reinterpret, releaseCachedResources, setGroupingProvider, startTrackingPrevValues
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.DefaultChunkSource
getChunk, getChunk, getChunkByFilling, makeFillContext, makeGetContext
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.DefaultChunkSource.WithPrev
getPrevChunk, getPrevChunk, getPrevChunkByFilling
Methods inherited from interface com.illumon.iris.db.v2.sources.ElementSource
get, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getShort
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.FillContextMaker
makeFillContext
Methods inherited from interface com.illumon.iris.db.v2.sources.chunk.GetContextMaker
makeGetContext
Methods inherited from interface com.illumon.iris.db.v2.tuples.TupleExporter
exportElementReinterpreted
Methods inherited from interface com.illumon.iris.db.v2.tuples.TupleSource
createTupleFromReinterpretedValues
-
Method Details
-
getPrev
Description copied from interface:ElementSource
Get the previous value at the index. Previous values are used during anLTM
update
cycle to process changes in data. Duringnormal
operation previous values will be identical tocurrent
values.- Specified by:
getPrev
in interfaceElementSource<DATA_TYPE>
- Parameters:
elementIndex
- the location in index space to get the value from.- Returns:
- the previous value at the index, or null.
-
getPrevBoolean
Description copied from interface:ElementSource
Get the previous value at the index as a Boolean. SeeElementSource.getPrev(long)
for more details.- Specified by:
getPrevBoolean
in interfaceElementSource<DATA_TYPE>
- Parameters:
elementIndex
- the location in index space to get the previous value from.- Returns:
- the previous boolean at the index, or null.
-
getPrevByte
default byte getPrevByte(long elementIndex)Description copied from interface:ElementSource
Get the previous value at the index as a byte. SeeElementSource.getPrev(long)
for more details.- Specified by:
getPrevByte
in interfaceElementSource<DATA_TYPE>
- Parameters:
elementIndex
- 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
default char getPrevChar(long elementIndex)Description copied from interface:ElementSource
Get the previous value at the index as a char. SeeElementSource.getPrev(long)
for more details.- Specified by:
getPrevChar
in interfaceElementSource<DATA_TYPE>
- Parameters:
elementIndex
- 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
default double getPrevDouble(long elementIndex)Description copied from interface:ElementSource
Get the previous value at the index as a double. SeeElementSource.getPrev(long)
for more details.- Specified by:
getPrevDouble
in interfaceElementSource<DATA_TYPE>
- Parameters:
elementIndex
- 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
default float getPrevFloat(long elementIndex)Description copied from interface:ElementSource
Get the previous value at the index as a float. SeeElementSource.getPrev(long)
for more details.- Specified by:
getPrevFloat
in interfaceElementSource<DATA_TYPE>
- Parameters:
elementIndex
- 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
default int getPrevInt(long elementIndex)Description copied from interface:ElementSource
Get the previous value at the index as an int. SeeElementSource.getPrev(long)
for more details.- Specified by:
getPrevInt
in interfaceElementSource<DATA_TYPE>
- Parameters:
elementIndex
- 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
default long getPrevLong(long elementIndex)Description copied from interface:ElementSource
Get the previous value at the index as a long. SeeElementSource.getPrev(long)
for more details.- Specified by:
getPrevLong
in interfaceElementSource<DATA_TYPE>
- Parameters:
elementIndex
- 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
default short getPrevShort(long elementIndex)Description copied from interface:ElementSource
Get the previous value at the index as a short. SeeElementSource.getPrev(long)
for more details.- Specified by:
getPrevShort
in interfaceElementSource<DATA_TYPE>
- Parameters:
elementIndex
- 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
-
isImmutable
default boolean isImmutable()Description copied from interface:ColumnSource
Determine if this column source is immutable, meaning that the values at a given index key never change.- Specified by:
isImmutable
in interfaceColumnSource<DATA_TYPE>
- Returns:
- true if the values at a given index of the column source never change, false otherwise
-