* @return the key-group to which the given key is assigned */ public static int assignToKeyGroup(Object key, int maxParallelism) { Preconditions.checkNotNull(key, "Assigned key must not be null!"); return computeKeyGroupForKeyHash(key.hashCode(), maxParallelism); } 可以看到具体的hash 方...
public static int assignKeyToParallelOperator(Object key, int maxParallelism, int parallelism) { Preconditions.checkNotNull(key, "Assigned key must not be null!"); return computeOperatorIndexForKeyGroup(maxParallelism, parallelism, assignToKeyGroup(key, maxParallelism)); } /** *根据key分配一个分...
returncomputeOperatorIndexForKeyGroup( maxParallelism,parallelism,assignToKeyGroup(key,maxParallelism)); } // 第一次hash publicstaticintassignToKeyGroup(Objectkey,intmaxParallelism) { Preconditions.checkNotNull(key,"Assigned key must not be null!"); returncomputeKeyGroupForKeyHash(key.hashCode(),max...
public static int assignToKeyGroup(Object key, int maxParallelism) { Preconditions.checkNotNull(key, "Assigned key must not be null!"); return computeKeyGroupForKeyHash(key.hashCode(), maxParallelism); } public static int computeOperatorIndexForKeyGroup(int maxParallelism, intparallelism, int key...
* @return the key-group to which the given key is assigned */publicstaticintassignToKeyGroup(Object key,int maxParallelism){Preconditions.checkNotNull(key,"Assigned key must not be null!");returncomputeKeyGroupForKeyHash(key.hashCode(),maxParallelism);}/** ...
Key Group计算方法对应源码 KeyGroupRangeAssignment中的计算过程主要涉及以下三个方法 publicstaticintassignKeyToParallelOperator(Objectkey, int maxParallelism, int parallelism) {Preconditions.checkNotNull(key,"Assigned key must not be null!");returncomputeOperatorIndexForKeyGroup(maxParallelism, parallelism,assi...
* @return the key-group to which the given key is assigned */publicstaticintassignToKeyGroup(Objectkey,intmaxParallelism){Preconditions.checkNotNull(key,"Assigned key must not be null!");returncomputeKeyGroupForKeyHash(key.hashCode(),maxParallelism);}/** ...
* 根据key分配一个并行算子实例的索引,该索引即为该key要发送的下游算子实例的路由信息, * 即该key发送到哪一个task */publicstaticintassignKeyToParallelOperator(Object key,intmaxParallelism,intparallelism){Preconditions.checkNotNull(key,"Assigned key must not be null!");returncomputeOperatorIndexForKeyGrou...
{ Preconditions.checkNotNull(key, "Assigned key must not be null!"); return computeKeyGroupForKeyHash(key.hashCode(), maxParallelism); } /** * Assigns the given key to a key-group index. * * @param keyHash the hash of the key to assign * @param maxParallelism the maximum supported...
For a dimension table, connect the name of each partition key column and the related partition value with an equal sign (=). Each partition value must be a fixed value. For a source table, connect the name of each partition key column and the related partition value with an equal sign...