Interface AdjListChunkInfoReader

  • All Superinterfaces:
    com.alibaba.fastffi.CXXPointer, com.alibaba.fastffi.FFIPointer, com.alibaba.fastffi.FFIType

    public interface AdjListChunkInfoReader
    extends com.alibaba.fastffi.CXXPointer
    The chunk info reader for adj list topology chunk.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Result<StdString> getChunk()
      Return the current chunk file path of chunk position indicator.
      Status nextChunk()
      Sets chunk position indicator to next chunk.
      Status seek​(@com.alibaba.fastffi.FFINameAlias("graphar::IdType") long index)
      Sets chunk position indicator for reader by edge index.
      Status seekDst​(@com.alibaba.fastffi.FFINameAlias("graphar::IdType") long id)
      Sets chunk position indicator for reader by destination internal vertex id.
      Status seekSrc​(@com.alibaba.fastffi.FFINameAlias("graphar::IdType") long id)
      Sets chunk position indicator for reader by source internal vertex id.
      • Methods inherited from interface com.alibaba.fastffi.CXXPointer

        delete
      • Methods inherited from interface com.alibaba.fastffi.FFIPointer

        getAddress
    • Method Detail

      • seekSrc

        Status seekSrc​(@com.alibaba.fastffi.FFINameAlias("graphar::IdType") long id)
        Sets chunk position indicator for reader by source internal vertex id.
        Parameters:
        id - the source internal vertex id.
      • seekDst

        Status seekDst​(@com.alibaba.fastffi.FFINameAlias("graphar::IdType") long id)
        Sets chunk position indicator for reader by destination internal vertex id.
        Parameters:
        id - the destination internal vertex id.
      • seek

        Status seek​(@com.alibaba.fastffi.FFINameAlias("graphar::IdType") long index)
        Sets chunk position indicator for reader by edge index.
        Parameters:
        index - offset edge index of the vertex chunk. Note: the offset is the edge index of the vertex chunk, not the edge index of the whole graph.
      • getChunk

        Result<StdString> getChunk()
        Return the current chunk file path of chunk position indicator.
      • nextChunk

        Status nextChunk()
        Sets chunk position indicator to next chunk. if current chunk is the last chunk, will return Status::IndexError error.