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_TIME_ZONE  | 
static String | 
DATA_CTX_AUTHENTICATION_RESULT  | 
| Modifier and Type | Method and Description | 
|---|---|
static PlannerContext | 
create(DruidOperatorTable operatorTable,
      ExprMacroTable macroTable,
      PlannerConfig plannerConfig,
      AuthorizerMapper authorizerMapper,
      Map<String,Object> queryContext)  | 
org.apache.calcite.DataContext | 
createDataContext(org.apache.calcite.adapter.java.JavaTypeFactory typeFactory)  | 
AuthenticationResult | 
getAuthenticationResult()  | 
ExprMacroTable | 
getExprMacroTable()  | 
org.joda.time.DateTime | 
getLocalNow()  | 
DruidOperatorTable | 
getOperatorTable()  | 
PlannerConfig | 
getPlannerConfig()  | 
Map<String,Object> | 
getQueryContext()  | 
long | 
getQueryStartTimeMillis()  | 
org.joda.time.DateTimeZone | 
getTimeZone()  | 
void | 
setAuthenticationResult(AuthenticationResult authenticationResult)  | 
public static final String CTX_SQL_CURRENT_TIMESTAMP
public static final String CTX_SQL_TIME_ZONE
public static final String DATA_CTX_AUTHENTICATION_RESULT
public static PlannerContext create(DruidOperatorTable operatorTable, ExprMacroTable macroTable, PlannerConfig plannerConfig, AuthorizerMapper authorizerMapper, Map<String,Object> queryContext)
public DruidOperatorTable getOperatorTable()
public ExprMacroTable getExprMacroTable()
public PlannerConfig getPlannerConfig()
public org.joda.time.DateTime getLocalNow()
public org.joda.time.DateTimeZone getTimeZone()
public long getQueryStartTimeMillis()
public AuthenticationResult getAuthenticationResult()
public void setAuthenticationResult(AuthenticationResult authenticationResult)
public org.apache.calcite.DataContext createDataContext(org.apache.calcite.adapter.java.JavaTypeFactory typeFactory)
Copyright © 2011–2018. All rights reserved.