Package org.apache.druid.sql.calcite.schema
package org.apache.druid.sql.calcite.schema
-
ClassDescriptionCalcite provides two "schema" abstractions.Broker-side cache of segment metadata that combines segments to build datasources which become "tables" in Calcite.Broker-side configuration class for managing segment polling from the Coordinator and customizing properties related to the SegmentMetadata cache which is used to infer datasources for SQL.The module responsible for providing bindings to Calcite schemas.The Druid 'catalog', containing information about all Druid schemas which are available.This interface provides a map of datasource names to
DruidTableobjects, used by theDruidSchemaclass as the SQL planner's view of Druid datasource schemas.An annotation to get the name of the schema to access Druid tables in SQL.Creates the "lookup" schema in Druid SQL, composed of all availableLookupDataSource.Builds a view of used segment metadata currently present on the Coordinator in theSegmentsMetadataManagerobject, by polling the REST API/druid/coordinator/v1/metadata/segments.The schema for Druid tables to be accessible via SQL.The schema for Druid lookup tables to be accessible via SQL.This interface provides everything that is needed to register aSchemaas a sub schema to the root schema of Druid SQL.The schema for Druid system tables to be accessible via SQL.BuildsDatasourceTable.PhysicalDatasourceMetadatafor a dataSource, including information about its schema, joinability, and broadcast status.Provides the RootSchema for Calcite with - metadata schema disabled because it's not needed - caching disabled because Druid's caching is better.System schema tablesys.server_propertiesthat contains the properties of all Druid servers.