Class RequestContextUtils
- java.lang.Object
-
- org.apache.pinot.common.request.context.RequestContextUtils
-
public class RequestContextUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExpressionContextgetExpression(String expression)Converts the given string expression into anExpressionContext.static ExpressionContextgetExpression(Expression thriftExpression)Converts the given ThriftExpressioninto anExpressionContext.static FilterContextgetFilter(ExpressionContext filterExpression)Converts the given filterExpressionContextinto aFilterContext.static FilterContextgetFilter(FunctionContext filterFunction)static FilterContextgetFilter(Expression thriftExpression)Converts the given ThriftExpressioninto aFilterContext.static FilterContextgetFilter(Function thriftFunction)static FunctionContextgetFunction(Function thriftFunction)Converts the given ThriftFunctioninto aFunctionContext.
-
-
-
Method Detail
-
getExpression
public static ExpressionContext getExpression(String expression)
Converts the given string expression into anExpressionContext.
-
getExpression
public static ExpressionContext getExpression(Expression thriftExpression)
Converts the given ThriftExpressioninto anExpressionContext.
-
getFunction
public static FunctionContext getFunction(Function thriftFunction)
Converts the given ThriftFunctioninto 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. We also update boolean predicates that are missing an EQUALS filter operator.
-
getFilter
public static FilterContext getFilter(Function thriftFunction)
-
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. We also update boolean predicates that are missing an EQUALS filter operator.
-
getFilter
public static FilterContext getFilter(FunctionContext filterFunction)
-
-