Class ImmutableEdgecutFragmentAdaptor<OID_T,VID_T,VDATA_T,EDATA_T>
- java.lang.Object
-
- com.alibaba.graphscope.fragment.adaptor.ImmutableEdgecutFragmentAdaptor<OID_T,VID_T,VDATA_T,EDATA_T>
-
- All Implemented Interfaces:
IFragment<OID_T,VID_T,VDATA_T,EDATA_T>
,Serializable
public class ImmutableEdgecutFragmentAdaptor<OID_T,VID_T,VDATA_T,EDATA_T> extends Object implements IFragment<OID_T,VID_T,VDATA_T,EDATA_T>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
fragmentType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
fid()
int
fnum()
Number of fragments.FragmentType
fragmentType()
Return the underlying fragment type,i.e.VDATA_T
getData(Vertex<VID_T> vertex)
Get the data on vertex.Class<? extends EDATA_T>
getEdataClass()
long
getEdgeNum()
Returns the number of edges in this fragment.com.alibaba.fastffi.FFIPointer
getFFIPointer()
Get the actual fragment FFIPointer we are using.int
getFragId(Vertex<VID_T> vertex)
To which fragment the vertex belongs.OID_T
getId(Vertex<VID_T> vertex)
Get the original Id of a vertex.ImmutableEdgecutFragment<OID_T,VID_T,VDATA_T,EDATA_T>
getImmutableFragment()
AdjList<VID_T,EDATA_T>
getIncomingAdjList(Vertex<VID_T> vertex)
long
getInEdgeNum()
boolean
getInnerVertex(OID_T oid, Vertex<VID_T> vertex)
Check whether a vertex, represented in OID_T, is a inner vertex.VID_T
getInnerVertexGid(Vertex<VID_T> vertex)
Convert from outer vertex handle to its global id.OID_T
getInnerVertexId(Vertex<VID_T> vertex)
Obtain vertex id from original id, only for inner vertex.long
getInnerVerticesNum()
Get the number of inner vertices.int
getLocalInDegree(Vertex<VID_T> vertex)
int
getLocalOutDegree(Vertex<VID_T> vertex)
Class<? extends OID_T>
getOidClass()
long
getOutEdgeNum()
boolean
getOuterVertex(OID_T oid, Vertex<VID_T> vertex)
Check whether a vertex, represented in OID_T, is a outer vertex.VID_T
getOuterVertexGid(Vertex<VID_T> vertex)
Convert from inner vertex handle to its global id.OID_T
getOuterVertexId(Vertex<VID_T> vertex)
Obtain vertex id from original id, only for outer vertex.long
getOuterVerticesNum()
Get the number of outer vertices.AdjList<VID_T,EDATA_T>
getOutgoingAdjList(Vertex<VID_T> vertex)
long
getTotalVerticesNum()
Returns the number of vertices in the entire graph.Class<? extends VDATA_T>
getVdataClass()
boolean
getVertex(OID_T oid, Vertex<VID_T> vertex)
Get the vertex handle from the original id.VID_T
getVerticesNum()
Returns the number of vertices in this fragment.Class<? extends VID_T>
getVidClass()
boolean
gid2Vertex(VID_T gid, Vertex<VID_T> vertex)
boolean
innerVertexGid2Vertex(VID_T gid, Vertex<VID_T> vertex)
Convert from global id to an inner vertex handle.VertexRange<VID_T>
innerVertices()
Obtain vertex range contains all inner vertices.boolean
isInnerVertex(Vertex<VID_T> vertex)
Check whether a vertex is a inner vertex for a fragment.boolean
isOuterVertex(Vertex<VID_T> vertex)
Check whether a vertex is a outer vertex for a fragment.boolean
outerVertexGid2Vertex(VID_T gid, Vertex<VID_T> vertex)
Convert from global id to an outer vertex handle.VertexRange<VID_T>
outerVertices()
Obtain vertex range contains all outer vertices.void
setData(Vertex<VID_T> vertex, VDATA_T vdata)
Update vertex data with a new value.VID_T
vertex2Gid(Vertex<VID_T> vertex)
VertexRange<VID_T>
vertices()
Get all vertices referenced to this fragment.
-
-
-
Field Detail
-
fragmentType
public static String fragmentType
-
-
Method Detail
-
getImmutableFragment
public ImmutableEdgecutFragment<OID_T,VID_T,VDATA_T,EDATA_T> getImmutableFragment()
-
fragmentType
public FragmentType fragmentType()
Description copied from interface:IFragment
Return the underlying fragment type,i.e. ArrowProjected or Simple.
-
getFFIPointer
public com.alibaba.fastffi.FFIPointer getFFIPointer()
Get the actual fragment FFIPointer we are using.
-
fid
public int fid()
-
fnum
public int fnum()
Description copied from interface:IFragment
Number of fragments.
-
getEdgeNum
public long getEdgeNum()
Description copied from interface:IFragment
Returns the number of edges in this fragment.
-
getInEdgeNum
public long getInEdgeNum()
-
getOutEdgeNum
public long getOutEdgeNum()
-
getVerticesNum
public VID_T getVerticesNum()
Description copied from interface:IFragment
Returns the number of vertices in this fragment.
-
getTotalVerticesNum
public long getTotalVerticesNum()
Description copied from interface:IFragment
Returns the number of vertices in the entire graph.
-
vertices
public VertexRange<VID_T> vertices()
Description copied from interface:IFragment
Get all vertices referenced to this fragment.
-
getVertex
public boolean getVertex(OID_T oid, Vertex<VID_T> vertex)
Description copied from interface:IFragment
Get the vertex handle from the original id.
-
getId
public OID_T getId(Vertex<VID_T> vertex)
Description copied from interface:IFragment
Get the original Id of a vertex.
-
getFragId
public int getFragId(Vertex<VID_T> vertex)
Description copied from interface:IFragment
To which fragment the vertex belongs.
-
getInnerVerticesNum
public long getInnerVerticesNum()
Description copied from interface:IFragment
Get the number of inner vertices.
-
getOuterVerticesNum
public long getOuterVerticesNum()
Description copied from interface:IFragment
Get the number of outer vertices.
-
innerVertices
public VertexRange<VID_T> innerVertices()
Description copied from interface:IFragment
Obtain vertex range contains all inner vertices.
-
outerVertices
public VertexRange<VID_T> outerVertices()
Description copied from interface:IFragment
Obtain vertex range contains all outer vertices.
-
isInnerVertex
public boolean isInnerVertex(Vertex<VID_T> vertex)
Description copied from interface:IFragment
Check whether a vertex is a inner vertex for a fragment.
-
isOuterVertex
public boolean isOuterVertex(Vertex<VID_T> vertex)
Description copied from interface:IFragment
Check whether a vertex is a outer vertex for a fragment.
-
getInnerVertex
public boolean getInnerVertex(OID_T oid, Vertex<VID_T> vertex)
Description copied from interface:IFragment
Check whether a vertex, represented in OID_T, is a inner vertex. If yes, if true and put inner representation id in the second param. Else return false.
-
getOuterVertex
public boolean getOuterVertex(OID_T oid, Vertex<VID_T> vertex)
Description copied from interface:IFragment
Check whether a vertex, represented in OID_T, is a outer vertex. If yes, if true and put outer representation id in the second param. Else return false.
-
getInnerVertexId
public OID_T getInnerVertexId(Vertex<VID_T> vertex)
Description copied from interface:IFragment
Obtain vertex id from original id, only for inner vertex.
-
getOuterVertexId
public OID_T getOuterVertexId(Vertex<VID_T> vertex)
Description copied from interface:IFragment
Obtain vertex id from original id, only for outer vertex.
-
innerVertexGid2Vertex
public boolean innerVertexGid2Vertex(VID_T gid, Vertex<VID_T> vertex)
Description copied from interface:IFragment
Convert from global id to an inner vertex handle.
-
outerVertexGid2Vertex
public boolean outerVertexGid2Vertex(VID_T gid, Vertex<VID_T> vertex)
Description copied from interface:IFragment
Convert from global id to an outer vertex handle.
-
getOuterVertexGid
public VID_T getOuterVertexGid(Vertex<VID_T> vertex)
Description copied from interface:IFragment
Convert from inner vertex handle to its global id.
-
getInnerVertexGid
public VID_T getInnerVertexGid(Vertex<VID_T> vertex)
Description copied from interface:IFragment
Convert from outer vertex handle to its global id.
-
-