Class DruidSchema

  • All Implemented Interfaces:

    public class DruidSchema
    extends AbstractSchema
    Schema mapped onto a Druid instance.
    • Field Detail

      • url

        final java.lang.String url
      • coordinatorUrl

        final java.lang.String coordinatorUrl
      • discoverTables

        private final boolean discoverTables
      • tableMap

        private java.util.Map<java.lang.String,​Table> tableMap
    • Constructor Detail

      • DruidSchema

        public DruidSchema​(java.lang.String url,
                           java.lang.String coordinatorUrl,
                           boolean discoverTables)
        Creates a Druid schema.
        url - URL of query REST service, e.g. "http://localhost:8082"
        coordinatorUrl - URL of coordinator REST service, e.g. "http://localhost:8081"
        discoverTables - If true, ask Druid what tables exist; if false, only create tables explicitly in the model