Class CatalogResolver.NullCatalogResolver
java.lang.Object
org.apache.druid.sql.calcite.planner.CatalogResolver.NullCatalogResolver
- All Implemented Interfaces:
CatalogResolver
- Enclosing interface:
- CatalogResolver
Catalog resolver for when the catalog is not available.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.druid.sql.calcite.planner.CatalogResolver
CatalogResolver.NullCatalogResolver -
Field Summary
Fields inherited from interface org.apache.druid.sql.calcite.planner.CatalogResolver
NULL_RESOLVER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTableNames(Set<String> datasourceNames) booleanGlobal option to determine whether ingest requires an existing datasource, or can automatically create a new datasource.resolveDatasource(String tableName, DatasourceTable.PhysicalDatasourceMetadata dsMetadata) Create aDruidTablefor a given table name andDatasourceTable.PhysicalDatasourceMetadata, potentially blending data from both existing segments and metadata stored inCatalogResolver.getMetadataCatalog()
-
Constructor Details
-
NullCatalogResolver
public NullCatalogResolver()
-
-
Method Details
-
ingestRequiresExistingTable
public boolean ingestRequiresExistingTable()Description copied from interface:CatalogResolverGlobal option to determine whether ingest requires an existing datasource, or can automatically create a new datasource.- Specified by:
ingestRequiresExistingTablein interfaceCatalogResolver
-
getMetadataCatalog
- Specified by:
getMetadataCatalogin interfaceCatalogResolver
-
resolveDatasource
public DruidTable resolveDatasource(String tableName, DatasourceTable.PhysicalDatasourceMetadata dsMetadata) Description copied from interface:CatalogResolverCreate aDruidTablefor a given table name andDatasourceTable.PhysicalDatasourceMetadata, potentially blending data from both existing segments and metadata stored inCatalogResolver.getMetadataCatalog()- Specified by:
resolveDatasourcein interfaceCatalogResolver
-
getTableNames
- Specified by:
getTableNamesin interfaceCatalogResolver
-