public static class PTE.TriangleListingMapper extends PTE.TriangleCountingMapper
Constructor and Description |
---|
TriangleListingMapper() |
Modifier and Type | Method and Description |
---|---|
protected long |
enumTri(int[][] ij,
int[][] ik,
int[][] jk,
int i,
int j,
int k)
Listing triangles.
|
protected void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context)
setup before execution.
|
availableMemoryBytes, map
protected void setup(org.apache.hadoop.mapreduce.Mapper.Context context) throws java.io.IOException, java.lang.InterruptedException
setup
in class PTE.TriangleCountingMapper
context
- of hadoopjava.io.IOException
- by hadoopjava.lang.InterruptedException
- by hadoopprotected long enumTri(int[][] ij, int[][] ik, int[][] jk, int i, int j, int k) throws java.io.IOException, java.lang.InterruptedException
enumTri
in class PTE.TriangleCountingMapper
ij
- adjacency list of an edge setik
- adjacency list of an edge setjk
- adjacency list of an edge seti
- the first node colorj
- the second node colork
- the last node colorjava.io.IOException
- by hadoopjava.lang.InterruptedException
- by hadoop