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 ColumnSources 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
ColumnSources 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
FieldsModifier and TypeFieldDescriptionstatic final StringThe name for the column oflongidentifiers.static final StringThe 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_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 TypeMethodDescriptiongetStaticSymbolTable(@NotNull RowSet sourceRowSet, boolean useLookupCaching) Get a staticTableview of this SymbolTableSource's symbol table, providing a many:1 or 1:1 mapping of uniquelongidentifiers to the symbol values in this source.getSymbolTable(@NotNull QueryTable sourceTable, boolean useLookupCaching) Get aTableview of this SymbolTableSource's symbol table, providing a many:1 or 1:1 mapping of uniquelongidentifiers to the symbol values in this source.booleanhasSymbolTable(@NotNull RowSet sourceRowSet) static booleanhasSymbolTable(@NotNull ColumnSource<?> source, @NotNull RowSet rowSet) Check if the specifiedColumnSourcesupports a symbol table for the entirety of the suppliedRowSet.Methods 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.engine.table.TupleExporter
exportAllReinterpretedTo, exportAllReinterpretedTo, exportAllTo, exportElementReinterpretedMethods inherited from interface io.deephaven.engine.table.TupleSource
createTupleFromReinterpretedValues
-
Field Details
-
ID_COLUMN_NAME
The name for the column oflongidentifiers.- 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- TheRowSetwhose keys must be mappable- Returns:
- Whether this SymbolTableSource can provide a symbol table that covers all keys in
sourceRowSet.
-
getStaticSymbolTable
Get a static
Tableview of this SymbolTableSource's symbol table, providing a many:1 or 1:1 mapping of uniquelongidentifiers to the symbol values in this source. -
getSymbolTable
Get a
Tableview of this SymbolTableSource's symbol table, providing a many:1 or 1:1 mapping of uniquelongidentifiers to the symbol values in this source.The result will be refreshing if
tableis refreshing.- Parameters:
sourceTable- TheQueryTablewhose 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 specifiedColumnSourcesupports a symbol table for the entirety of the suppliedRowSet.- Parameters:
source- The column sourcerowSet- TheRowSetfor inspection.- Returns:
- True if the column source can provide a complete symbol table for the provided RowSet.
-