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>,PartitioningRegionedSource,RegionedColumnSource<DATA_TYPE>
- All Known Implementing Classes:
AbstractColumnSource.DefaultedImmutable,ImmutableBooleanArraySource,ImmutableByteArraySource,ImmutableCharArraySource,ImmutableDateTimeArraySource,ImmutableDoubleArraySource,ImmutableFloatArraySource,ImmutableInstantArraySource,ImmutableIntArraySource,ImmutableLongArraySource,ImmutableObjectArraySource,ImmutableShortArraySource,RegionedColumnSourceBase,RegionedColumnSourceObject,RegionedColumnSourceObject.AsValues,RegionedColumnSourceObjectWithDictionary,RegionedColumnSourcePartitioning,RowIdSource,SingleValueObjectColumnSource,SymbolTableToUniqueIdSource
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_ARRAYFields inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource.WithPrev
ZERO_LENGTH_CHUNK_SOURCE_WITH_PREV_ARRAYFields inherited from interface com.illumon.iris.db.v2.sources.ColumnSource
ZERO_LENGTH_COLUMN_SOURCE_ARRAY -
Method Summary
Modifier and TypeMethodDescriptiondefault DATA_TYPEgetPrev(long elementIndex) Get the previous value at the index.default BooleangetPrevBoolean(long elementIndex) Get the previous value at the index as a Boolean.default bytegetPrevByte(long elementIndex) Get the previous value at the index as a byte.default chargetPrevChar(long elementIndex) Get the previous value at the index as a char.default doublegetPrevDouble(long elementIndex) Get the previous value at the index as a double.default floatgetPrevFloat(long elementIndex) Get the previous value at the index as a float.default intgetPrevInt(long elementIndex) Get the previous value at the index as an int.default longgetPrevLong(long elementIndex) Get the previous value at the index as a long.default shortgetPrevShort(long elementIndex) Get the previous value at the index as a short.default booleanDetermine 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, getChunkTypeMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.ChunkSource.WithPrev
fillPrevChunkMethods 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, hasGrouping, match, reinterpret, releaseCachedResources, setGroupingProvider, startTrackingPrevValuesMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.DefaultChunkSource
getChunk, getChunk, getChunkByFilling, makeFillContext, makeGetContextMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.DefaultChunkSource.WithPrev
getPrevChunk, getPrevChunk, getPrevChunkByFillingMethods inherited from interface com.illumon.iris.db.v2.sources.ElementSource
get, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getShortMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.FillContextMaker
makeFillContextMethods inherited from interface com.illumon.iris.db.v2.sources.chunk.GetContextMaker
makeGetContextMethods inherited from interface com.illumon.iris.db.v2.tuples.TupleExporter
exportElementReinterpretedMethods inherited from interface com.illumon.iris.db.v2.tuples.TupleSource
createTupleFromReinterpretedValues
-
Method Details
-
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<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:ElementSourceGet the previous value at the index as a Boolean. SeeElementSource.getPrev(long)for more details.- Specified by:
getPrevBooleanin 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:ElementSourceGet the previous value at the index as a byte. SeeElementSource.getPrev(long)for more details.- Specified by:
getPrevBytein 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:ElementSourceGet the previous value at the index as a char. SeeElementSource.getPrev(long)for more details.- Specified by:
getPrevCharin 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:ElementSourceGet the previous value at the index as a double. SeeElementSource.getPrev(long)for more details.- Specified by:
getPrevDoublein 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:ElementSourceGet the previous value at the index as a float. SeeElementSource.getPrev(long)for more details.- Specified by:
getPrevFloatin 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:ElementSourceGet the previous value at the index as an int. SeeElementSource.getPrev(long)for more details.- Specified by:
getPrevIntin 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:ElementSourceGet the previous value at the index as a long. SeeElementSource.getPrev(long)for more details.- Specified by:
getPrevLongin 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:ElementSourceGet the previous value at the index as a short. SeeElementSource.getPrev(long)for more details.- Specified by:
getPrevShortin 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:ColumnSourceDetermine if this column source is immutable, meaning that the values at a given index key never change.- Specified by:
isImmutablein interfaceColumnSource<DATA_TYPE>- Returns:
- true if the values at a given index of the column source never change, false otherwise
-