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

    • Method Detail

      • getInnerVerticesNum

        @com.alibaba.fastffi.FFINameAlias("GetInnerVerticesNum"),@com.alibaba.fastffi.CXXValue long getInnerVerticesNum()
        Get the number of inner vertices.
        Returns:
        number of inner vertices.
      • getOuterVerticesNum

        @com.alibaba.fastffi.FFINameAlias("GetOuterVerticesNum"),@com.alibaba.fastffi.CXXValue long getOuterVerticesNum()
        Get the number of outer vertices.
        Returns:
        umber of outer vertices.
      • innerVertices

        VertexRange<VID_T> innerVertices()
        Obtain vertex range contains all inner vertices.
        Returns:
        vertex range.
      • outerVertices

        VertexRange<VID_T> outerVertices()
        Obtain vertex range contains all outer vertices.
        Returns:
        vertex range.
      • isInnerVertex

        @com.alibaba.fastffi.FFINameAlias("IsInnerVertex") boolean isInnerVertex​(Vertex<VID_T> vertex)
        Check whether a vertex is a inner vertex for a fragment.
        Parameters:
        vertex - querying vertex.
        Returns:
        true if is inner vertex.
      • isOuterVertex

        @com.alibaba.fastffi.FFINameAlias("IsOuterVertex") boolean isOuterVertex​(Vertex<VID_T> vertex)
        Check whether a vertex is a outer vertex for a fragment.
        Parameters:
        vertex - querying vertex.
        Returns:
        true if is outer vertex.
      • getInnerVertex

        @com.alibaba.fastffi.FFINameAlias("GetInnerVertex") boolean getInnerVertex​(OID_T oid,
                                                                                   Vertex<VID_T> vertex)
        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.
        Parameters:
        oid - querying vertex in OID_T.
        vertex - placeholder for VID_T, if oid belongs to this fragment.
        Returns:
        inner vertex or not.
      • getOuterVertex

        @com.alibaba.fastffi.FFINameAlias("GetOuterVertex") boolean getOuterVertex​(OID_T oid,
                                                                                   Vertex<VID_T> vertex)
        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.
        Parameters:
        oid - querying vertex in OID_T.
        vertex - placeholder for VID_T, if oid doesn't belong to this fragment.
        Returns:
        outer vertex or not.
      • getInnerVertexId

        OID_T getInnerVertexId​(Vertex<VID_T> vertex)
        Obtain vertex id from original id, only for inner vertex.
        Parameters:
        vertex - querying vertex.
        Returns:
        original id.
      • getOuterVertexId

        OID_T getOuterVertexId​(Vertex<VID_T> vertex)
        Obtain vertex id from original id, only for outer vertex.
        Parameters:
        vertex - querying vertex.
        Returns:
        original id.
      • innerVertexGid2Vertex

        @com.alibaba.fastffi.FFINameAlias("InnerVertexGid2Vertex") boolean innerVertexGid2Vertex​(VID_T gid,
                                                                                                 Vertex<VID_T> vertex)
        Convert from global id to an inner vertex handle.
        Parameters:
        gid - Input global id.
        vertex - Output vertex handle.
        Returns:
        True if exists an inner vertex of this fragment with global id as gid, false otherwise.
      • outerVertexGid2Vertex

        @com.alibaba.fastffi.FFINameAlias("OuterVertexGid2Vertex") boolean outerVertexGid2Vertex​(VID_T gid,
                                                                                                 Vertex<VID_T> vertex)
        Convert from global id to an outer vertex handle.
        Parameters:
        gid - Input global id.
        vertex - Output vertex handle.
        Returns:
        True if exists an outer vertex of this fragment with global id as gid, false otherwise.
      • getOuterVertexGid

        VID_T getOuterVertexGid​(Vertex<VID_T> vertex)
        Convert from inner vertex handle to its global id.
        Parameters:
        vertex - Input vertex handle.
        Returns:
        Global id of the vertex.
      • getInnerVertexGid

        VID_T getInnerVertexGid​(Vertex<VID_T> vertex)
        Convert from outer vertex handle to its global id.
        Parameters:
        vertex - Input vertex handle.
        Returns:
        Global id of the vertex.