Interface Vertex
-
- All Superinterfaces:
com.alibaba.fastffi.CXXPointer
,com.alibaba.fastffi.FFIPointer
,com.alibaba.fastffi.FFIType
public interface Vertex extends com.alibaba.fastffi.CXXPointer
Vertex is designed for constructing vertices builder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Vertex.Factory
-
Field Summary
Fields Modifier and Type Field Description static Vertex.Factory
factory
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addProperty(StdString name, long val)
Add a property to the vertex.void
addProperty(StdString name, StdString val)
Add a property to the vertex.@com.alibaba.fastffi.FFINameAlias("ContainProperty") boolean
containProperty(StdString property)
Check if the vertex contains a property.@com.alibaba.fastffi.FFINameAlias("Empty") boolean
empty()
Check if the vertex is empty.@com.alibaba.fastffi.FFINameAlias("GetId"),@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long
getId()
Get id of the vertex.<T> StdUnorderedMap<StdString,T>
getProperties(T skipT)
Get all properties of the vertex.<T> T
getProperty(StdString property, T skipT)
Get a property of the vertex.void
setId(@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long id)
Set id of the vertex.
-
-
-
Field Detail
-
factory
static final Vertex.Factory factory
-
-
Method Detail
-
getId
@com.alibaba.fastffi.FFINameAlias("GetId"),@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long getId()
Get id of the vertex.- Returns:
- The id of the vertex.
-
setId
void setId(@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long id)
Set id of the vertex.- Parameters:
id
- The id of the vertex.
-
empty
@com.alibaba.fastffi.FFINameAlias("Empty") boolean empty()
Check if the vertex is empty.- Returns:
- true/false.
-
addProperty
void addProperty(StdString name, StdString val)
Add a property to the vertex.- Parameters:
name
- The name of the property.val
- The value of the property.
-
addProperty
void addProperty(StdString name, long val)
Add a property to the vertex.- Parameters:
name
- The name of the property.val
- The value of the property.
-
getProperty
<T> T getProperty(StdString property, T skipT)
Get a property of the vertex.- Parameters:
property
- The name of the property.- Returns:
- The value of the property.
-
getProperties
<T> StdUnorderedMap<StdString,T> getProperties(T skipT)
Get all properties of the vertex.- Returns:
- The map containing all properties of the vertex.
-
containProperty
@com.alibaba.fastffi.FFINameAlias("ContainProperty") boolean containProperty(StdString property)
Check if the vertex contains a property.- Parameters:
property
- The name of the property.- Returns:
- true/false.
-
-