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.
| 限定符和类型 | 方法和说明 |
|---|---|
int[][] |
getKeys()
Returns an array of key index paths that should be used during the lookup.
|
createDataStructureConverter, createTypeInformationint[][] 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–2020 The Apache Software Foundation. All rights reserved.