public interface InputSourceDefn
This class models the merger of a catalog definition (where the input source is stored as serialized JSON), and table function parameters to produce a Druid input source. We use the following names:
_PROPERTY._FIELD._PARAMETER.ExternalTableDefn} for a detailed explanation.| Modifier and Type | Method and Description |
|---|---|
TableFunction |
adHocTableFn()
Provide a definition for a SQL table function that defines an ad-hoc external
table "from scratch" for this input source.
|
void |
bind(TableDefnRegistry registry)
Gather information about the set of format definitions.
|
ExternalTableSpec |
convertTable(ResolvedExternalTable table)
Convert a complete (that is, fully-defined) table spec to an external table spec.
|
TableFunction |
partialTableFn(ResolvedExternalTable table)
Provide a definition for a SQL table function that completes a partial table
spec from the catalog.
|
String |
typeValue()
Type value for this format: same as the type string used in the serialized
JSON for this input source.
|
void |
validate(ResolvedExternalTable table)
Given a external table catalog spec, with the JSON input source and format
properties parsed to generic Java maps, validate that the properties are
valid prior to saving the spec into the catalog.
|
void bind(TableDefnRegistry registry)
String typeValue()
void validate(ResolvedExternalTable table)
table - a catalog table spec with the input source and input format
properties parsed into generic Java mapsIAE - if the spec
properties are invalidTableFunction adHocTableFn()
IAE - if the function arguments
are invalidTableFunction partialTableFn(ResolvedExternalTable table)
adHocTableFn().table - a catalog table spec with the input source and input format
properties parsed into generic Java mapsIAE - if the function arguments
are invalidExternalTableSpec convertTable(ResolvedExternalTable table)
FROM
clause without using a table function.IAE - if the spec properties are invalid,
or if the spec is partial and requires the use of a table function to
completeCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.