本文整理汇总了Java中org.apache.giraph.worker.WorkerGlobalCommUsage类的典型用法代码示例。如果您正苦于以下问题:Java WorkerGlobalCommUsage类的具体用法?Java WorkerGlobalCommUsage怎么用?Java WorkerGlobalCommUsage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
WorkerGlobalCommUsage类属于org.apache.giraph.worker包,在下文中一共展示了WorkerGlobalCommUsage类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialize
import org.apache.giraph.worker.WorkerGlobalCommUsage; //导入依赖的package包/类
@Override
public void initialize(GraphState graphState,
WorkerClientRequestProcessor<LongWritable, ARPVertexValue, NullWritable>
workerClientRequestProcessor,
GraphTaskManager<LongWritable, ARPVertexValue, NullWritable>
graphTaskManager,
WorkerGlobalCommUsage workerGlobalCommUsage, WorkerContext workerContext) {
super.initialize(graphState, workerClientRequestProcessor, graphTaskManager,
workerGlobalCommUsage, workerContext);
this.k =
getConf().getInt(NUMBER_OF_PARTITIONS, DEFAULT_NUMBER_OF_PARTITIONS);
this.stableThreshold = getConf()
.getInt(NUMBER_OF_STABLE_ITERATIONS, DEFAULT_NUMBER_OF_STABLE_ITERATIONS);
this.capacityThreshold =
getConf().getFloat(CAPACITY_THRESHOLD, DEFAULT_CAPACITY_THRESHOLD);
this.totalPartitionCapacity = getTotalCapacity();
this.isPartitioned = getConf()
.getBoolean(ARPTextVertexInputFormat.PARTITIONED_INPUT,
ARPTextVertexInputFormat.DEFAULT_PARTITIONED_INPUT);
this.seed = getConf().getLong(SEED, DEFAULT_SEED);
if (seed != 0) {
random = new Random(seed);
} else {
random = new Random();
}
}
示例2: initialize
import org.apache.giraph.worker.WorkerGlobalCommUsage; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void initialize(GraphState graphState,
WorkerClientRequestProcessor<LongWritable, DiffusionVertexValue,
NullWritable> workerClientRequestProcessor,
GraphTaskManager<LongWritable, DiffusionVertexValue, NullWritable>
graphTaskManager,
WorkerGlobalCommUsage workerGlobalCommUsage, WorkerContext workerContext) {
this.k = getConf().getInt(NUMBER_OF_CLUSTERS, DEFAULT_NUMBER_OF_CLUSTERS);
this.secondaryLoadFactor =
getConf().getDouble(SECONDARY_LOAD_FACTOR, DEFAULT_SECONDARY_LOAD_FACTOR);
super.initialize(graphState, workerClientRequestProcessor, graphTaskManager,
workerGlobalCommUsage, workerContext);
}
示例3: initialize
import org.apache.giraph.worker.WorkerGlobalCommUsage; //导入依赖的package包/类
@Override
public void initialize(GraphState graphState,
WorkerClientRequestProcessor<LongWritable, LPVertexValue, NullWritable>
workerClientRequestProcessor,
GraphTaskManager<LongWritable, LPVertexValue, NullWritable>
graphTaskManager,
WorkerGlobalCommUsage workerGlobalCommUsage, WorkerContext workerContext) {
super.initialize(graphState, workerClientRequestProcessor, graphTaskManager,
workerGlobalCommUsage, workerContext);
this.stabilizationRounds = getConf()
.getLong(STABILISATION_ROUNDS, DEFAULT_NUMBER_OF_STABILIZATION_ROUNDS);
}
示例4: initialize
import org.apache.giraph.worker.WorkerGlobalCommUsage; //导入依赖的package包/类
@Override
public void initialize(GraphState graphState, WorkerClientRequestProcessor<Text, DoubleWritable, Text> workerClientRequestProcessor, GraphTaskManager<Text, DoubleWritable, Text> graphTaskManager, WorkerGlobalCommUsage workerGlobalCommUsage, WorkerContext workerContext) {
super.initialize(graphState, workerClientRequestProcessor, graphTaskManager, workerGlobalCommUsage, workerContext);
DGALoggingUtil.setDGALogLevel(this.getConf());
}
示例5: initialize
import org.apache.giraph.worker.WorkerGlobalCommUsage; //导入依赖的package包/类
@Override
public void initialize(GraphState graphState, WorkerClientRequestProcessor<Text, LouvainNodeState, LongWritable> workerClientRequestProcessor, GraphTaskManager<Text, LouvainNodeState, LongWritable> graphTaskManager, WorkerGlobalCommUsage workerGlobalCommUsage, WorkerContext workerContext) {
super.initialize(graphState, workerClientRequestProcessor, graphTaskManager, workerGlobalCommUsage, workerContext);
DGALoggingUtil.setDGALogLevel(this.getConf());
}
示例6: initialize
import org.apache.giraph.worker.WorkerGlobalCommUsage; //导入依赖的package包/类
@Override
public void initialize(GraphState graphState, WorkerClientRequestProcessor<Text, Text, Text> workerClientRequestProcessor, GraphTaskManager<Text, Text, Text> graphTaskManager, WorkerGlobalCommUsage workerGlobalCommUsage, WorkerContext workerContext) {
super.initialize(graphState, workerClientRequestProcessor, graphTaskManager, workerGlobalCommUsage, workerContext);
DGALoggingUtil.setDGALogLevel(getConf());
}
示例7: initialize
import org.apache.giraph.worker.WorkerGlobalCommUsage; //导入依赖的package包/类
@Override
public void initialize(GraphState graphState, WorkerClientRequestProcessor<Text, VertexData, Text> workerClientRequestProcessor, GraphTaskManager<Text, VertexData, Text> graphTaskManager, WorkerGlobalCommUsage workerGlobalCommUsage, WorkerContext workerContext) {
super.initialize(graphState, workerClientRequestProcessor, graphTaskManager, workerGlobalCommUsage, workerContext);
DGALoggingUtil.setDGALogLevel(this.getConf());
}
示例8: initialize
import org.apache.giraph.worker.WorkerGlobalCommUsage; //导入依赖的package包/类
@Override
public void initialize(GraphState graphState, WorkerClientRequestProcessor<Text, Text, Text> workerClientRequestProcessor, GraphTaskManager<Text, Text, Text> graphTaskManager, WorkerGlobalCommUsage workerGlobalCommUsage, WorkerContext workerContext) {
super.initialize(graphState, workerClientRequestProcessor, graphTaskManager, workerGlobalCommUsage, workerContext);
DGALoggingUtil.setDGALogLevel(this.getConf());
}