@Override public OutputCommitter getOutputCommitter(TaskAttemptContext context) throws IOException, InterruptedException { ImmutableClassesGiraphConfiguration conf = new ImmutableClassesGiraphConfiguration(context.getConfiguration()); if (!conf.hasVertexOutputFormat() && !conf.hasEdgeOutputFormat()) { LOG.warn("getOutputCommitter: Returning " + "ImmutableOutputCommiter (does nothing)."); return new ImmutableOutputCommitter(); } if (conf.hasVertexOutputFormat()) { return conf.createWrappedVertexOutputFormat().getOutputCommitter(context); } else { return conf.createWrappedEdgeOutputFormat().getOutputCommitter(context); } }
@Override public void checkOutputSpecs(JobContext context) throws IOException, InterruptedException { ImmutableClassesGiraphConfiguration conf = new ImmutableClassesGiraphConfiguration(context.getConfiguration()); if (!conf.hasVertexOutputFormat() && !conf.hasEdgeOutputFormat()) { LOG.warn("checkOutputSpecs: ImmutableOutputCommiter" + " will not check anything"); return; } if (conf.hasVertexOutputFormat()) { conf.createWrappedVertexOutputFormat().checkOutputSpecs(context); } if (conf.hasEdgeOutputFormat()) { conf.createWrappedEdgeOutputFormat().checkOutputSpecs(context); } }
numThreads + " threads"); final EdgeOutputFormat<I, V, E> edgeOutputFormat = conf.createWrappedEdgeOutputFormat();