public class EnumUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static List<String> |
LEFT_RIGHT |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.calcite.linq4j.tree.MethodCallExpression |
call(Class clazz,
String methodName,
List<? extends org.apache.calcite.linq4j.tree.Expression> arguments) |
static org.apache.calcite.linq4j.tree.MethodCallExpression |
call(Class clazz,
String methodName,
List<? extends org.apache.calcite.linq4j.tree.Expression> arguments,
org.apache.calcite.linq4j.tree.Expression targetExpression)
The powerful version of {@code org.apache.calcite.linq4j.tree.Expressions#call(
Type, String, Iterable
|
static org.apache.calcite.linq4j.tree.Expression |
convert(org.apache.calcite.linq4j.tree.Expression operand,
Type toType)
Convert
operand to target type toType. |
static org.apache.calcite.linq4j.tree.Expression |
convert(org.apache.calcite.linq4j.tree.Expression operand,
Type fromType,
Type toType)
Convert
operand to target type toType. |
static <T> T |
evaluate(Object o,
Class<T> clazz)
Converts a value to a given class.
|
static org.apache.calcite.linq4j.tree.Expression |
generateCollatorExpression(SqlCollation collation) |
static org.apache.calcite.linq4j.Enumerable<Object[]> |
hopping(org.apache.calcite.linq4j.Enumerator<Object[]> inputEnumerator,
int indexOfWatermarkedColumn,
long emitFrequency,
long windowSize,
long offset)
Create enumerable implementation that applies hopping on each element from the input
enumerator and produces at least one element for each input element.
|
static org.apache.calcite.linq4j.tree.MethodDeclaration |
overridingMethodDecl(Method method,
Iterable<org.apache.calcite.linq4j.tree.ParameterExpression> parameters,
org.apache.calcite.linq4j.tree.BlockStatement body)
Declares a method that overrides another method.
|
static org.apache.calcite.linq4j.Enumerable<Object[]> |
sessionize(org.apache.calcite.linq4j.Enumerator<Object[]> inputEnumerator,
int indexOfWatermarkedColumn,
int indexOfKeyColumn,
long gap)
Creates enumerable implementation that applies sessionization to elements from the input
enumerator based on a specified key.
|
static <TSource,TResult> |
tumbling(org.apache.calcite.linq4j.Enumerable<TSource> inputEnumerable,
org.apache.calcite.linq4j.function.Function1<TSource,TResult> outSelector)
Apply tumbling per row from the enumerable input.
|
public static org.apache.calcite.linq4j.tree.MethodDeclaration overridingMethodDecl(Method method, Iterable<org.apache.calcite.linq4j.tree.ParameterExpression> parameters, org.apache.calcite.linq4j.tree.BlockStatement body)
public static org.apache.calcite.linq4j.tree.Expression convert(org.apache.calcite.linq4j.tree.Expression operand,
Type toType)
operand to target type toType.operand - The expression to converttoType - Target typetoType or original if there
is no need to convertpublic static org.apache.calcite.linq4j.tree.Expression convert(org.apache.calcite.linq4j.tree.Expression operand,
Type fromType,
Type toType)
operand to target type toType.operand - The expression to convertfromType - Field typetoType - Target typetoType or original if there
is no need to convertpublic static org.apache.calcite.linq4j.tree.MethodCallExpression call(Class clazz, String methodName, List<? extends org.apache.calcite.linq4j.tree.Expression> arguments)
public static org.apache.calcite.linq4j.tree.MethodCallExpression call(Class clazz, String methodName, List<? extends org.apache.calcite.linq4j.tree.Expression> arguments, org.apache.calcite.linq4j.tree.Expression targetExpression)
org.apache.calcite.linq4j.tree.Expressions#call(
Type, String, Iterable<? extends Expression>). Try best effort to convert the
accepted arguments to match parameter type.clazz - Class against which method is invokedmethodName - Name of methodarguments - argument expressionstargetExpression - target expressionRuntimeException - if no suitable method foundpublic static org.apache.calcite.linq4j.Enumerable<Object[]> sessionize(org.apache.calcite.linq4j.Enumerator<Object[]> inputEnumerator, int indexOfWatermarkedColumn, int indexOfKeyColumn, long gap)
public static org.apache.calcite.linq4j.Enumerable<Object[]> hopping(org.apache.calcite.linq4j.Enumerator<Object[]> inputEnumerator, int indexOfWatermarkedColumn, long emitFrequency, long windowSize, long offset)
public static <TSource,TResult> org.apache.calcite.linq4j.Enumerable<TResult> tumbling(org.apache.calcite.linq4j.Enumerable<TSource> inputEnumerable,
org.apache.calcite.linq4j.function.Function1<TSource,TResult> outSelector)
public static org.apache.calcite.linq4j.tree.Expression generateCollatorExpression(SqlCollation collation)
Copyright © 2012-2020 Apache Software Foundation. All Rights Reserved.