Modifier and Type | Method and Description |
---|---|
<ID> PgxVertex<ID> |
getDestination()
Blocking version of
getDestinationAsync() . |
<ID> PgxFuture<PgxVertex<ID>> |
getDestinationAsync()
Gets the destination vertex.
|
java.lang.String |
getLabel()
Blocking version of
getLabelAsync() . |
PgxFuture<java.lang.String> |
getLabelAsync()
Gets the label.
|
<ID> PgxVertex<ID> |
getSource()
Blocking version of
getSourceAsync() . |
<ID> PgxFuture<PgxVertex<ID>> |
getSourceAsync()
Gets the source vertex.
|
<ID> Pair<PgxVertex<ID>,PgxVertex<ID>> |
getVertices()
Blocking version of
getVerticesAsync() . |
<ID> PgxFuture<Pair<PgxVertex<ID>,PgxVertex<ID>>> |
getVerticesAsync()
Gets both vertices of this edge as a pair.
|
equals, getGraph, getId, getProperty, getPropertyAsync, getType, hashCode, setProperty, setPropertyAsync, toString
public <ID> PgxVertex<ID> getDestination() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getDestinationAsync()
. Calls getDestinationAsync()
and waits for the returned PgxFuture
to complete.java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID> PgxFuture<PgxVertex<ID>> getDestinationAsync()
public java.lang.String getLabel() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getLabelAsync()
. Calls getLabelAsync()
and waits for the returned PgxFuture
to complete.java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public PgxFuture<java.lang.String> getLabelAsync()
java.lang.IllegalStateException
- if this graph does not have any labels.public <ID> PgxVertex<ID> getSource() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getSourceAsync()
. Calls getSourceAsync()
and waits for the returned PgxFuture
to complete.java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.public <ID> PgxFuture<PgxVertex<ID>> getSourceAsync()
public <ID> Pair<PgxVertex<ID>,PgxVertex<ID>> getVertices() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getVerticesAsync()
. Calls getVerticesAsync()
and waits for the returned the returned PgxFuture
to complete.java.lang.InterruptedException
- if the caller thread gets interrupted while waiting for completion.java.util.concurrent.ExecutionException
- if any exception occurred during asynchronous execution. The actual exception will be nested.Copyright © 2017 Oracle Corp. All Rights Reserved.