Package com.alibaba.graphscope.ds
Interface GSVertexArray<T>
-
- Type Parameters:
T
- vertex data type.
- All Superinterfaces:
com.alibaba.fastffi.CXXPointer
,com.alibaba.fastffi.FFIPointer
,FFIType
,Serializable
- All Known Implementing Classes:
GSVertexArray_cxx_0x13932289
,GSVertexArray_cxx_0x146265ce
,GSVertexArray_cxx_0x2ceb3d1f
,GSVertexArray_cxx_0x2d166c60
public interface GSVertexArray<T> extends com.alibaba.fastffi.FFIPointer, com.alibaba.fastffi.CXXPointer
A java wrapper for gs template class grape::VertexArray.Here the VID_T is set to long(int64_t).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
GSVertexArray.Factory<T>
Factory GSVertexArray.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
get(Vertex<Long> vertex)
Get the data bound to the querying vertex.VertexRange<Long>
GetVertexRange()
Get the vertex range for this vertex array.void
init(VertexRange<Long> range)
Init a vertex Array with a range of vertices.void
init(VertexRange<Long> range, T val)
Init a vertex Array with a range of vertices, with default value.void
setValue(Vertex<Long> vertex, T val)
Set the data for a specific vertex.void
setValue(VertexRange<Long> range, T val)
Set the data for a range of vertices.void
setValue(T val)
Full fill the vertex array with the specified value.@com.alibaba.fastffi.FFINameAlias("size") long
size()
Inherited from grape::Arrayvoid
swap(GSVertexArray<T> vertexArray)
-
-
-
Method Detail
-
init
void init(VertexRange<Long> range)
Init a vertex Array with a range of vertices.- Parameters:
range
- vertex range.
-
init
void init(VertexRange<Long> range, T val)
Init a vertex Array with a range of vertices, with default value.- Parameters:
range
- vertex range.val
- default value.
-
setValue
void setValue(T val)
Full fill the vertex array with the specified value.- Parameters:
val
- vertex data.
-
setValue
void setValue(VertexRange<Long> range, T val)
Set the data for a range of vertices.- Parameters:
range
- vertex range.val
- value to set.
-
setValue
void setValue(Vertex<Long> vertex, T val)
Set the data for a specific vertex.- Parameters:
vertex
- vertex.val
- vertex data.
-
get
T get(Vertex<Long> vertex)
Get the data bound to the querying vertex.- Parameters:
vertex
- querying vertex.- Returns:
- vertex data.
-
GetVertexRange
VertexRange<Long> GetVertexRange()
Get the vertex range for this vertex array.- Returns:
- the range of vertices.
-
swap
void swap(GSVertexArray<T> vertexArray)
-
size
@com.alibaba.fastffi.FFINameAlias("size") long size()
Inherited from grape::Array
-
-