本文整理汇总了Java中org.apache.giraph.master.DefaultMasterCompute类的典型用法代码示例。如果您正苦于以下问题:Java DefaultMasterCompute类的具体用法?Java DefaultMasterCompute怎么用?Java DefaultMasterCompute使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
DefaultMasterCompute类属于org.apache.giraph.master包,在下文中一共展示了DefaultMasterCompute类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: GiraphClasses
import org.apache.giraph.master.DefaultMasterCompute; //导入依赖的package包/类
/**
* Empty constructor. Initialize with default classes or null.
*/
public GiraphClasses() {
// Note: the cast to Object is required in order for javac to accept the
// downcast.
outEdgesClass = (Class<? extends OutEdges<I, E>>) (Object)
ByteArrayEdges.class;
inputOutEdgesClass = (Class<? extends OutEdges<I, E>>) (Object)
ByteArrayEdges.class;
vertexValueFactoryClass = (Class<? extends VertexValueFactory<V>>) (Object)
DefaultVertexValueFactory.class;
graphPartitionerFactoryClass =
(Class<? extends GraphPartitionerFactory<I, V, E, M>>) (Object)
HashPartitionerFactory.class;
aggregatorWriterClass = TextAggregatorWriter.class;
vertexResolverClass = (Class<? extends VertexResolver<I, V, E, M>>)
(Object) DefaultVertexResolver.class;
partitionContextClass = DefaultPartitionContext.class;
workerContextClass = DefaultWorkerContext.class;
masterComputeClass = DefaultMasterCompute.class;
partitionClass = (Class<? extends Partition<I, V, E, M>>) (Object)
SimplePartition.class;
}
示例2: GiraphClasses
import org.apache.giraph.master.DefaultMasterCompute; //导入依赖的package包/类
/**
* Empty constructor. Initialize with default classes or null.
*/
public GiraphClasses() {
// Note: the cast to Object is required in order for javac to accept the
// downcast.
computationFactoryClass = (Class<? extends ComputationFactory<I, V, E,
? extends Writable, ? extends Writable>>) (Object)
DefaultComputationFactory.class;
giraphTypes = new GiraphTypes<I, V, E>();
outEdgesClass = (Class<? extends OutEdges<I, E>>) (Object)
ByteArrayEdges.class;
inputOutEdgesClass = (Class<? extends OutEdges<I, E>>) (Object)
ByteArrayEdges.class;
graphPartitionerFactoryClass =
(Class<? extends GraphPartitionerFactory<I, V, E>>) (Object)
HashPartitionerFactory.class;
aggregatorWriterClass = TextAggregatorWriter.class;
vertexResolverClass = (Class<? extends VertexResolver<I, V, E>>)
(Object) DefaultVertexResolver.class;
workerContextClass = DefaultWorkerContext.class;
masterComputeClass = DefaultMasterCompute.class;
partitionClass = (Class<? extends Partition<I, V, E>>) (Object)
SimplePartition.class;
edgeInputFilterClass = (Class<? extends EdgeInputFilter<I, E>>)
(Object) DefaultEdgeInputFilter.class;
vertexInputFilterClass = (Class<? extends VertexInputFilter<I, V, E>>)
(Object) DefaultVertexInputFilter.class;
}