Class Keys<T>
- java.lang.Object
-
- org.apache.flink.api.common.operators.Keys<T>
-
- Direct Known Subclasses:
Keys.ExpressionKeys,Keys.SelectorFunctionKeys
@Internal public abstract class Keys<T> extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeys.ExpressionKeys<T>Represents (nested) field access through string and integer-based keysstatic classKeys.IncompatibleKeysExceptionstatic classKeys.SelectorFunctionKeys<T,K>
-
Constructor Summary
Constructors Constructor Description Keys()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanareCompatible(Keys<?> other)Check if two sets of keys are compatible to each other (matching types, key counts)abstract int[]computeLogicalKeyPositions()abstract TypeInformation<?>[]getKeyFieldTypes()abstract intgetNumberOfKeyFields()abstract TypeInformation<?>[]getOriginalKeyFieldTypes()booleanisEmpty()abstract <E> voidvalidateCustomPartitioner(Partitioner<E> partitioner, TypeInformation<E> typeInfo)
-
-
-
Method Detail
-
getNumberOfKeyFields
public abstract int getNumberOfKeyFields()
-
computeLogicalKeyPositions
public abstract int[] computeLogicalKeyPositions()
-
getKeyFieldTypes
public abstract TypeInformation<?>[] getKeyFieldTypes()
-
getOriginalKeyFieldTypes
public abstract TypeInformation<?>[] getOriginalKeyFieldTypes()
-
validateCustomPartitioner
public abstract <E> void validateCustomPartitioner(Partitioner<E> partitioner, TypeInformation<E> typeInfo)
-
isEmpty
public boolean isEmpty()
-
areCompatible
public boolean areCompatible(Keys<?> other) throws Keys.IncompatibleKeysException
Check if two sets of keys are compatible to each other (matching types, key counts)- Throws:
Keys.IncompatibleKeysException
-
-