Package org.apache.calcite.adapter.druid
Class DruidSchemaFactory
- java.lang.Object
-
- org.apache.calcite.adapter.druid.DruidSchemaFactory
-
- All Implemented Interfaces:
SchemaFactory
public class DruidSchemaFactory extends java.lang.Object implements SchemaFactory
Schema factory that creates Druid schemas.Druid schema operands Operand Description Required url URL of Druid's query node. The default is "http://localhost:8082". No coordinatorUrl URL of Druid's coordinator node. The default is url
, replacing "8082" with "8081", for example "http://localhost:8081".No
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_URL
Default Druid URL.
-
Constructor Summary
Constructors Constructor Description DruidSchemaFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Schema
create(SchemaPlus parentSchema, java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> operand)
Creates a Schema.
-
-
-
Field Detail
-
DEFAULT_URL
public static final java.lang.String DEFAULT_URL
Default Druid URL.- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public Schema create(SchemaPlus parentSchema, java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> operand)
Description copied from interface:SchemaFactory
Creates a Schema.- Specified by:
create
in interfaceSchemaFactory
- Parameters:
parentSchema
- Parent schemaname
- Name of this schemaoperand
- The "operand" JSON property- Returns:
- Created schema
-
-