Modifier and Type | Method and Description |
---|---|
long |
getDegree()
Convenience method that calls
getOutDegree() . |
PgxFuture<java.lang.Long> |
getDegreeAsync()
Returns the degree of this vertex by calling
getOutDegreeAsync() . |
long |
getInDegree()
Blocking version of
getInDegreeAsync() . |
PgxFuture<java.lang.Long> |
getInDegreeAsync()
Returns the inDegree of this vertex, i.e., the number of incoming edges of this vertex.
|
java.util.Collection<PgxEdge> |
getInEdges()
Blocking version of
getInEdges() . |
PgxFuture<java.util.Collection<PgxEdge>> |
getInEdgesAsync()
Returns all incoming edges of this vertex.
|
java.util.Collection<PgxVertex<ID>> |
getInNeighbors()
Blocking version of
getInNeighborsAsync() . |
PgxFuture<java.util.Collection<PgxVertex<ID>>> |
getInNeighborsAsync()
Returns all incoming neighbors of this vertex, i.e., all vertices that have an edge to this vertex.
|
java.util.Set<java.lang.String> |
getLabels()
Blocking version of
getLabelsAsync() . |
PgxFuture<java.util.Set<java.lang.String>> |
getLabelsAsync()
Gets the labels
|
java.util.Collection<PgxVertex<ID>> |
getNeighbors(Direction direction)
Convenience method for
getNeighbors(Direction, boolean) that keeps all duplicates. |
java.util.Collection<PgxVertex<ID>> |
getNeighbors(Direction direction, boolean removeDuplicates)
Blocking version of
getNeighborsAsync(Direction, boolean) . |
PgxFuture<java.util.Collection<PgxVertex<ID>>> |
getNeighborsAsync(Direction direction, boolean removeDuplicates)
Returns all neighbors of this vertex, i.e., all vertices that are connected to this vertex.
|
long |
getOutDegree()
Blocking version of
getOutDegreeAsync() . |
PgxFuture<java.lang.Long> |
getOutDegreeAsync()
Returns the outDegree of this vertex, i.e., the number of outgoing edges of this vertex.
|
java.util.Collection<PgxEdge> |
getOutEdges()
Blocking version of
getOutEdges() . |
PgxFuture<java.util.Collection<PgxEdge>> |
getOutEdgesAsync()
Returns all outgoing edges of this vertex.
|
java.util.Collection<PgxVertex<ID>> |
getOutNeighbors()
Blocking version of
getOutNeighborsAsync() . |
PgxFuture<java.util.Collection<PgxVertex<ID>>> |
getOutNeighborsAsync()
Returns all outgoing neighbors of this vertex, i.e., all nodes this vertex has an edge to.
|
equals, getGraph, getId, getProperty, getPropertyAsync, getType, hashCode, setProperty, setPropertyAsync, toString
public long getDegree() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getOutDegree()
.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.Long> getDegreeAsync()
getOutDegreeAsync()
.public long getInDegree() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getInDegreeAsync()
. Calls getInDegreeAsync()
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.Long> getInDegreeAsync()
public java.util.Collection<PgxEdge> getInEdges() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getInEdges()
. Calls getInEdges()
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.util.Collection<PgxEdge>> getInEdgesAsync()
public java.util.Collection<PgxVertex<ID>> getInNeighbors() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getInNeighborsAsync()
. Calls getInNeighborsAsync()
and waits for 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.util.Collection<PgxVertex<ID>>> getInNeighborsAsync()
public java.util.Set<java.lang.String> getLabels() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getLabelsAsync()
. Calls getLabelsAsync()
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.util.Set<java.lang.String>> getLabelsAsync()
java.lang.IllegalStateException
- if no labels exist.public java.util.Collection<PgxVertex<ID>> getNeighbors(Direction direction) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getNeighbors(Direction, boolean)
that keeps all duplicates.java.util.concurrent.ExecutionException
java.lang.InterruptedException
public java.util.Collection<PgxVertex<ID>> getNeighbors(Direction direction, boolean removeDuplicates) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getNeighborsAsync(Direction, boolean)
. Calls getNeighbors(Direction, boolean)
and waits for 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.util.Collection<PgxVertex<ID>>> getNeighborsAsync(Direction direction, boolean removeDuplicates)
removeDuplicates
- If removeDuplicates is set to true, the resulting collection does not contain any duplicates. Otherwise, if this vertex is connected 'N' times to a vertex 'X', vertex 'X' also appears 'N' times in the results. This method does not guarantee any ordering in the result. This method never returns null.public long getOutDegree() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getOutDegreeAsync()
. Calls getOutDegreeAsync()
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.Long> getOutDegreeAsync()
public java.util.Collection<PgxEdge> getOutEdges() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getOutEdges()
. Calls getOutEdges()
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.util.Collection<PgxEdge>> getOutEdgesAsync()
public java.util.Collection<PgxVertex<ID>> getOutNeighbors() throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
getOutNeighborsAsync()
. Calls getOutNeighborsAsync()
and waits for 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.util.Collection<PgxVertex<ID>>> getOutNeighborsAsync()
Copyright © 2017 Oracle Corp. All Rights Reserved.