Interface AdjListPropertyArrowChunkReader
-
- All Superinterfaces:
com.alibaba.fastffi.CXXPointer,com.alibaba.fastffi.FFIPointer,com.alibaba.fastffi.FFIType
public interface AdjListPropertyArrowChunkReader extends com.alibaba.fastffi.CXXPointer
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAdjListPropertyArrowChunkReader.Factory
-
Field Summary
Fields Modifier and Type Field Description static AdjListPropertyArrowChunkReader.Factoryfactory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Result<StdSharedPtr<ArrowTable>>getChunk()Return the current chunk of chunk position indicator as arrow::TableStatusnextChunk()Sets chunk position indicator to next chunk.Statusseek(@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long offset)Sets chunk position indicator for reader by edge index.StatusseekChunkIndex(@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long vertexChunkIndex)Sets chunk position to the specific vertex chunk and edge chunk.StatusseekChunkIndex(@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long vertexChunkIndex, @com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long chunkIndex)Sets chunk position to the specific vertex chunk and edge chunk.StatusseekDst(@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long id)Sets chunk position indicator for reader by destination vertex id.StatusseekSrc(@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long id)Sets chunk position indicator for reader by source vertex id.
-
-
-
Field Detail
-
factory
static final AdjListPropertyArrowChunkReader.Factory factory
-
-
Method Detail
-
seekSrc
Status seekSrc(@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long id)
Sets chunk position indicator for reader by source vertex id.- Parameters:
id- the source vertex id.
-
seekDst
Status seekDst(@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long id)
Sets chunk position indicator for reader by destination vertex id.- Parameters:
id- the destination vertex id.
-
seek
Status seek(@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long offset)
Sets chunk position indicator for reader by edge index.- Parameters:
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<StdSharedPtr<ArrowTable>> getChunk()
Return the current chunk of chunk position indicator as arrow::Table
-
nextChunk
Status nextChunk()
Sets chunk position indicator to next chunk.- Returns:
- Status: ok or EndOfChunk error if the reader is at the end of current vertex chunk, or IndexError error if the reader is at the end of all vertex chunks.
-
seekChunkIndex
Status seekChunkIndex(@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long vertexChunkIndex, @com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long chunkIndex)
Sets chunk position to the specific vertex chunk and edge chunk.- Parameters:
vertexChunkIndex- the vertex chunk index.chunkIndex- the edge chunk index of vertex_chunk_index, default is 0.- Returns:
- Status: ok or error
-
seekChunkIndex
Status seekChunkIndex(@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long vertexChunkIndex)
Sets chunk position to the specific vertex chunk and edge chunk.- Parameters:
vertexChunkIndex- the vertex chunk index.- Returns:
- Status: ok or error
-
-