Class RequestUtils
- java.lang.Object
-
- org.apache.pinot.common.utils.request.RequestUtils
-
public class RequestUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcanonicalizeFunctionName(String functionName)Converts the function name into its canonical form.static StringcanonicalizeFunctionNamePreservingSpecialKey(String functionName)Converts the function name into its canonical form, but preserving the special keys.static ExpressioncreateNewLiteralExpression()static ExpressiongetFunctionExpression(String canonicalName)static ExpressiongetIdentifierExpression(String identifier)static ExpressiongetLiteralExpression(boolean value)static ExpressiongetLiteralExpression(byte[] value)static ExpressiongetLiteralExpression(double value)static ExpressiongetLiteralExpression(long value)static ExpressiongetLiteralExpression(Object object)static ExpressiongetLiteralExpression(String value)static ExpressiongetLiteralExpression(org.apache.calcite.sql.SqlLiteral node)static StringgetTableName(PinotQuery pinotQuery)static StringprettyPrint(Expression expression)
-
-
-
Method Detail
-
getIdentifierExpression
public static Expression getIdentifierExpression(String identifier)
-
getLiteralExpression
public static Expression getLiteralExpression(org.apache.calcite.sql.SqlLiteral node)
-
createNewLiteralExpression
public static Expression createNewLiteralExpression()
-
getLiteralExpression
public static Expression getLiteralExpression(boolean value)
-
getLiteralExpression
public static Expression getLiteralExpression(long value)
-
getLiteralExpression
public static Expression getLiteralExpression(double value)
-
getLiteralExpression
public static Expression getLiteralExpression(String value)
-
getLiteralExpression
public static Expression getLiteralExpression(byte[] value)
-
getLiteralExpression
public static Expression getLiteralExpression(Object object)
-
getFunctionExpression
public static Expression getFunctionExpression(String canonicalName)
-
canonicalizeFunctionName
public static String canonicalizeFunctionName(String functionName)
Converts the function name into its canonical form.
-
canonicalizeFunctionNamePreservingSpecialKey
public static String canonicalizeFunctionNamePreservingSpecialKey(String functionName)
Converts the function name into its canonical form, but preserving the special keys. - Keep FilterKind.name() as is because we need to read the FilterKind via FilterKind.valueOf(). - Keep ST_Distance as is because we use exact match when applying geo-spatial index up to release 0.10.0. TODO: Remove the ST_Distance special handling after releasing 0.11.0.
-
prettyPrint
public static String prettyPrint(Expression expression)
-
getTableName
public static String getTableName(PinotQuery pinotQuery)
-
-