Class SystemServerPropertiesTable
java.lang.Object
org.apache.calcite.schema.impl.AbstractTable
org.apache.druid.sql.calcite.schema.SystemServerPropertiesTable
- All Implemented Interfaces:
org.apache.calcite.schema.ScannableTable,org.apache.calcite.schema.Table,org.apache.calcite.schema.Wrapper
public class SystemServerPropertiesTable
extends org.apache.calcite.schema.impl.AbstractTable
implements org.apache.calcite.schema.ScannableTable
System schema table
sys.server_properties that contains the properties of all Druid servers.
Each row contains the value of a single property. If a server has multiple node roles, all the rows for
that server would have multiple values in the column node_roles rather than duplicating all the
rows.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSystemServerPropertiesTable(DruidNodeDiscoveryProvider druidNodeDiscoveryProvider, AuthorizerMapper authorizerMapper, HttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper jsonMapper) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.calcite.schema.Schema.TableTypeorg.apache.calcite.rel.type.RelDataTypegetRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) org.apache.calcite.linq4j.Enumerable<Object[]>scan(org.apache.calcite.DataContext root) Methods inherited from class org.apache.calcite.schema.impl.AbstractTable
getStatistic, isRolledUp, rolledUpColumnValidInsideAgg, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.calcite.schema.Table
getStatistic, isRolledUp, rolledUpColumnValidInsideAggMethods inherited from interface org.apache.calcite.schema.Wrapper
maybeUnwrap, unwrapOrThrow
-
Field Details
-
TABLE_NAME
- See Also:
-
-
Constructor Details
-
SystemServerPropertiesTable
public SystemServerPropertiesTable(DruidNodeDiscoveryProvider druidNodeDiscoveryProvider, AuthorizerMapper authorizerMapper, HttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
-
-
Method Details
-
getRowType
public org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory) - Specified by:
getRowTypein interfaceorg.apache.calcite.schema.Table
-
getJdbcTableType
public org.apache.calcite.schema.Schema.TableType getJdbcTableType()- Specified by:
getJdbcTableTypein interfaceorg.apache.calcite.schema.Table- Overrides:
getJdbcTableTypein classorg.apache.calcite.schema.impl.AbstractTable
-
scan
- Specified by:
scanin interfaceorg.apache.calcite.schema.ScannableTable
-