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 StringSELECT_ALL_CHARstatic StringSELECT_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()intgetNumberOfKeyFields()TypeInformation<?>[]getOriginalKeyFieldTypes()static booleanisSortKey(int fieldPos, TypeInformation<?> type)static booleanisSortKey(String fieldExpr, TypeInformation<?> type)StringtoString()<E> voidvalidateCustomPartitioner(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:
getNumberOfKeyFieldsin classKeys<T>
-
computeLogicalKeyPositions
public int[] computeLogicalKeyPositions()
- Specified by:
computeLogicalKeyPositionsin classKeys<T>
-
getKeyFieldTypes
public TypeInformation<?>[] getKeyFieldTypes()
- Specified by:
getKeyFieldTypesin classKeys<T>
-
getOriginalKeyFieldTypes
public TypeInformation<?>[] getOriginalKeyFieldTypes()
- Specified by:
getOriginalKeyFieldTypesin classKeys<T>
-
validateCustomPartitioner
public <E> void validateCustomPartitioner(Partitioner<E> partitioner, TypeInformation<E> typeInfo)
- Specified by:
validateCustomPartitionerin classKeys<T>
-
isSortKey
public static boolean isSortKey(int fieldPos, TypeInformation<?> type)
-
isSortKey
public static boolean isSortKey(String fieldExpr, TypeInformation<?> type)
-
-