Interface FragmentBase<OID_T,​VID_T,​VDATA_T,​EDATA_T>

    • Method Detail

      • fid

        int fid()
        Returns:
        The id of current fragment.
      • fnum

        int 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.
      • getVerticesNum

        VID_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.
      • vertices

        VertexRange<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.
      • getId

        OID_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)