Package org.apache.giraph.lib.IdWithValueTextOutputFormat

Examples of org.apache.giraph.lib.IdWithValueTextOutputFormat.IdWithValueVertexWriter.initialize()


    // Create empty iterator == no edges
    when(vertex.iterator()).thenReturn(new ArrayList<Text>().iterator());

    RecordWriter<Text, Text> tw = mock(RecordWriter.class);
    IdWithValueVertexWriter writer = new IdWithValueVertexWriter(tw);
    writer.initialize(tac);
    writer.writeVertex(vertex);

    verify(tw).write(expected, null);
    verify(vertex, times(0)).iterator();
    verify(vertex, times(0)).getEdgeValue(Matchers.<WritableComparable>any());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.