Tabnine Logo
DruidSchema.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.calcite.adapter.druid.DruidSchema
constructor

Best Java code snippets using org.apache.calcite.adapter.druid.DruidSchema.<init> (Showing top 8 results out of 315)

origin: apache/hive

  rowType, viewTable, nonPartitionColumns, partitionColumns, new ArrayList<>(),
  conf, new HashMap<>(), new HashMap<>(), new AtomicInteger());
DruidTable druidTable = new DruidTable(new DruidSchema(address, address, false),
  dataSource, RelDataTypeImpl.proto(rowType), metrics, DruidTable.DEFAULT_TIMESTAMP_COLUMN,
  intervals, null, null);
origin: apache/drill

DruidTable druidTable = new DruidTable(new DruidSchema(address, address, false),
  dataSource, RelDataTypeImpl.proto(rowType), metrics, DruidTable.DEFAULT_TIMESTAMP_COLUMN, intervals);
final TableScan scan = new HiveTableScan(cluster, cluster.traitSetOf(HiveRelNode.CONVENTION),
origin: apache/drill

DruidTable druidTable = new DruidTable(new DruidSchema(address, address, false),
    dataSource, RelDataTypeImpl.proto(rowType), metrics, DruidTable.DEFAULT_TIMESTAMP_COLUMN, intervals);
final TableScan scan = new HiveTableScan(cluster, cluster.traitSetOf(HiveRelNode.CONVENTION),
origin: apache/hive

DruidTable druidTable = new DruidTable(new DruidSchema(address, address, false),
  dataSource, RelDataTypeImpl.proto(rowType), metrics, DruidTable.DEFAULT_TIMESTAMP_COLUMN,
  intervals, null, null);
origin: Qihoo360/Quicksql

 public Schema create(SchemaPlus parentSchema, String name,
            Map<String, Object> operand) {
  final String url = operand.get("url") instanceof String
    ? (String) operand.get("url")
    : DEFAULT_URL;
  final String coordinatorUrl = operand.get("coordinatorUrl") instanceof String
    ? (String) operand.get("coordinatorUrl")
    : url.replace(":8082", ":8081");
  // "tables" is a hidden attribute, copied in from the enclosing custom
  // schema
  final boolean containsTables = operand.get("tables") instanceof List
    && ((List) operand.get("tables")).size() > 0;
  return new DruidSchema(url, coordinatorUrl, !containsTables);
 }
}
origin: org.apache.calcite/calcite-druid

 public Schema create(SchemaPlus parentSchema, String name,
   Map<String, Object> operand) {
  final String url = operand.get("url") instanceof String
    ? (String) operand.get("url")
    : DEFAULT_URL;
  final String coordinatorUrl = operand.get("coordinatorUrl") instanceof String
    ? (String) operand.get("coordinatorUrl")
    : url.replace(":8082", ":8081");
  // "tables" is a hidden attribute, copied in from the enclosing custom
  // schema
  final boolean containsTables = operand.get("tables") instanceof List
    && ((List) operand.get("tables")).size() > 0;
  return new DruidSchema(url, coordinatorUrl, !containsTables);
 }
}
origin: org.apache.calcite/calcite-druid

/**
 * Test to make sure that the mapping from a Table name to a Table returned from
 * {@link org.apache.calcite.adapter.druid.DruidSchema} is always the same Java object.
 * */
@Test public void testTableMapReused() {
 AbstractSchema schema = new DruidSchema(
   "http://localhost:8082", "http://localhost:8081", true);
 assertSame(schema.getTable("wikiticker"), schema.getTable("wikiticker"));
}
origin: org.apache.calcite/calcite-druid

/**
 * Test to make sure that the mapping from a Table name to a Table returned from
 * {@link org.apache.calcite.adapter.druid.DruidSchema} is always the same Java object.
 * */
@Test public void testTableMapReused() {
 AbstractSchema schema = new DruidSchema("http://localhost:8082", "http://localhost:8081", true);
 assertSame(schema.getTable("wikiticker"), schema.getTable("wikiticker"));
}
org.apache.calcite.adapter.druidDruidSchema<init>

Javadoc

Creates a Druid schema.

Popular methods of DruidSchema

  • table

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JFrame (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now