Package oracle.pgx.api
Class GraphEntityCollection<E extends PgxEntity<ID>,ID>
java.lang.Object
oracle.pgx.api.internal.ApiObject
oracle.pgx.api.Destroyable
oracle.pgx.api.PgxManagedObject
oracle.pgx.api.PgxCollection<E,ID>
oracle.pgx.api.GraphEntityCollection<E,ID>
- Type Parameters:
E- the element typeID- the ID type of the element type
- All Implemented Interfaces:
AutoCloseable,Iterable<E>,oracle.pgx.common.IdentifiableCollection
- Direct Known Subclasses:
EdgeCollection,VertexCollection
A collection of vertices/edges.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements of aPgxEntityarray to this collection.abstract voidaddAllById(ID... ids) Replaces#addAll(Object[]).voidaddAllById(Collection<ID> source) Blocking version ofaddAllByIdAsync(Collection).addAllByIdAsync(Collection<ID> source) Adds vertices/edges to an existing collection using their associated IDsaddAllElementsAsync(Collection<E> source) Adds elements to an existing collection.containsAsync(E element) Returnstrueif this collection contains the specified element.abstract voidremoveAllById(ID... ids) Replaces#removeAll(Object[]).voidremoveAllById(Collection<ID> source) Blocking version ofremoveAllByIdAsync(Collection).removeAllByIdAsync(Collection<ID> source) Removes vertices/edges from an existing vertex/edge collection using their associated IDsremoveAllElementsAsync(Collection<E> source) Removes elements from an existing collection.Methods inherited from class oracle.pgx.api.PgxCollection
add, addAllAsync, addAllElements, clear, clearAsync, clone, clone, cloneAsync, cloneAsync, contains, destroyAsync, getCollectionType, getContentType, getGraph, getId, getIdType, getName, isMutable, isMutableAsync, iterator, iteratorAsync, remove, removeAllElements, size, sizeAsync, stream, toMutable, toMutable, toMutableAsync, toMutableAsync, toStringMethods inherited from class oracle.pgx.api.PgxManagedObject
equals, hashCodeMethods inherited from class oracle.pgx.api.Destroyable
close, destroyMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
addAllByIdAsync
Adds vertices/edges to an existing collection using their associated IDs- Parameters:
source- collection of IDs of the elements to add
-
addAllElementsAsync
Description copied from class:PgxCollectionAdds elements to an existing collection.- Specified by:
addAllElementsAsyncin classPgxCollection<E extends PgxEntity<ID>,ID> - Parameters:
source- elements to add
-
removeAllByIdAsync
Removes vertices/edges from an existing vertex/edge collection using their associated IDs- Parameters:
source- collection of IDs of the elements to remove
-
removeAllElementsAsync
Description copied from class:PgxCollectionRemoves elements from an existing collection.- Specified by:
removeAllElementsAsyncin classPgxCollection<E extends PgxEntity<ID>,ID> - Parameters:
source- elements to remove
-
containsAsync
Description copied from class:PgxCollectionReturnstrueif this collection contains the specified element.- Specified by:
containsAsyncin classPgxCollection<E extends PgxEntity<ID>,ID> - Parameters:
element- element whose presence in this collection is to be tested- Returns:
trueif this collection contains the specified element
-
addAllById
Blocking version ofaddAllByIdAsync(Collection). CallsaddAllByIdAsync(Collection)and waits for the returnedPgxFutureto complete. -
removeAllById
Blocking version ofremoveAllByIdAsync(Collection). CallsremoveAllByIdAsync(Collection)and waits for the returnedPgxFutureto complete. -
addAll
Description copied from class:PgxCollectionAdds elements of aPgxEntityarray to this collection. -
addAllById
Replaces#addAll(Object[]).- Parameters:
ids- elements to add- Throws:
ExecutionExceptionInterruptedException
-
removeAllById
Replaces#removeAll(Object[]).- Parameters:
ids- elements to remove- Throws:
ExecutionExceptionInterruptedException
-