Class RescaleMappings
- java.lang.Object
-
- org.apache.flink.runtime.checkpoint.RescaleMappings
-
- All Implemented Interfaces:
Serializable
public class RescaleMappings extends Object implements Serializable
Contains the fine-grain channel mappings that occur when a connected operator has been rescaled.Usually the mapping is materialized from new->old channel/subtask indexes. Through
invert(), the direction may change accordingly. To generalize, the left side is called source and the right side is called target(s) in this class.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static RescaleMappingsSYMMETRIC_IDENTITY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Set<Integer>getAmbiguousTargets()int[]getMappedIndexes(int sourceIndex)inthashCode()static RescaleMappingsidentity(int numberOfSources, int numberOfTargets)RescaleMappingsinvert()booleanisIdentity()static RescaleMappingsof(Stream<int[]> mappedTargets, int numberOfTargets)StringtoString()
-
-
-
Field Detail
-
SYMMETRIC_IDENTITY
public static final RescaleMappings SYMMETRIC_IDENTITY
-
-
Method Detail
-
identity
public static RescaleMappings identity(int numberOfSources, int numberOfTargets)
-
isIdentity
public boolean isIdentity()
-
getMappedIndexes
public int[] getMappedIndexes(int sourceIndex)
-
invert
public RescaleMappings invert()
-
of
public static RescaleMappings of(Stream<int[]> mappedTargets, int numberOfTargets)
-
-