Package oracle.pgx.api
Class ComponentCollection<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<PgxVertex<ID>,ID>
-
- oracle.pgx.api.VertexCollection<ID>
-
- oracle.pgx.api.ComponentCollection<ID>
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<PgxVertex<ID>>,oracle.pgx.common.IdentifiableCollection,oracle.pgx.common.IdentifiableVertexCollection
public class ComponentCollection<ID> extends VertexCollection<ID>
-
-
Constructor Summary
Constructors Constructor Description ComponentCollection(PgxGraph graph, oracle.pgx.common.PgxId collectionNamespace, long id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PgxFuture<java.lang.Void>addAllElementsAsync(java.util.Collection<PgxVertex<ID>> source)Adds elements to an existing collection.PgxFuture<java.lang.Void>clearAsync()Clear an existing collectionPgxFuture<PgxCollection<PgxVertex<ID>,ID>>cloneAsync(java.lang.String newName)Clone an existing collection.PgxFuture<java.lang.Boolean>containsAsync(PgxVertex<ID> element)Returnstrueif this collection contains the specified element.PgxFuture<java.lang.Void>destroyAsync()Requests destruction of this object.booleanisMutable()Blocking version ofPgxCollection.isMutableAsync().PgxFuture<java.lang.Boolean>isMutableAsync()Checks whether an existing collection is mutablePgxFuture<java.lang.Void>removeAllElementsAsync(java.util.Collection<PgxVertex<ID>> source)Removes elements from an existing collection.PgxFuture<PgxCollection<PgxVertex<ID>,ID>>toMutableAsync(java.lang.String newName)Create a mutable copy of an existing collection-
Methods inherited from class oracle.pgx.api.VertexCollection
addAllById, getIdType, removeAllById
-
Methods inherited from class oracle.pgx.api.GraphEntityCollection
addAll, addAllById, addAllByIdAsync, removeAllById, removeAllByIdAsync
-
Methods inherited from class oracle.pgx.api.PgxCollection
add, addAllAsync, addAllElements, clear, clone, clone, cloneAsync, contains, getCollectionType, getContentType, getGraph, getId, getName, iterator, iteratorAsync, remove, removeAllElements, size, sizeAsync, stream, toMutable, toMutable, toMutableAsync, toString
-
Methods inherited from class oracle.pgx.api.PgxManagedObject
equals, hashCode
-
Methods inherited from class oracle.pgx.api.Destroyable
close, destroy
-
-
-
-
Constructor Detail
-
ComponentCollection
public ComponentCollection(PgxGraph graph, oracle.pgx.common.PgxId collectionNamespace, long id)
-
-
Method Detail
-
cloneAsync
public PgxFuture<PgxCollection<PgxVertex<ID>,ID>> cloneAsync(java.lang.String newName)
Description copied from class:PgxCollectionClone an existing collection.- Overrides:
cloneAsyncin classPgxCollection<PgxVertex<ID>,ID>- Parameters:
newName- name of the new collection- Returns:
- the cloned collection
-
addAllElementsAsync
public PgxFuture<java.lang.Void> addAllElementsAsync(java.util.Collection<PgxVertex<ID>> source)
Description copied from class:PgxCollectionAdds elements to an existing collection.- Overrides:
addAllElementsAsyncin classGraphEntityCollection<PgxVertex<ID>,ID>- Parameters:
source- elements to add
-
removeAllElementsAsync
public PgxFuture<java.lang.Void> removeAllElementsAsync(java.util.Collection<PgxVertex<ID>> source)
Description copied from class:PgxCollectionRemoves elements from an existing collection.- Overrides:
removeAllElementsAsyncin classGraphEntityCollection<PgxVertex<ID>,ID>- Parameters:
source- elements to remove
-
clearAsync
public PgxFuture<java.lang.Void> clearAsync()
Description copied from class:PgxCollectionClear an existing collection- Overrides:
clearAsyncin classPgxCollection<PgxVertex<ID>,ID>
-
destroyAsync
public PgxFuture<java.lang.Void> destroyAsync()
Description copied from class:DestroyableRequests destruction of this object. After this method returns, the behavior of any method of this class becomes undefined.- Overrides:
destroyAsyncin classPgxCollection<PgxVertex<ID>,ID>- Returns:
- a future which will be completed once the destruction request finishes.
-
toMutableAsync
public PgxFuture<PgxCollection<PgxVertex<ID>,ID>> toMutableAsync(java.lang.String newName)
Description copied from class:PgxCollectionCreate a mutable copy of an existing collection- Overrides:
toMutableAsyncin classPgxCollection<PgxVertex<ID>,ID>- Parameters:
newName- name of the new collection- Returns:
- the mutable copy
-
isMutableAsync
public PgxFuture<java.lang.Boolean> isMutableAsync()
Description copied from class:PgxCollectionChecks whether an existing collection is mutable- Overrides:
isMutableAsyncin classPgxCollection<PgxVertex<ID>,ID>- Returns:
trueif the collection is mutable,falseif it is immutable
-
isMutable
public boolean isMutable()
Description copied from class:PgxCollectionBlocking version ofPgxCollection.isMutableAsync(). CallsPgxCollection.isMutableAsync()and waits for the returnedPgxFutureto complete.- Overrides:
isMutablein classPgxCollection<PgxVertex<ID>,ID>
-
containsAsync
public PgxFuture<java.lang.Boolean> containsAsync(PgxVertex<ID> element)
Description copied from class:PgxCollectionReturnstrueif this collection contains the specified element.- Overrides:
containsAsyncin classGraphEntityCollection<PgxVertex<ID>,ID>- Parameters:
element- element whose presence in this collection is to be tested- Returns:
trueif this collection contains the specified element
-
-