Interface ReverseLookupColumnSource<DATA_TYPE,EXTRA_VALUE_TYPE>
- All Superinterfaces:
ChunkSource<Values>,ChunkSource.WithPrev<Values>,ColumnSource<DATA_TYPE>,ElementSource<DATA_TYPE>,FillContextMaker,GetContextMaker,LongBitmapStringSet.ReversibleLookup<DATA_TYPE>,Releasable,TupleExporter<DATA_TYPE>,TupleSource<DATA_TYPE>
public interface ReverseLookupColumnSource<DATA_TYPE,EXTRA_VALUE_TYPE>
extends ColumnSource<DATA_TYPE>, LongBitmapStringSet.ReversibleLookup<DATA_TYPE>
Common interface for column sources that provide a reverse-lookup function (value to int key). Note that int keys are
used because this is intended for column sources with a small, contiguous key range starting from 0 and well shorter
than Integer.MAX_VALUE.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.table.ChunkSource
ChunkSource.FillContext, ChunkSource.GetContext, ChunkSource.WithPrev<ATTR extends Any>Nested classes/interfaces inherited from interface io.deephaven.engine.table.TupleExporter
TupleExporter.ExportElementFunction<TUPLE_TYPE> -
Field Summary
Fields inherited from interface io.deephaven.engine.table.ChunkSource
DEFAULT_FILL_INSTANCE, ZERO_LENGTH_CHUNK_SOURCE_ARRAYFields inherited from interface io.deephaven.engine.table.ChunkSource.WithPrev
ZERO_LENGTH_CHUNK_SOURCE_WITH_PREV_ARRAYFields inherited from interface io.deephaven.engine.table.ColumnSource
ZERO_LENGTH_COLUMN_SOURCE_ARRAY -
Method Summary
Modifier and TypeMethodDescriptiongetExtra()Get an implementation-defined "extra value" associated with this column source.getReverseLookup(int highestKeyNeeded) Get a reverse-lookup function for all non-null values stored in this column source atkeys <= highestKeyNeeded.default intPerform a reverse lookupMethods inherited from interface io.deephaven.engine.table.ChunkSource
fillChunk, getChunk, getChunkMethods inherited from interface io.deephaven.engine.table.ChunkSource.WithPrev
fillPrevChunk, getPrevChunk, getPrevChunkMethods inherited from interface io.deephaven.engine.table.ColumnSource
allowsReinterpret, cast, cast, cast, cast, createPreviousTuple, createTuple, createTupleFromValues, exportAllTo, exportElement, exportElement, getChunkType, getComponentType, getPrevSource, getType, isImmutable, isStateless, match, reinterpret, releaseCachedResources, startTrackingPrevValues, tupleLengthMethods inherited from interface io.deephaven.engine.table.ElementSource
get, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getPrev, getPrevBoolean, getPrevByte, getPrevChar, getPrevDouble, getPrevFloat, getPrevInt, getPrevLong, getPrevShort, getShortMethods inherited from interface io.deephaven.engine.table.FillContextMaker
makeFillContext, makeFillContextMethods inherited from interface io.deephaven.engine.table.GetContextMaker
makeGetContext, makeGetContextMethods inherited from interface io.deephaven.stringset.LongBitmapStringSet.ReversibleLookup
getMethods inherited from interface io.deephaven.engine.table.TupleExporter
exportAllReinterpretedTo, exportAllReinterpretedTo, exportAllTo, exportElementReinterpretedMethods inherited from interface io.deephaven.engine.table.TupleSource
createTupleFromReinterpretedValues
-
Method Details
-
getReverseLookup
Get a reverse-lookup function for all non-null values stored in this column source atkeys <= highestKeyNeeded.- Parameters:
highestKeyNeeded- The highest key needed in the result map- Returns:
- A reverse-lookup function that has all values defined for keys in [0, highestKeyNeeded]
-
getExtra
EXTRA_VALUE_TYPE getExtra()Get an implementation-defined "extra value" associated with this column source. -
rget
Perform a reverse lookup- Specified by:
rgetin interfaceLongBitmapStringSet.ReversibleLookup<DATA_TYPE>- Parameters:
highestIndex- The highest key needed for the lookupvalue- The value we are looking up- Returns:
- The key, between 0 and highestIndex, for the value. A value outside this range if the value has no mapping in the range.
-