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 RescaleMappings
SYMMETRIC_IDENTITY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Set<Integer>
getAmbiguousTargets()
int[]
getMappedIndexes(int sourceIndex)
int
hashCode()
static RescaleMappings
identity(int numberOfSources, int numberOfTargets)
RescaleMappings
invert()
boolean
isIdentity()
static RescaleMappings
of(Stream<int[]> mappedTargets, int numberOfTargets)
String
toString()
-
-
-
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)
-
-