| Package | Description |
|---|---|
| org.apache.druid.catalog.model.table |
| Modifier and Type | Method and Description |
|---|---|
ResolvedExternalTable |
ResolvedExternalTable.resolve(TableDefnRegistry registry)
Look up the input source type and input format type to find the corresponding
definitions in the table registry.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract ExternalTableSpec |
BaseInputSourceDefn.convertCompletedTable(ResolvedExternalTable table,
Map<String,Object> args,
List<ColumnSpec> columns)
Complete a partial table using the table function arguments and columns provided.
|
protected ExternalTableSpec |
InlineInputSourceDefn.convertCompletedTable(ResolvedExternalTable table,
Map<String,Object> args,
List<ColumnSpec> columns) |
protected ExternalTableSpec |
LocalInputSourceDefn.convertCompletedTable(ResolvedExternalTable table,
Map<String,Object> args,
List<ColumnSpec> columns) |
protected ExternalTableSpec |
HttpInputSourceDefn.convertCompletedTable(ResolvedExternalTable table,
Map<String,Object> args,
List<ColumnSpec> columns) |
InputFormat |
InputFormatDefn.convertFromTable(ResolvedExternalTable table)
Create an input format from a resolved catalog table spec.
|
InputFormat |
InputFormats.BaseFormatDefn.convertFromTable(ResolvedExternalTable table) |
InputFormat |
InputFormats.FlatTextFormatDefn.convertFromTable(ResolvedExternalTable table) |
protected ExternalTableSpec |
FormattedInputSourceDefn.convertPartialFormattedTable(ResolvedExternalTable table,
Map<String,Object> args,
List<ColumnSpec> columns,
Map<String,Object> sourceMap)
Converted a formatted external table given the table definition, function
args, columns and the merged generic JSON map representing the input source.
|
ExternalTableSpec |
InputSourceDefn.convertTable(ResolvedExternalTable table)
Convert a complete (that is, fully-defined) table spec to an external table spec.
|
ExternalTableSpec |
BaseInputSourceDefn.convertTable(ResolvedExternalTable table) |
ExternalTableSpec |
LocalInputSourceDefn.convertTable(ResolvedExternalTable table) |
protected abstract InputFormat |
BaseInputSourceDefn.convertTableToFormat(ResolvedExternalTable table)
Convert the format spec, if any, to an input format.
|
protected InputFormat |
FormattedInputSourceDefn.convertTableToFormat(ResolvedExternalTable table) |
protected InputSource |
BaseInputSourceDefn.convertTableToSource(ResolvedExternalTable table)
Converts the input source given in a table spec.
|
TableFunction |
InputSourceDefn.partialTableFn(ResolvedExternalTable table)
Provide a definition for a SQL table function that completes a partial table
spec from the catalog.
|
TableFunction |
InlineInputSourceDefn.partialTableFn(ResolvedExternalTable table) |
TableFunction |
LocalInputSourceDefn.partialTableFn(ResolvedExternalTable table) |
TableFunction |
HttpInputSourceDefn.partialTableFn(ResolvedExternalTable table) |
protected List<ColumnSpec> |
BaseInputSourceDefn.selectPartialTableColumns(ResolvedExternalTable table,
List<ColumnSpec> columns)
Choose table or SQL-provided columns: table takes precedence.
|
protected Map<String,Object> |
InputFormats.FlatTextFormatDefn.toMap(ResolvedExternalTable table) |
void |
InputSourceDefn.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 |
BaseInputSourceDefn.validate(ResolvedExternalTable table) |
void |
InlineInputSourceDefn.validate(ResolvedExternalTable table) |
void |
LocalInputSourceDefn.validate(ResolvedExternalTable table) |
void |
InputFormatDefn.validate(ResolvedExternalTable table)
Given a resolved table that has the serialized JSON converted to a Java map,
validate the values of that map, typically by converting that map the target
input format object (after adjustments and filling in dummy columns.) THe
goal is to validate the information the user has provided in the table spec.
|
void |
InputFormats.BaseFormatDefn.validate(ResolvedExternalTable table) |
void |
InputFormats.FlatTextFormatDefn.validate(ResolvedExternalTable table) |
void |
FormattedInputSourceDefn.validate(ResolvedExternalTable table) |
void |
HttpInputSourceDefn.validate(ResolvedExternalTable table) |
| Constructor and Description |
|---|
PartialTableFunction(ResolvedExternalTable table,
List<TableFunction.ParameterDefn> params) |
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.