Package org.apache.calcite.adapter.spark
Enum SparkMethod
- java.lang.Object
-
- java.lang.Enum<SparkMethod>
-
- org.apache.calcite.adapter.spark.SparkMethod
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SparkMethod>
public enum SparkMethod extends java.lang.Enum<SparkMethod>
Built-in methods in the Spark adapter.- See Also:
BuiltInMethod
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAY_TO_RDD
AS_ENUMERABLE
CREATE_RDD
FLAT_MAP_FUNCTION_CALL
GET_SPARK_CONTEXT
RDD_FLAT_MAP
-
Field Summary
Fields Modifier and Type Field Description private static java.util.HashMap<java.lang.reflect.Method,SparkMethod>
MAP
java.lang.reflect.Method
method
-
Constructor Summary
Constructors Modifier Constructor Description private
SparkMethod(java.lang.Class clazz, java.lang.String methodName, java.lang.Class... argumentTypes)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SparkMethod
lookup(java.lang.reflect.Method method)
static SparkMethod
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SparkMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AS_ENUMERABLE
public static final SparkMethod AS_ENUMERABLE
-
ARRAY_TO_RDD
public static final SparkMethod ARRAY_TO_RDD
-
CREATE_RDD
public static final SparkMethod CREATE_RDD
-
GET_SPARK_CONTEXT
public static final SparkMethod GET_SPARK_CONTEXT
-
RDD_FLAT_MAP
public static final SparkMethod RDD_FLAT_MAP
-
FLAT_MAP_FUNCTION_CALL
public static final SparkMethod FLAT_MAP_FUNCTION_CALL
-
-
Field Detail
-
method
public final java.lang.reflect.Method method
-
MAP
private static final java.util.HashMap<java.lang.reflect.Method,SparkMethod> MAP
-
-
Method Detail
-
values
public static SparkMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SparkMethod c : SparkMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SparkMethod valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
lookup
public static SparkMethod lookup(java.lang.reflect.Method method)
-
-