public class EdgeFactory extends Object
Modifier and Type | Method and Description |
---|---|
static <I extends org.apache.hadoop.io.WritableComparable> |
create(I id)
Create an edge pointing to a given ID without a value
|
static <I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable> |
create(I id,
E value)
Create an edge pointing to a given ID with a value
|
static <I extends org.apache.hadoop.io.WritableComparable> |
createReusable(I id)
Create a reusable edge pointing to a given ID with a value
|
static <I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable> |
createReusable(I id,
E value)
Create a reusable edge pointing to a given ID with a value
|
public static <I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable> Edge<I,E> create(I id, E value)
I
- Vertex ID typeE
- Edge Value typeid
- target IDvalue
- edge valuepublic static <I extends org.apache.hadoop.io.WritableComparable> Edge<I,org.apache.hadoop.io.NullWritable> create(I id)
I
- Vertex ID typeid
- target IDpublic static <I extends org.apache.hadoop.io.WritableComparable,E extends org.apache.hadoop.io.Writable> ReusableEdge<I,E> createReusable(I id, E value)
I
- Vertex ID typeE
- Edge Value typeid
- target IDvalue
- edge valuepublic static <I extends org.apache.hadoop.io.WritableComparable> ReusableEdge<I,org.apache.hadoop.io.NullWritable> createReusable(I id)
I
- Vertex ID typeid
- target IDCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.