Interface LookupTableSource

  • All Superinterfaces:
    DynamicTableSource

    @PublicEvolving
    public interface LookupTableSource
    extends DynamicTableSource
    A DynamicTableSource that looks up rows of an external storage system by one or more keys during runtime.

    Compared to ScanTableSource, the source does not have to read the entire table and can lazily fetch individual values from a (possibly continuously changing) external table when necessary.

    Note: Compared to ScanTableSource, a LookupTableSource does only support emitting insert-only changes currently (see also RowKind). Further abilities are not supported.

    In the last step, the planner will call getLookupRuntimeProvider(LookupContext) for obtaining a provider of runtime implementation. The key fields that are required to perform a lookup are derived from a query by the planner and will be provided in the given LookupTableSource.LookupContext.getKeys(). The values for those key fields are passed during runtime.