Class Keys.ExpressionKeys<T>
- java.lang.Object
-
- org.apache.flink.api.common.operators.Keys<T>
-
- org.apache.flink.api.common.operators.Keys.ExpressionKeys<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.flink.api.common.operators.Keys
Keys.ExpressionKeys<T>, Keys.IncompatibleKeysException, Keys.SelectorFunctionKeys<T,K>
-
-
Field Summary
Fields Modifier and Type Field Description static String
SELECT_ALL_CHAR
static String
SELECT_ALL_CHAR_SCALA
-
Constructor Summary
Constructors Constructor Description ExpressionKeys(int[] keyPositions, TypeInformation<T> type)
Create int-based (non-nested) field position keys on a tuple type.ExpressionKeys(int[] keyPositions, TypeInformation<T> type, boolean allowEmpty)
Create int-based (non-nested) field position keys on a tuple type.ExpressionKeys(int keyPosition, TypeInformation<T> type)
Create int-based (non-nested) field position keys on a tuple type.ExpressionKeys(String[] keyExpressions, TypeInformation<T> type)
Create String-based (nested) field expression keys on a composite type.ExpressionKeys(String keyExpression, TypeInformation<T> type)
Create String-based (nested) field expression keys on a composite type.ExpressionKeys(TypeInformation<T> type)
ExpressionKeys that is defined by the full data type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int[]
computeLogicalKeyPositions()
TypeInformation<?>[]
getKeyFieldTypes()
int
getNumberOfKeyFields()
TypeInformation<?>[]
getOriginalKeyFieldTypes()
static boolean
isSortKey(int fieldPos, TypeInformation<?> type)
static boolean
isSortKey(String fieldExpr, TypeInformation<?> type)
String
toString()
<E> void
validateCustomPartitioner(Partitioner<E> partitioner, TypeInformation<E> typeInfo)
-
Methods inherited from class org.apache.flink.api.common.operators.Keys
areCompatible, isEmpty
-
-
-
-
Field Detail
-
SELECT_ALL_CHAR
public static final String SELECT_ALL_CHAR
- See Also:
- Constant Field Values
-
SELECT_ALL_CHAR_SCALA
public static final String SELECT_ALL_CHAR_SCALA
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ExpressionKeys
public ExpressionKeys(TypeInformation<T> type)
ExpressionKeys that is defined by the full data type.
-
ExpressionKeys
public ExpressionKeys(int keyPosition, TypeInformation<T> type)
Create int-based (non-nested) field position keys on a tuple type.
-
ExpressionKeys
public ExpressionKeys(int[] keyPositions, TypeInformation<T> type)
Create int-based (non-nested) field position keys on a tuple type.
-
ExpressionKeys
public ExpressionKeys(int[] keyPositions, TypeInformation<T> type, boolean allowEmpty)
Create int-based (non-nested) field position keys on a tuple type.
-
ExpressionKeys
public ExpressionKeys(String keyExpression, TypeInformation<T> type)
Create String-based (nested) field expression keys on a composite type.
-
ExpressionKeys
public ExpressionKeys(String[] keyExpressions, TypeInformation<T> type)
Create String-based (nested) field expression keys on a composite type.
-
-
Method Detail
-
getNumberOfKeyFields
public int getNumberOfKeyFields()
- Specified by:
getNumberOfKeyFields
in classKeys<T>
-
computeLogicalKeyPositions
public int[] computeLogicalKeyPositions()
- Specified by:
computeLogicalKeyPositions
in classKeys<T>
-
getKeyFieldTypes
public TypeInformation<?>[] getKeyFieldTypes()
- Specified by:
getKeyFieldTypes
in classKeys<T>
-
getOriginalKeyFieldTypes
public TypeInformation<?>[] getOriginalKeyFieldTypes()
- Specified by:
getOriginalKeyFieldTypes
in classKeys<T>
-
validateCustomPartitioner
public <E> void validateCustomPartitioner(Partitioner<E> partitioner, TypeInformation<E> typeInfo)
- Specified by:
validateCustomPartitioner
in classKeys<T>
-
isSortKey
public static boolean isSortKey(int fieldPos, TypeInformation<?> type)
-
isSortKey
public static boolean isSortKey(String fieldExpr, TypeInformation<?> type)
-
-