Package com.alibaba.graphscope.fragment
Interface ArrowFragment<OID_T>
-
- Type Parameters:
OID_T
- original vertex id type
- All Superinterfaces:
com.alibaba.fastffi.FFIPointer
,FFIType
,Serializable
- All Known Implementing Classes:
ArrowFragment_cxx_0x999c91c4
public interface ArrowFragment<OID_T> extends com.alibaba.fastffi.FFIPointer
ArrowFragment is the java wrapper for vineyard::ArrowFragment.LABEL_ID_TYPE=int,PROP_ID_TYPE=int EID_TYPE=uint64_t
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @com.alibaba.fastffi.FFINameAlias("directed") boolean
directed()
@com.alibaba.fastffi.FFINameAlias("edge_label_num") int
edgeLabelNum()
@com.alibaba.fastffi.FFINameAlias("edge_property_num") int
edgePropertyNum(int label)
int
fid()
int
fnum()
@com.alibaba.fastffi.FFINameAlias("GetData<double>") double
getDoubleData(Vertex<Long> vertex, int propertyId)
@com.alibaba.fastffi.FFINameAlias("GetFragId") int
getFragId(Vertex<Long> vertex)
PropertyAdjList<Long>
getIncomingAdjList(Vertex<Long> vertex, int edgeLabelId)
PropertyRawAdjList<Long>
getIncomingRawAdjList(Vertex<Long> vertex, int edgeLabelId)
@com.alibaba.fastffi.FFINameAlias("GetInnerVertex") boolean
getInnerVertex(int vertexLabelId, OID_T oid, Vertex<Long> vertex)
Try to get oid's corresponding vertex, if not inner vertex, return false.Long
getInnerVertexGid(Vertex<Long> vertex)
OID_T
getInnerVertexOid(Vertex<Long> vertex)
@com.alibaba.fastffi.FFINameAlias("GetInnerVerticesNum") long
getInnerVerticesNum(int labelId)
@com.alibaba.fastffi.FFINameAlias("GetData<uint32_t>") int
getIntData(Vertex<Long> vertex, int propertyId)
@com.alibaba.fastffi.FFINameAlias("GetLocalInDegree") int
getLocalInDegree(Vertex<Long> vertex, int edgeLabelId)
@com.alibaba.fastffi.FFINameAlias("GetLocalOutDegree") int
getLocalOutDegree(Vertex<Long> vertex, int edgeLabelId)
@com.alibaba.fastffi.FFINameAlias("GetData<uint64_t>") long
getLongData(Vertex<Long> vertex, int propertyId)
OID_T
getOid(Vertex<Long> vertex)
Get vertex's oid with lid.@com.alibaba.fastffi.FFINameAlias("GetOuterVertex") boolean
getOuterVertex(int vertexLabelId, OID_T oid, Vertex<Long> vertex)
Long
getOuterVertexGid(Vertex<Long> vertex)
OID_T
getOuterVertexOid(Vertex<Long> vertex)
@com.alibaba.fastffi.FFINameAlias("GetOuterVerticesNum") long
getOuterVerticesNum(int labelId)
PropertyAdjList<Long>
getOutgoingAdjList(Vertex<Long> vertex, int edgeLabelId)
Get the outgoing edges.PropertyRawAdjList<Long>
getOutgoingRawAdjList(Vertex<Long> vertex, int edgeLabelId)
@com.alibaba.fastffi.FFINameAlias("GetTotalNodesNum") int
getTotalNodesNum()
@com.alibaba.fastffi.FFINameAlias("GetTotalVerticesNum") int
getTotalVerticesNum()
@com.alibaba.fastffi.FFINameAlias("GetTotalVerticesNum") int
getTotalVerticesNum(int labelId)
@com.alibaba.fastffi.FFINameAlias("GetVertex") boolean
getVertex(int labelId, OID_T oid, Vertex<Long> vertex)
Get vertex's lid with oid provided, set int vertex.@com.alibaba.fastffi.FFINameAlias("GetVerticesNum") long
getVerticesNum(int labelId)
Get the number of vertices in this fragment, i.e.OID_T
gid2Oid(Long gid)
@com.alibaba.fastffi.FFINameAlias("Gid2Vertex") boolean
gid2Vertex(Long gid, Vertex<Long> vertex)
@com.alibaba.fastffi.FFINameAlias("HasChild") boolean
hasChild(Vertex<Long> vertex, int edgeLabelId)
@com.alibaba.fastffi.FFINameAlias("HasParent") boolean
hasParent(Vertex<Long> vertex, int edgeLabelId)
@com.alibaba.fastffi.FFINameAlias("InnerVertexGid2Vertex") boolean
innerVertexGid2Vertex(Long gid, Vertex<Long> vertex)
VertexRange<Long>
innerVertices(int labelId)
@com.alibaba.fastffi.FFINameAlias("IsInnerVertex") boolean
isInnerVertex(Vertex<Long> vertex)
@com.alibaba.fastffi.FFINameAlias("IsOuterVertex") boolean
isOuterVertex(Vertex<Long> vertex)
@com.alibaba.fastffi.FFINameAlias("Oid2Gid") boolean
oid2Gid(int vertexLabelId, OID_T oid, Vertex<Long> gid)
@com.alibaba.fastffi.FFINameAlias("OuterVertexGid2Vertex") boolean
outerVertexGid2Vertex(Long gid, Vertex<Long> vertex)
VertexRange<Long>
outerVertices(int labelId)
Long
vertex2Gid(Vertex<Long> vertex)
@com.alibaba.fastffi.FFINameAlias("vertex_label") int
vertexLabel(Vertex<Long> vertex)
@com.alibaba.fastffi.FFINameAlias("vertex_label_num") int
vertexLabelNum()
@com.alibaba.fastffi.FFINameAlias("vertex_offset") long
vertexOffset(Vertex<Long> vertex)
@com.alibaba.fastffi.FFINameAlias("vertex_property_num") int
vertexPropertyNum(int label)
VertexRange<Long>
vertices(int labelId)
-
-
-
Method Detail
-
fid
int fid()
-
fnum
int fnum()
-
vertexOffset
@com.alibaba.fastffi.FFINameAlias("vertex_offset") long vertexOffset(Vertex<Long> vertex)
-
vertexLabelNum
@com.alibaba.fastffi.FFINameAlias("vertex_label_num") int vertexLabelNum()
-
edgeLabelNum
@com.alibaba.fastffi.FFINameAlias("edge_label_num") int edgeLabelNum()
-
vertexPropertyNum
@com.alibaba.fastffi.FFINameAlias("vertex_property_num") int vertexPropertyNum(int label)
-
edgePropertyNum
@com.alibaba.fastffi.FFINameAlias("edge_property_num") int edgePropertyNum(int label)
-
vertices
VertexRange<Long> vertices(int labelId)
-
innerVertices
VertexRange<Long> innerVertices(int labelId)
-
outerVertices
VertexRange<Long> outerVertices(int labelId)
-
getVerticesNum
@com.alibaba.fastffi.FFINameAlias("GetVerticesNum") long getVerticesNum(int labelId)
Get the number of vertices in this fragment, i.e. ivnum + ovnum.- Parameters:
labelId
- vertex label id- Returns:
- number of vertices labeled with labelId
-
getInnerVerticesNum
@com.alibaba.fastffi.FFINameAlias("GetInnerVerticesNum") long getInnerVerticesNum(int labelId)
-
getOuterVerticesNum
@com.alibaba.fastffi.FFINameAlias("GetOuterVerticesNum") long getOuterVerticesNum(int labelId)
-
getTotalNodesNum
@com.alibaba.fastffi.FFINameAlias("GetTotalNodesNum") int getTotalNodesNum()
-
getTotalVerticesNum
@com.alibaba.fastffi.FFINameAlias("GetTotalVerticesNum") int getTotalVerticesNum()
-
getTotalVerticesNum
@com.alibaba.fastffi.FFINameAlias("GetTotalVerticesNum") int getTotalVerticesNum(int labelId)
-
getOid
OID_T getOid(Vertex<Long> vertex)
Get vertex's oid with lid.- Parameters:
vertex
- querying vertex- Returns:
- original id for vertex
-
getVertex
@com.alibaba.fastffi.FFINameAlias("GetVertex") boolean getVertex(int labelId, OID_T oid, Vertex<Long> vertex)
Get vertex's lid with oid provided, set int vertex.- Parameters:
labelId
- label for oid.oid
- querying oid.vertex
- vertex handler- Returns:
- true if vertex with original id oid exists in this fragment.
-
isInnerVertex
@com.alibaba.fastffi.FFINameAlias("IsInnerVertex") boolean isInnerVertex(Vertex<Long> vertex)
-
isOuterVertex
@com.alibaba.fastffi.FFINameAlias("IsOuterVertex") boolean isOuterVertex(Vertex<Long> vertex)
-
getOutgoingAdjList
PropertyAdjList<Long> getOutgoingAdjList(Vertex<Long> vertex, int edgeLabelId)
Get the outgoing edges.- Parameters:
vertex
- querying vertex.edgeLabelId
- label for the edges you are querying.- Returns:
- obtained edges.
-
getIncomingAdjList
PropertyAdjList<Long> getIncomingAdjList(Vertex<Long> vertex, int edgeLabelId)
-
getOutgoingRawAdjList
PropertyRawAdjList<Long> getOutgoingRawAdjList(Vertex<Long> vertex, int edgeLabelId)
-
getIncomingRawAdjList
PropertyRawAdjList<Long> getIncomingRawAdjList(Vertex<Long> vertex, int edgeLabelId)
-
getLongData
@com.alibaba.fastffi.FFINameAlias("GetData<uint64_t>") long getLongData(Vertex<Long> vertex, int propertyId)
-
getIntData
@com.alibaba.fastffi.FFINameAlias("GetData<uint32_t>") int getIntData(Vertex<Long> vertex, int propertyId)
-
getDoubleData
@com.alibaba.fastffi.FFINameAlias("GetData<double>") double getDoubleData(Vertex<Long> vertex, int propertyId)
-
hasChild
@com.alibaba.fastffi.FFINameAlias("HasChild") boolean hasChild(Vertex<Long> vertex, int edgeLabelId)
-
hasParent
@com.alibaba.fastffi.FFINameAlias("HasParent") boolean hasParent(Vertex<Long> vertex, int edgeLabelId)
-
getLocalOutDegree
@com.alibaba.fastffi.FFINameAlias("GetLocalOutDegree") int getLocalOutDegree(Vertex<Long> vertex, int edgeLabelId)
-
getLocalInDegree
@com.alibaba.fastffi.FFINameAlias("GetLocalInDegree") int getLocalInDegree(Vertex<Long> vertex, int edgeLabelId)
-
gid2Vertex
@com.alibaba.fastffi.FFINameAlias("Gid2Vertex") boolean gid2Vertex(Long gid, Vertex<Long> vertex)
-
getInnerVertex
@com.alibaba.fastffi.FFINameAlias("GetInnerVertex") boolean getInnerVertex(int vertexLabelId, OID_T oid, Vertex<Long> vertex)
Try to get oid's corresponding vertex, if not inner vertex, return false.- Parameters:
vertexLabelId
- label id for vertex.oid
- querying oid.vertex
- output vertex.- Returns:
- true if operation succeed.
-
getOuterVertex
@com.alibaba.fastffi.FFINameAlias("GetOuterVertex") boolean getOuterVertex(int vertexLabelId, OID_T oid, Vertex<Long> vertex)
-
oid2Gid
@com.alibaba.fastffi.FFINameAlias("Oid2Gid") boolean oid2Gid(int vertexLabelId, OID_T oid, Vertex<Long> gid)
-
innerVertexGid2Vertex
@com.alibaba.fastffi.FFINameAlias("InnerVertexGid2Vertex") boolean innerVertexGid2Vertex(Long gid, Vertex<Long> vertex)
-
outerVertexGid2Vertex
@com.alibaba.fastffi.FFINameAlias("OuterVertexGid2Vertex") boolean outerVertexGid2Vertex(Long gid, Vertex<Long> vertex)
-
directed
@com.alibaba.fastffi.FFINameAlias("directed") boolean directed()
-
-