Package org.apache.graphar.edges
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 contains information of certain edge.
-
-
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 @com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long
destination()
Get destination id of the edge.<T> Result<T>
property(StdString property, T tObject)
Get the value for a property of the current vertex.@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long
source()
Get source id of the edge.
-
-
-
Field Detail
-
factory
static final Edge.Factory factory
-
-
Method Detail
-
source
@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long source()
Get source id of the edge.- Returns:
- The id of the source vertex.
-
destination
@com.alibaba.fastffi.FFITypeAlias("graphar::IdType") long destination()
Get destination id of the edge.- Returns:
- The id of the destination vertex.
-
property
<T> Result<T> property(StdString property, T tObject)
Get the value for a property of the current vertex.- Parameters:
property
- StdString that describe property.tObject
- An object that instance of the return type. Supporting types:StdString, Longe.g.
StdString name = StdString.create("name");
StdString nameProperty = vertexIter.property(name, name);If you don't want to create an object, cast `Xxx` class to `XxxGen` and call this method with `(ReturnType) null`.
e.g.
StdString nameProperty = ((VertexIterGen)vertexIter).property(StdString.create("name"), (StdString) null);- Returns:
- Result: The property value or error.
-
-