当前位置: 首页>>代码示例>>Java>>正文


Java DefaultMasterCompute类代码示例

本文整理汇总了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;
}
 
开发者ID:zfighter,项目名称:giraph-research,代码行数:25,代码来源:GiraphClasses.java

示例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;
}
 
开发者ID:renato2099,项目名称:giraph-gora,代码行数:30,代码来源:GiraphClasses.java


注:本文中的org.apache.giraph.master.DefaultMasterCompute类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。