Interface AdjListOffsetArrowChunkReader
-
- All Superinterfaces:
com.alibaba.fastffi.CXXPointer
,com.alibaba.fastffi.FFIPointer
,com.alibaba.fastffi.FFIType
public interface AdjListOffsetArrowChunkReader extends com.alibaba.fastffi.CXXPointer
The arrow chunk reader for edge offset.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AdjListOffsetArrowChunkReader.Factory
-
Field Summary
Fields Modifier and Type Field Description static AdjListOffsetArrowChunkReader.Factory
factory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Result<StdSharedPtr<ArrowArray>>
getChunk()
Get the current offset chunk as arrow::Array.@com.alibaba.fastffi.FFINameAlias("GetChunkIndex"),@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long
getChunkIndex()
Get current vertex chunk index.Status
nextChunk()
Sets chunk position indicator to next chunk.Status
seek(@com.alibaba.fastffi.FFINameAlias("graphar::IdType") long id)
Sets chunk position indicator for reader by internal vertex id.
-
-
-
Field Detail
-
factory
static final AdjListOffsetArrowChunkReader.Factory factory
-
-
Method Detail
-
seek
Status seek(@com.alibaba.fastffi.FFINameAlias("graphar::IdType") long id)
Sets chunk position indicator for reader by internal vertex id. If internal vertex id is not found, will return Status::IndexError error. After seeking to an invalid vertex id, the next call to GetChunk function may undefined, e.g. return a non exist path.- Parameters:
id
- the internal vertex id.
-
getChunk
Result<StdSharedPtr<ArrowArray>> getChunk()
Get the current offset chunk as arrow::Array.
-
nextChunk
Status nextChunk()
Sets chunk position indicator to next chunk. if current chunk is the last chunk, will return Status::IndexError error.
-
getChunkIndex
@com.alibaba.fastffi.FFINameAlias("GetChunkIndex"),@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long getChunkIndex()
Get current vertex chunk index.
-
-