Interface AdjListArrowChunkReader
-
- All Superinterfaces:
com.alibaba.fastffi.CXXPointer,com.alibaba.fastffi.FFIPointer,com.alibaba.fastffi.FFIType
public interface AdjListArrowChunkReader extends com.alibaba.fastffi.CXXPointerThe arrow chunk reader for adj list topology chunk.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAdjListArrowChunkReader.Factory
-
Field Summary
Fields Modifier and Type Field Description static AdjListArrowChunkReader.Factoryfactory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Result<StdSharedPtr<ArrowTable>>getChunk()Get the current offset chunk as arrow::Array.Result<Long>getRowNumOfChunk()Get the number of rows of the current chunk table.StatusnextChunk()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 offset)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 AdjListArrowChunkReader.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 offset)
Sets chunk position indicator for reader by destination vertex id.- Parameters:
offset- 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()
Get the current offset chunk as arrow::Array.
-
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)
Sets chunk position to the specific vertex chunk and edge chunk.- Parameters:
vertexChunkIndex- the vertex chunk index.- Returns:
- Status: ok or error
-
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, C++ default is 0.- Returns:
- Status: ok or error
-
-