Package com.alibaba.graphscope.fragment
Interface FragmentBase<OID_T,VID_T,VDATA_T,EDATA_T>
- 
- Type Parameters:
- OID_T- original vertex id type.
- VID_T- vertex id type.
- VDATA_T- vertex data type.
- EDATA_T- edge data type.
 - All Superinterfaces:
- com.alibaba.fastffi.FFIPointer,- FFIType,- Serializable
 - All Known Subinterfaces:
- ArrowProjectedFragment<OID_T,VID_T,VDATA_T,EDATA_T>,- BaseArrowProjectedFragment<OID_T,VID_T,VDATA_T,EDATA_T>,- EdgecutFragment<OID_T,VID_T,VDATA_T,EDATA_T>,- ImmutableEdgecutFragment<OID_T,VID_T,VDATA_T,EDATA_T>
 - All Known Implementing Classes:
- ArrowProjectedFragment_cxx_0x2b7738c9,- ArrowProjectedFragment_cxx_0x2ba2680a,- ArrowProjectedFragment_cxx_0x3384a871,- ArrowProjectedFragment_cxx_0x4645b400,- ArrowProjectedFragment_cxx_0x508ada88,- ArrowProjectedFragment_cxx_0x50b609c9,- ArrowProjectedFragment_cxx_0x57bae832,- ArrowProjectedFragment_cxx_0x57e61773,- ArrowProjectedFragment_cxx_0x8724099f,- ArrowProjectedFragment_cxx_0xaa704f61,- ArrowProjectedFragment_cxx_0xafd47c78,- ArrowProjectedFragment_cxx_0xb2a7437,- ArrowProjectedFragment_cxx_0xb55a378,- ArrowProjectedFragment_cxx_0xc38050e6,- ArrowProjectedFragment_cxx_0xe3684916,- ArrowProjectedFragment_cxx_0xfab326b7
 
 public interface FragmentBase<OID_T,VID_T,VDATA_T,EDATA_T> extends com.alibaba.fastffi.FFIPointerDefines the basic interfaces shall be provided by a fragment.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description intfid()intfnum()Number of fragments.@com.alibaba.fastffi.FFINameAlias("GetEdgeNum") longgetEdgeNum()Returns the number of edges in this fragment.@com.alibaba.fastffi.FFINameAlias("GetFragId") intgetFragId(Vertex<VID_T> vertex)To which fragment the vertex belongs.OID_TgetId(Vertex<VID_T> vertex)Get the original Id of a vertex.@com.alibaba.fastffi.FFINameAlias("GetLocalInDegree") intgetLocalInDegree(Vertex<VID_T> vertex)@com.alibaba.fastffi.FFINameAlias("GetLocalOutDegree") intgetLocalOutDegree(Vertex<VID_T> vertex)@com.alibaba.fastffi.FFINameAlias("GetTotalVerticesNum") longgetTotalVerticesNum()Returns the number of vertices in the entire graph.@com.alibaba.fastffi.FFINameAlias("GetVertex") booleangetVertex(OID_T oid, Vertex<VID_T> vertex)Get the vertex handle from the original id.VID_TgetVerticesNum()Returns the number of vertices in this fragment.@com.alibaba.fastffi.FFINameAlias("Gid2Vertex") booleangid2Vertex(VID_T gid, Vertex<VID_T> vertex)VID_Tvertex2Gid(Vertex<VID_T> vertex)VertexRange<VID_T>vertices()Get all vertices referenced to this fragment.
 
- 
- 
- 
Method Detail- 
fidint fid() - Returns:
- The id of current fragment.
 
 - 
fnumint fnum() Number of fragments.- Returns:
- number of fragments.
 
 - 
getEdgeNum@com.alibaba.fastffi.FFINameAlias("GetEdgeNum") long getEdgeNum()Returns the number of edges in this fragment.- Returns:
- the number of edges in this fragment.
 
 - 
getVerticesNumVID_T getVerticesNum() Returns the number of vertices in this fragment.- Returns:
- the number of vertices in this fragment.
 
 - 
getTotalVerticesNum@com.alibaba.fastffi.FFINameAlias("GetTotalVerticesNum") long getTotalVerticesNum()Returns the number of vertices in the entire graph.- Returns:
- The number of vertices in the entire graph.
 
 - 
verticesVertexRange<VID_T> vertices() Get all vertices referenced to this fragment.- Returns:
- A vertex set can be iterate on.
 
 - 
getVertex@com.alibaba.fastffi.FFINameAlias("GetVertex") boolean getVertex(OID_T oid, Vertex<VID_T> vertex)Get the vertex handle from the original id.- Parameters:
- oid- input original id.
- vertex- output vertex handle
- Returns:
- If find the vertex in this fragment, return true. Otherwise, return false.
 
 - 
getIdOID_T getId(Vertex<VID_T> vertex) Get the original Id of a vertex.- Parameters:
- vertex- querying vertex.
- Returns:
- original id.
 
 - 
getFragId@com.alibaba.fastffi.FFINameAlias("GetFragId") int getFragId(Vertex<VID_T> vertex)To which fragment the vertex belongs.- Parameters:
- vertex- querying vertex.
- Returns:
- frag id.
 
 - 
getLocalInDegree@com.alibaba.fastffi.FFINameAlias("GetLocalInDegree") int getLocalInDegree(Vertex<VID_T> vertex)
 - 
getLocalOutDegree@com.alibaba.fastffi.FFINameAlias("GetLocalOutDegree") int getLocalOutDegree(Vertex<VID_T> vertex)
 - 
gid2Vertex@com.alibaba.fastffi.FFINameAlias("Gid2Vertex") boolean gid2Vertex(VID_T gid, Vertex<VID_T> vertex)
 
- 
 
-