public class ResolvedExternalTable extends Object
ExternalTableSpec when used in SQL.| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
inputFormatMap |
protected Map<String,Object> |
inputSourceMap |
| Constructor and Description |
|---|
ResolvedExternalTable(ResolvedTable table)
Construct a resolved external table by extracting the input source
and input format properties, and converting each to a Java map.
|
| Modifier and Type | Method and Description |
|---|---|
ExternalTableSpec |
convert()
Return the
ExternalTableSpec for a catalog entry for a this object
which must be a fully-defined table. |
ResolvedExternalTable |
resolve(TableDefnRegistry registry)
Look up the input source type and input format type to find the corresponding
definitions in the table registry.
|
ResolvedTable |
resolvedTable() |
TableFunction |
tableFn()
Return a table function definition for a partial table as given by
this object.
|
void |
validate(TableDefnRegistry registry)
Validate that the table spec is correct by resolving the definitions, then
converting the JSON to the desired object type.
|
public ResolvedExternalTable(ResolvedTable table)
Note: does not resolve the input source and input format definitions: that is done as a separate step when needed.
#resolve(TableDefnRegistry)}.public ResolvedTable resolvedTable()
public ResolvedExternalTable resolve(TableDefnRegistry registry)
Note, for resolution to work, the name of each definition must be the same as that used as the type key in the serialized JSON.
public void validate(TableDefnRegistry registry)
public TableFunction tableFn()
ExternalTableSpec.public ExternalTableSpec convert()
ExternalTableSpec for a catalog entry for a this object
which must be a fully-defined table.Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.