Class RequestContextUtils
- java.lang.Object
-
- org.apache.pinot.common.request.context.RequestContextUtils
-
public class RequestContextUtils extends Object
-
-
Method Summary
-
-
-
Method Detail
-
getExpressionFromSQL
public static ExpressionContext getExpressionFromSQL(String sqlExpression)
Converts the given SQL expression into anExpressionContext.
-
getExpression
public static ExpressionContext getExpression(Expression thriftExpression)
Converts the given ThriftExpressioninto anExpressionContext.
-
getExpressionFromPQL
public static ExpressionContext getExpressionFromPQL(String pqlExpression)
Converts the given PQL expression into anExpressionContext.
-
getExpression
public static ExpressionContext getExpression(AstNode astNode)
Converts the givenAstNodeinto anExpressionContext.
-
getFunction
public static FunctionContext getFunction(Function thriftFunction)
Converts the given ThriftFunctioninto aFunctionContext.
-
getFunction
public static FunctionContext getFunction(FunctionCallAstNode astNode)
Converts the givenFunctionCallAstNodeinto aFunctionContext.
-
getFilter
public static FilterContext getFilter(Expression thriftExpression)
Converts the given ThriftExpressioninto aFilterContext.NOTE: Currently the query engine only accepts string literals as the right-hand side of the predicate, so we always convert the right-hand side expressions into strings.
-
getFilter
public static FilterContext getFilter(ExpressionContext filterExpression)
Converts the given filterExpressionContextinto aFilterContext.NOTE: Currently the query engine only accepts string literals as the right-hand side of the predicate, so we always convert the right-hand side expressions into strings.
-
getFilter
public static FilterContext getFilter(FilterQueryTree node)
Converts the givenFilterQueryTreeinto aFilterContext.
-
-