Class GiraphVertexIdManagerImpl<OID_T extends org.apache.hadoop.io.WritableComparable,GRAPE_OID_T,GRAPE_VID_T,GRAPE_VDATA_T,GRAPE_EDATA_T>
- java.lang.Object
-
- com.alibaba.graphscope.graph.impl.GiraphVertexIdManagerImpl<OID_T,GRAPE_OID_T,GRAPE_VID_T,GRAPE_VDATA_T,GRAPE_EDATA_T>
-
- Type Parameters:
OID_T
- giraph vertex id typeGRAPE_OID_T
- grape vertex oidGRAPE_VID_T
- grape vertex vidGRAPE_VDATA_T
- grape vertex dataGRAPE_EDATA_T
- grape edge data
- All Implemented Interfaces:
GiraphVertexIdManager<GRAPE_VID_T,OID_T>
,VertexIdManager<GRAPE_VID_T,OID_T>
public class GiraphVertexIdManagerImpl<OID_T extends org.apache.hadoop.io.WritableComparable,GRAPE_OID_T,GRAPE_VID_T,GRAPE_VDATA_T,GRAPE_EDATA_T> extends Object implements GiraphVertexIdManager<GRAPE_VID_T,OID_T>
Default implementation for vertexId management.
-
-
Constructor Summary
Constructors Constructor Description GiraphVertexIdManagerImpl(IFragment<GRAPE_OID_T,GRAPE_VID_T,GRAPE_VDATA_T,GRAPE_EDATA_T> fragment, long vertexNum, ImmutableClassesGiraphConfiguration<OID_T,?,?> conf)
To provide giraph users with all oids, we need to get all oids out of c++ memory, then let java read the stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OID_T
lid2Oid(GRAPE_VID_T lid)
GRAPE_VID_T
oid2Lid(OID_T oid)
-
-
-
Constructor Detail
-
GiraphVertexIdManagerImpl
public GiraphVertexIdManagerImpl(IFragment<GRAPE_OID_T,GRAPE_VID_T,GRAPE_VDATA_T,GRAPE_EDATA_T> fragment, long vertexNum, ImmutableClassesGiraphConfiguration<OID_T,?,?> conf)
To provide giraph users with all oids, we need to get all oids out of c++ memory, then let java read the stream.- Parameters:
fragment
- fragmentvertexNum
- number of verticesconf
- configuration to use.
-
-
Method Detail
-
lid2Oid
public OID_T lid2Oid(GRAPE_VID_T lid)
- Specified by:
lid2Oid
in interfaceVertexIdManager<OID_T extends org.apache.hadoop.io.WritableComparable,GRAPE_OID_T>
-
oid2Lid
public GRAPE_VID_T oid2Lid(OID_T oid)
- Specified by:
oid2Lid
in interfaceVertexIdManager<OID_T extends org.apache.hadoop.io.WritableComparable,GRAPE_OID_T>
-
-