Interface SymbolTableSource<SYMBOL_TYPE>
- All Superinterfaces:
ChunkSource<Values>
,ChunkSource.WithPrev<Values>
,ColumnSource<SYMBOL_TYPE>
,ElementSource<SYMBOL_TYPE>
,FillContextMaker
,GetContextMaker
,Releasable
,TupleExporter<SYMBOL_TYPE>
,TupleSource<SYMBOL_TYPE>
Interface for ColumnSource
s that can provide a Table
view of their symbol tables, providing a many:1
or 1:1 mapping of unique long
identifiers to the symbol values in this source.
Such sources are also expected to be reinterpretable (ColumnSource.allowsReinterpret(Class)
) as long
ColumnSource
s of the same identifiers.
-
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
Modifier and TypeFieldDescriptionstatic final String
The name for the column oflong
identifiers.static final String
The name for the column of symbol values, which will have the same data type as this column source.Fields inherited from interface io.deephaven.engine.table.ChunkSource
DEFAULT_FILL_INSTANCE, ZERO_LENGTH_CHUNK_SOURCE_ARRAY
Fields inherited from interface io.deephaven.engine.table.ChunkSource.WithPrev
ZERO_LENGTH_CHUNK_SOURCE_WITH_PREV_ARRAY
Fields inherited from interface io.deephaven.engine.table.ColumnSource
ZERO_LENGTH_COLUMN_SOURCE_ARRAY
-
Method Summary
Modifier and TypeMethodDescriptiongetStaticSymbolTable
(@NotNull RowSet sourceRowSet, boolean useLookupCaching) Get a staticTable
view of this SymbolTableSource's symbol table, providing a many:1 or 1:1 mapping of uniquelong
identifiers to the symbol values in this source.getSymbolTable
(@NotNull QueryTable sourceTable, boolean useLookupCaching) Get aTable
view of this SymbolTableSource's symbol table, providing a many:1 or 1:1 mapping of uniquelong
identifiers to the symbol values in this source.boolean
hasSymbolTable
(@NotNull RowSet sourceRowSet) static boolean
hasSymbolTable
(@NotNull ColumnSource<?> source, @NotNull RowSet rowSet) Check if the specifiedColumnSource
supports a symbol table for the entirety of the suppliedRowSet
.Methods inherited from interface io.deephaven.engine.table.ChunkSource
fillChunk, getChunk, getChunk
Methods inherited from interface io.deephaven.engine.table.ChunkSource.WithPrev
fillPrevChunk, getPrevChunk, getPrevChunk
Methods inherited from interface io.deephaven.engine.table.ColumnSource
allowsReinterpret, cast, cast, createPreviousTuple, createTuple, createTupleFromValues, exportAllTo, exportElement, exportElement, getChunkType, getComponentType, getPrevSource, getType, isImmutable, isStateless, match, reinterpret, releaseCachedResources, startTrackingPrevValues, tupleLength
Methods 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, getShort
Methods inherited from interface io.deephaven.engine.table.FillContextMaker
makeFillContext, makeFillContext
Methods inherited from interface io.deephaven.engine.table.GetContextMaker
makeGetContext, makeGetContext
Methods inherited from interface io.deephaven.engine.table.TupleExporter
exportAllReinterpretedTo, exportAllReinterpretedTo, exportAllTo, exportElementReinterpreted
Methods inherited from interface io.deephaven.engine.table.TupleSource
createTupleFromReinterpretedValues
-
Field Details
-
ID_COLUMN_NAME
The name for the column oflong
identifiers.- See Also:
-
SYMBOL_COLUMN_NAME
The name for the column of symbol values, which will have the same data type as this column source.- See Also:
-
-
Method Details
-
hasSymbolTable
- Parameters:
sourceRowSet
- TheRowSet
whose keys must be mappable- Returns:
- Whether this SymbolTableSource can provide a symbol table that covers all keys in
sourceRowSet
.
-
getStaticSymbolTable
Get a static
Table
view of this SymbolTableSource's symbol table, providing a many:1 or 1:1 mapping of uniquelong
identifiers to the symbol values in this source. -
getSymbolTable
Get a
Table
view of this SymbolTableSource's symbol table, providing a many:1 or 1:1 mapping of uniquelong
identifiers to the symbol values in this source.The result will be refreshing if
table
is refreshing
.- Parameters:
sourceTable
- TheQueryTable
whose row keys must be mappable via the resultTable
's identifier columnuseLookupCaching
- Hint whether symbol lookups performed to generate the symbol table should apply caching. Implementations may ignore this hint.- Returns:
- The symbol table
-
hasSymbolTable
static boolean hasSymbolTable(@NotNull @NotNull ColumnSource<?> source, @NotNull @NotNull RowSet rowSet) Check if the specifiedColumnSource
supports a symbol table for the entirety of the suppliedRowSet
.- Parameters:
source
- The column sourcerowSet
- TheRowSet
for inspection.- Returns:
- True if the column source can provide a complete symbol table for the provided RowSet.
-