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
    Modifier and Type
    Field
    Description
    static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SystemServerPropertiesTable(DruidNodeDiscoveryProvider druidNodeDiscoveryProvider, AuthorizerMapper authorizerMapper, HttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper jsonMapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.calcite.schema.Schema.TableType
     
    org.apache.calcite.rel.type.RelDataType
    getRowType(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, unwrap

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.calcite.schema.Table

    getStatistic, isRolledUp, rolledUpColumnValidInsideAgg

    Methods inherited from interface org.apache.calcite.schema.Wrapper

    maybeUnwrap, unwrapOrThrow
  • Field Details

  • Constructor Details

  • Method Details

    • getRowType

      public org.apache.calcite.rel.type.RelDataType getRowType(org.apache.calcite.rel.type.RelDataTypeFactory typeFactory)
      Specified by:
      getRowType in interface org.apache.calcite.schema.Table
    • getJdbcTableType

      public org.apache.calcite.schema.Schema.TableType getJdbcTableType()
      Specified by:
      getJdbcTableType in interface org.apache.calcite.schema.Table
      Overrides:
      getJdbcTableType in class org.apache.calcite.schema.impl.AbstractTable
    • scan

      public org.apache.calcite.linq4j.Enumerable<Object[]> scan(org.apache.calcite.DataContext root)
      Specified by:
      scan in interface org.apache.calcite.schema.ScannableTable