Interface Edge
-
- All Superinterfaces:
com.alibaba.fastffi.CXXPointer
,com.alibaba.fastffi.FFIPointer
,com.alibaba.fastffi.FFIType
public interface Edge extends com.alibaba.fastffi.CXXPointer
Edge is designed for constructing edges builder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
Edge.Factory
-
Field Summary
Fields Modifier and Type Field Description static Edge.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 edge.void
addProperty(StdString name, StdString val)
Add a property to the edge.@com.alibaba.fastffi.FFINameAlias("ContainProperty") boolean
containProperty(StdString property)
Check if the edge contains a property.@com.alibaba.fastffi.FFINameAlias("Empty") boolean
empty()
Check if the edge is empty.@com.alibaba.fastffi.FFINameAlias("GetDestination"),@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long
getDestination()
Get destination id of the edge.<T> StdUnorderedMap<StdString,T>
getProperties()
Get all properties of the edge.<T> T
getProperty(StdString property)
Get a property of the edge.@com.alibaba.fastffi.FFINameAlias("GetSource"),@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long
getSource()
Get source id of the edge.
-
-
-
Field Detail
-
factory
static final Edge.Factory factory
-
-
Method Detail
-
empty
@com.alibaba.fastffi.FFINameAlias("Empty") boolean empty()
Check if the edge is empty.- Returns:
- true/false.
-
getSource
@com.alibaba.fastffi.FFINameAlias("GetSource"),@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long getSource()
Get source id of the edge.- Returns:
- The id of the source vertex.
-
getDestination
@com.alibaba.fastffi.FFINameAlias("GetDestination"),@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long getDestination()
Get destination id of the edge.- Returns:
- The id of the destination vertex.
-
addProperty
void addProperty(StdString name, StdString val)
Add a property to the edge.- 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 edge.- Parameters:
name
- The name of the property.val
- The value of the property.
-
getProperty
<T> T getProperty(StdString property)
Get a property of the edge.- Parameters:
property
- The name of the property.- Returns:
- The value of the property.
-
getProperties
<T> StdUnorderedMap<StdString,T> getProperties()
Get all properties of the edge.- Returns:
- The map containing all properties of the edge.
-
containProperty
@com.alibaba.fastffi.FFINameAlias("ContainProperty") boolean containProperty(StdString property)
Check if the edge contains a property.- Parameters:
property
- The name of the property.- Returns:
- true/false.
-
-