Interface AdjListChunkInfoReader
-
- All Superinterfaces:
com.alibaba.fastffi.CXXPointer,com.alibaba.fastffi.FFIPointer,com.alibaba.fastffi.FFIType
public interface AdjListChunkInfoReader extends com.alibaba.fastffi.CXXPointerThe chunk info reader for adj list topology chunk.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAdjListChunkInfoReader.Factory
-
Field Summary
Fields Modifier and Type Field Description static AdjListChunkInfoReader.Factoryfactory
-
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.StatusnextChunk()Sets chunk position indicator to next chunk.Statusseek(@com.alibaba.fastffi.FFINameAlias("graphar::IdType") long index)Sets chunk position indicator for reader by edge index.StatusseekDst(@com.alibaba.fastffi.FFINameAlias("graphar::IdType") long id)Sets chunk position indicator for reader by destination internal vertex id.StatusseekSrc(@com.alibaba.fastffi.FFINameAlias("graphar::IdType") long id)Sets chunk position indicator for reader by source internal vertex id.
-
-
-
Field Detail
-
factory
static final AdjListChunkInfoReader.Factory factory
-
-
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.
-
-