Package com.alibaba.graphscope.ds
Interface VertexRange<VID_T>
-
- Type Parameters:
VID_T
- vertex id type.
- All Superinterfaces:
com.alibaba.fastffi.CXXPointer
,com.alibaba.fastffi.FFIPointer
,FFIType
,Serializable
- All Known Implementing Classes:
VertexRange_cxx_0x52600602
,VertexRange_cxx_0x528b3543
public interface VertexRange<VID_T> extends com.alibaba.fastffi.FFIPointer, com.alibaba.fastffi.CXXPointer
Vertex Range is an abstraction for a range of vertices. Corresponding C++ grape::VertexRange
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
VertexRange.Factory<VID_T>
Factory type for vertex range.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description VID_T
beginValue()
Return the Begin vertex id for this VertexRange.VID_T
endValue()
Return the last vertex for this VertexRange.default Iterable<Vertex<VID_T>>
intIterable()
default Iterable<Vertex<VID_T>>
longIterable()
Get iterator for vid=longvoid
SetRange(VID_T begin, VID_T end)
Update the left bound and right bound.long
size()
Return the number of vertices in this vertex range.
-
-
-
Method Detail
-
beginValue
VID_T beginValue()
Return the Begin vertex id for this VertexRange.- Returns:
- the first vertex id
-
endValue
VID_T endValue()
Return the last vertex for this VertexRange.- Returns:
- the last vertex id
-
size
long size()
Return the number of vertices in this vertex range.- Returns:
- the size.
-
SetRange
void SetRange(VID_T begin, VID_T end)
Update the left bound and right bound.- Parameters:
begin
- left(begin) VID_T.end
- right(end) VID_T.
-
-