@PublicEvolving public static interface LookupTableSource.LookupContext extends DynamicTableSource.Context
LookupTableSource.LookupRuntimeProvider
.
It offers utilities by the planner for creating runtime implementation with minimal dependencies to internal data structures.
Methods should be called in LookupTableSource.getLookupRuntimeProvider(LookupContext)
. Returned
instances that are Serializable
can be directly passed into the runtime
implementation class.
Modifier and Type | Method and Description |
---|---|
int[][] |
getKeys()
Returns an array of key index paths that should be used during the lookup.
|
createDataStructureConverter, createTypeInformation, createTypeInformation
int[][] getKeys()
For example, given a table with data type ROW < i INT, s STRING, r ROW < i2
INT, s2 STRING > >
, this method would return [[0], [2, 1]]
when i
and
s2
are used for performing a lookup.
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.