Package oracle.pgx.api
Class PgxEdge
- java.lang.Object
-
- oracle.pgx.api.internal.ApiObject
-
- oracle.pgx.api.PgxEntity<java.lang.Long>
-
- oracle.pgx.api.PgxEdge
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <ID> PgxVertex<ID>
getDestination()
Blocking version ofgetDestinationAsync()
.<ID> PgxFuture<PgxVertex<ID>>
getDestinationAsync()
Gets the destination vertex.java.lang.String
getLabel()
Blocking version ofgetLabelAsync()
.PgxFuture<java.lang.String>
getLabelAsync()
Gets the label.<ID> PgxVertex<ID>
getSource()
Blocking version ofgetSourceAsync()
.<ID> PgxFuture<PgxVertex<ID>>
getSourceAsync()
Gets the source vertex.<ID> Pair<PgxVertex<ID>,PgxVertex<ID>>
getVertices()
Blocking version ofgetVerticesAsync()
.<ID> PgxFuture<Pair<PgxVertex<ID>,PgxVertex<ID>>>
getVerticesAsync()
Gets both vertices of this edge as a pair.-
Methods inherited from class oracle.pgx.api.PgxEntity
equals, getGraph, getId, getProperty, getPropertyAsync, getType, hashCode, serialize, setProperty, setPropertyAsync, toString
-
-
-
-
Method Detail
-
getLabelAsync
public PgxFuture<java.lang.String> getLabelAsync()
Gets the label.- Returns:
- the edge label.
- Throws:
java.lang.IllegalStateException
- if this graph does not have any labels.
-
getSourceAsync
public <ID> PgxFuture<PgxVertex<ID>> getSourceAsync()
Gets the source vertex.- Returns:
- the source vertex.
-
getDestinationAsync
public <ID> PgxFuture<PgxVertex<ID>> getDestinationAsync()
Gets the destination vertex.- Returns:
- the destination vertex.
-
getVerticesAsync
public <ID> PgxFuture<Pair<PgxVertex<ID>,PgxVertex<ID>>> getVerticesAsync()
Gets both vertices of this edge as a pair. In the directed case, the first part of the pair is the source and the second one the destination vertex.- Returns:
- the source and the destination vertex as a pair
-
getLabel
public java.lang.String getLabel()
Blocking version ofgetLabelAsync()
. CallsgetLabelAsync()
and waits for the returnedPgxFuture
to complete.
-
getSource
public <ID> PgxVertex<ID> getSource()
Blocking version ofgetSourceAsync()
. CallsgetSourceAsync()
and waits for the returnedPgxFuture
to complete.
-
getDestination
public <ID> PgxVertex<ID> getDestination()
Blocking version ofgetDestinationAsync()
. CallsgetDestinationAsync()
and waits for the returnedPgxFuture
to complete.
-
getVertices
public <ID> Pair<PgxVertex<ID>,PgxVertex<ID>> getVertices()
Blocking version ofgetVerticesAsync()
. CallsgetVerticesAsync()
and waits for the returned the returnedPgxFuture
to complete.
-
-