Class SystemSchema
java.lang.Object
org.apache.calcite.schema.impl.AbstractSchema
org.apache.druid.sql.calcite.schema.SystemSchema
- All Implemented Interfaces:
org.apache.calcite.schema.Schema
public class SystemSchema
extends org.apache.calcite.schema.impl.AbstractSchema
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.calcite.schema.impl.AbstractSchema
org.apache.calcite.schema.impl.AbstractSchema.FactoryNested classes/interfaces inherited from interface org.apache.calcite.schema.Schema
org.apache.calcite.schema.Schema.TableType -
Constructor Summary
ConstructorsConstructorDescriptionSystemSchema(DruidSchema druidSchema, MetadataSegmentView metadataView, TimelineServerView serverView, FilteredServerInventoryView serverInventoryView, AuthorizerMapper authorizerMapper, CoordinatorClient coordinatorClient, OverlordClient overlordClient, DruidNodeDiscoveryProvider druidNodeDiscoveryProvider, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, HttpClient httpClient, com.google.inject.Provider<SqlEngineRegistry> sqlEngineRegistryProvider, PlannerConfig plannerConfig) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcheckStateReadAccessForServers(AuthenticationResult authenticationResult, AuthorizerMapper authorizerMapper) Checks if an authenticated user has the STATE READ permissions needed to view server information.static Iterator<DiscoveryDruidNode>getDruidServers(DruidNodeDiscoveryProvider druidNodeDiscoveryProvider) Returns an iterator over all discoverable Druid nodes in the cluster.Methods inherited from class org.apache.calcite.schema.impl.AbstractSchema
getExpression, getFunctionMultimap, getFunctionNames, getFunctions, getSubSchema, getSubSchemaMap, getSubSchemaNames, getTable, getTableNames, getType, getTypeMap, getTypeNames, isMutable, snapshot
-
Constructor Details
-
SystemSchema
@Inject public SystemSchema(DruidSchema druidSchema, MetadataSegmentView metadataView, TimelineServerView serverView, FilteredServerInventoryView serverInventoryView, AuthorizerMapper authorizerMapper, CoordinatorClient coordinatorClient, OverlordClient overlordClient, DruidNodeDiscoveryProvider druidNodeDiscoveryProvider, com.fasterxml.jackson.databind.ObjectMapper jsonMapper, HttpClient httpClient, com.google.inject.Provider<SqlEngineRegistry> sqlEngineRegistryProvider, PlannerConfig plannerConfig)
-
-
Method Details
-
getTableMap
- Overrides:
getTableMapin classorg.apache.calcite.schema.impl.AbstractSchema
-
checkStateReadAccessForServers
public static void checkStateReadAccessForServers(AuthenticationResult authenticationResult, AuthorizerMapper authorizerMapper) Checks if an authenticated user has the STATE READ permissions needed to view server information. -
getDruidServers
public static Iterator<DiscoveryDruidNode> getDruidServers(DruidNodeDiscoveryProvider druidNodeDiscoveryProvider) Returns an iterator over all discoverable Druid nodes in the cluster.
-