Search in sources :

Example 1 with ChecksumHashCode

use of org.apache.flink.graph.library.metric.ChecksumHashCode in project flink by apache.

the class MaximumDegreeTest method testWithRMatGraph.

@Test
public void testWithRMatGraph() throws Exception {
    Checksum checksum = undirectedRMatGraph.run(new MaximumDegree<LongValue, NullValue, NullValue>(16)).run(new ChecksumHashCode<LongValue, NullValue, NullValue>()).execute();
    assertEquals(805, checksum.getCount());
    assertEquals(0x0000000008028b43L, checksum.getChecksum());
}
Also used : NullValue(org.apache.flink.types.NullValue) Checksum(org.apache.flink.graph.asm.dataset.ChecksumHashCode.Checksum) LongValue(org.apache.flink.types.LongValue) ChecksumHashCode(org.apache.flink.graph.library.metric.ChecksumHashCode) Test(org.junit.Test)

Aggregations

Checksum (org.apache.flink.graph.asm.dataset.ChecksumHashCode.Checksum)1 ChecksumHashCode (org.apache.flink.graph.library.metric.ChecksumHashCode)1 LongValue (org.apache.flink.types.LongValue)1 NullValue (org.apache.flink.types.NullValue)1 Test (org.junit.Test)1