Giraph中的分区数目计算

来源:互联网 发布:淘宝退款要多久 编辑:程序博客网 时间:2024/06/04 00:29

在PartitionUtils类的computePartitionCount函数中:

    if (userPartitionCount == USER_PARTITION_COUNT.getDefaultValue()) {      float multiplier = GiraphConstants.PARTITION_COUNT_MULTIPLIER.get(conf);      partitionCount =          Math.max((int) (multiplier * availableWorkerInfos.size() *              availableWorkerInfos.size()),//        1),              1);    } else {      partitionCount = userPartitionCount;    }


原创粉丝点击