public class RescaleMappings extends Object implements Serializable
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.
Modifier and Type | Field and Description |
---|---|
static RescaleMappings |
SYMMETRIC_IDENTITY |
Modifier and Type | Method and 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(java.util.stream.Stream<int[]> mappedTargets,
int numberOfTargets) |
String |
toString() |
public static final RescaleMappings SYMMETRIC_IDENTITY
public static RescaleMappings identity(int numberOfSources, int numberOfTargets)
public boolean isIdentity()
public int[] getMappedIndexes(int sourceIndex)
public RescaleMappings invert()
public static RescaleMappings of(java.util.stream.Stream<int[]> mappedTargets, int numberOfTargets)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.