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 Detail

      • fid

        int fid()
      • fnum

        int fnum()
      • vertexLabel

        @com.alibaba.fastffi.FFINameAlias("vertex_label") int vertexLabel​(Vertex<Long> vertex)
      • 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)
      • 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.
      • getFragId

        @com.alibaba.fastffi.FFINameAlias("GetFragId") int getFragId​(Vertex<Long> vertex)
      • 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.
      • 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()