public class DruidSchema extends AbstractSchema
AbstractSchema.FactorySchema.TableType| Modifier and Type | Field and Description |
|---|---|
(package private) String |
coordinatorUrl |
private boolean |
discoverTables |
(package private) String |
url |
| Constructor and Description |
|---|
DruidSchema(String url,
String coordinatorUrl,
boolean discoverTables)
Creates a Druid schema.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Table> |
getTableMap() |
contentsHaveChangedSince, getExpression, getFunctionMultimap, getFunctionNames, getFunctions, getSubSchema, getSubSchemaMap, getSubSchemaNames, getTable, getTableNames, isMutablefinal String url
final String coordinatorUrl
private final boolean discoverTables
public DruidSchema(String url, String coordinatorUrl, boolean discoverTables)
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 modelprotected Map<String,Table> getTableMap()
getTableMap in class AbstractSchemaCopyright © 2012–2016 The Apache Software Foundation. All rights reserved.