SimplePageRankVertex.SimplePageRankVertexInputFormat.class);
conf.setWorkerContextClass(
PartitionContextTestVertex.TestPartitionContextWorkerContext.class);
conf.setPartitionContextClass(
PartitionContextTestVertex.TestPartitionContextPartitionContext.class);
GiraphJob job = prepareJob(getCallingMethodName(), conf);
// Use multithreading
job.getConfiguration().setNumComputeThreads(
PartitionContextTestVertex.NUM_COMPUTE_THREADS);
// Increase the number of vertices
job.getConfiguration().setInt(
GeneratedVertexReader.READER_VERTICES,
PartitionContextTestVertex.NUM_VERTICES);
// Increase the number of partitions
GiraphConstants.USER_PARTITION_COUNT.set(job.getConfiguration(),
PartitionContextTestVertex.NUM_PARTITIONS);
assertTrue(job.run(true));
}