Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public static synchronized ComputerOptions instance() {
"targetId to identify it.",
allowValues("SINGLE", "SINGLE_PER_LABEL", "MULTIPLE"),
EdgeFrequency::valueOf,
"SINGLE"
"MULTIPLE"
);

public static final ConfigOption<Integer> INPUT_MAX_EDGES_IN_ONE_VERTEX =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ public void setup() {
ComputerOptions.WORKER_WAIT_FINISH_MESSAGES_TIMEOUT, "1000",
ComputerOptions.INPUT_MAX_EDGES_IN_ONE_VERTEX, "10",
ComputerOptions.WORKER_COMPUTATION_CLASS,
MockComputation.class.getName()
MockComputation.class.getName(),
ComputerOptions.INPUT_EDGE_FREQ, "SINGLE"
);

this.managers = new Managers();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ public void testWriteVertex() throws IOException {
public void testWriteVertexWithEdgeFreq() throws IOException {
GraphFactory graphFactory = context.graphFactory();

WriteBuffer buffer = new WriteBuffer(context, 100, 110);
Vertex vertex = graphFactory.createVertex(BytesId.of(1L),
new DoubleValue(0.5d));
vertex.addEdge(graphFactory.createEdge(BytesId.of(2L)));
Expand All @@ -152,9 +151,11 @@ public void testWriteVertexWithEdgeFreq() throws IOException {
vertex.addEdge(graphFactory.createEdge("watch", "2222",
BytesId.of(4L)));

WriteBuffer buffer;
UnitTestBase.updateOptions(
ComputerOptions.INPUT_EDGE_FREQ, "SINGLE"
);
buffer = new WriteBuffer(ComputerContext.instance(), 100, 110);
buffer.writeEdges(vertex);
long position1 = buffer.output().position();
Assert.assertGt(0L, position1);
Expand Down