E
- the element typeID
- the ID type of the element typepublic abstract class GraphEntityCollection<E extends PgxEntity<ID>,ID> extends PgxCollection<E,ID>
Modifier and Type | Method and Description |
---|---|
void |
addAll(PgxEntity[] elements)
Adds elements of a
PgxEntity array to this collection. |
PgxFuture<java.lang.Void> |
addAllAsync(java.util.Collection<E> source) |
void |
addAllById(java.util.Collection<ID> source)
Blocking version of
addAllByIdAsync(Collection) . |
abstract void |
addAllById(ID... ids)
Replaces
addAll(Object[]) . |
PgxFuture<java.lang.Void> |
addAllByIdAsync(java.util.Collection<ID> source)
Adds vertices/edges to an existing collection using their assiated IDs
|
PgxFuture<java.lang.Void> |
addAllElementsAsync(java.util.Collection<E> source)
Adds elements to an existing collection.
|
PgxFuture<java.lang.Boolean> |
containsAsync(E element)
Returns
true if this collection contains the specified element. |
PgxFuture<java.lang.Void> |
removeAllAsync(java.util.Collection<E> source) |
void |
removeAllById(java.util.Collection<ID> source)
Blocking version of
removeAllByIdAsync(Collection) . |
abstract void |
removeAllById(ID... ids)
Replaces
removeAll(Object[]) . |
PgxFuture<java.lang.Void> |
removeAllByIdAsync(java.util.Collection<ID> source)
Removes vertices/edges from an existing vertex/edge collection using their assiated IDs
|
PgxFuture<java.lang.Void> |
removeAllElementsAsync(java.util.Collection<E> source)
Removes elements from an existing collection.
|
add, addAll, addAll, addAllAsync, addAllElements, clear, clearAsync, clone, clone, cloneAsync, cloneAsync, contains, getCollectionType, getContentType, getGraph, getId, getIdType, getName, isMutable, isMutableAsync, iterator, iteratorAsync, remove, removeAll, removeAll, removeAllElements, size, sizeAsync, stream, toMutable, toMutable, toMutableAsync, toMutableAsync, toString
equals, hashCode
close, destroy, destroyAsync
public void addAll(PgxEntity[] elements)
PgxCollection
PgxEntity
array to this collection.public PgxFuture<java.lang.Void> addAllAsync(java.util.Collection<E> source)
addAllAsync
in class PgxCollection<E extends PgxEntity<ID>,ID>
source
- elements to addpublic void addAllById(java.util.Collection<ID> source)
addAllByIdAsync(Collection)
. Calls addAllByIdAsync(Collection)
and
waits for the returned PgxFuture
to complete.public abstract void addAllById(ID... ids) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
addAll(Object[])
.ids
- elements to addjava.util.concurrent.ExecutionException
java.lang.InterruptedException
public PgxFuture<java.lang.Void> addAllByIdAsync(java.util.Collection<ID> source)
source
- collection of IDs of the elements to addpublic PgxFuture<java.lang.Void> addAllElementsAsync(java.util.Collection<E> source)
PgxCollection
PgxCollection.addAllAsync(Collection)
.addAllElementsAsync
in class PgxCollection<E extends PgxEntity<ID>,ID>
source
- elements to addpublic PgxFuture<java.lang.Boolean> containsAsync(E element)
PgxCollection
true
if this collection contains the specified element.containsAsync
in class PgxCollection<E extends PgxEntity<ID>,ID>
element
- element whose presence in this collection is to be testedtrue
if this collection contains the specified
elementpublic PgxFuture<java.lang.Void> removeAllAsync(java.util.Collection<E> source)
removeAllAsync
in class PgxCollection<E extends PgxEntity<ID>,ID>
source
- elements to removepublic void removeAllById(java.util.Collection<ID> source)
removeAllByIdAsync(Collection)
. Calls removeAllByIdAsync(Collection)
and
waits for the returned PgxFuture
to complete.public abstract void removeAllById(ID... ids) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
removeAll(Object[])
.ids
- elements to removejava.util.concurrent.ExecutionException
java.lang.InterruptedException
public PgxFuture<java.lang.Void> removeAllByIdAsync(java.util.Collection<ID> source)
source
- collection of IDs of the elements to removepublic PgxFuture<java.lang.Void> removeAllElementsAsync(java.util.Collection<E> source)
PgxCollection
PgxCollection.removeAllAsync(Collection)
.removeAllElementsAsync
in class PgxCollection<E extends PgxEntity<ID>,ID>
source
- elements to removeCopyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.