Class VertexDataManagerImpl<VDATA_T extends org.apache.hadoop.io.Writable,GRAPE_OID_T,GRAPE_VID_T,GRAPE_VDATA_T,GRAPE_EDATA_T>
- java.lang.Object
-
- com.alibaba.graphscope.graph.impl.VertexDataManagerImpl<VDATA_T,GRAPE_OID_T,GRAPE_VID_T,GRAPE_VDATA_T,GRAPE_EDATA_T>
-
- Type Parameters:
VDATA_T
- giraph vertex data typeGRAPE_OID_T
- grape vertex oidGRAPE_VID_T
- grape vertex vidGRAPE_VDATA_T
- grape vertex dataGRAPE_EDATA_T
- grape edge data
- All Implemented Interfaces:
VertexDataManager<VDATA_T>
public class VertexDataManagerImpl<VDATA_T extends org.apache.hadoop.io.Writable,GRAPE_OID_T,GRAPE_VID_T,GRAPE_VDATA_T,GRAPE_EDATA_T> extends Object implements VertexDataManager<VDATA_T>
Default implementation for vertex data management. Basically we retrieve all vdata from c++ fragment, and store in a java list.
-
-
Constructor Summary
Constructors Constructor Description VertexDataManagerImpl(IFragment<GRAPE_OID_T,GRAPE_VID_T,GRAPE_VDATA_T,GRAPE_EDATA_T> fragment, long vertexNum, ImmutableClassesGiraphConfiguration<?,VDATA_T,?> configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VDATA_T
getVertexData(long lid)
void
setVertexData(long lid, VDATA_T vertexData)
When set a value, we don't know this param will or will not be reused, so copy the value.
-
-
-
Constructor Detail
-
VertexDataManagerImpl
public VertexDataManagerImpl(IFragment<GRAPE_OID_T,GRAPE_VID_T,GRAPE_VDATA_T,GRAPE_EDATA_T> fragment, long vertexNum, ImmutableClassesGiraphConfiguration<?,VDATA_T,?> configuration)
-
-
Method Detail
-
getVertexData
public VDATA_T getVertexData(long lid)
- Specified by:
getVertexData
in interfaceVertexDataManager<VDATA_T extends org.apache.hadoop.io.Writable>
-
setVertexData
public void setVertexData(long lid, VDATA_T vertexData)
When set a value, we don't know this param will or will not be reused, so copy the value.- Specified by:
setVertexData
in interfaceVertexDataManager<VDATA_T extends org.apache.hadoop.io.Writable>
- Parameters:
lid
- lidvertexData
- value to set.
-
-