public class PlannerContext extends Object
PlannerConfig, but that has static configuration and this class contains dynamic, per-query
configuration.| Modifier and Type | Field and Description |
|---|---|
static String |
CTX_SQL_CURRENT_TIMESTAMP |
static String |
CTX_SQL_OUTER_LIMIT |
static String |
CTX_SQL_QUERY_ID |
static String |
CTX_SQL_TIME_ZONE |
static String |
DATA_CTX_AUTHENTICATION_RESULT |
| Modifier and Type | Method and Description |
|---|---|
void |
addNativeQueryId(String queryId) |
static PlannerContext |
create(DruidOperatorTable operatorTable,
ExprMacroTable macroTable,
PlannerConfig plannerConfig,
Map<String,Object> queryContext,
AuthenticationResult authenticationResult) |
org.apache.calcite.DataContext |
createDataContext(org.apache.calcite.adapter.java.JavaTypeFactory typeFactory) |
AuthenticationResult |
getAuthenticationResult() |
ExprMacroTable |
getExprMacroTable() |
org.joda.time.DateTime |
getLocalNow() |
List<String> |
getNativeQueryIds() |
DruidOperatorTable |
getOperatorTable() |
PlannerConfig |
getPlannerConfig() |
Map<String,Object> |
getQueryContext() |
String |
getSqlQueryId() |
org.joda.time.DateTimeZone |
getTimeZone() |
public static final String CTX_SQL_QUERY_ID
public static final String CTX_SQL_CURRENT_TIMESTAMP
public static final String CTX_SQL_TIME_ZONE
public static final String CTX_SQL_OUTER_LIMIT
public static final String DATA_CTX_AUTHENTICATION_RESULT
public static PlannerContext create(DruidOperatorTable operatorTable, ExprMacroTable macroTable, PlannerConfig plannerConfig, Map<String,Object> queryContext, AuthenticationResult authenticationResult)
public DruidOperatorTable getOperatorTable()
public ExprMacroTable getExprMacroTable()
public PlannerConfig getPlannerConfig()
public org.joda.time.DateTime getLocalNow()
public org.joda.time.DateTimeZone getTimeZone()
public AuthenticationResult getAuthenticationResult()
public String getSqlQueryId()
public void addNativeQueryId(String queryId)
public org.apache.calcite.DataContext createDataContext(org.apache.calcite.adapter.java.JavaTypeFactory typeFactory)
Copyright © 2011–2020 The Apache Software Foundation. All rights reserved.