public class ComponentCollection<ID> extends VertexCollection<ID>
| Constructor and Description |
|---|
ComponentCollection(PgxGraph graph, java.lang.String collectionNamespace, long id) |
| Modifier and Type | Method and Description |
|---|---|
PgxFuture<java.lang.Void> |
addAllAsync(java.util.Collection<PgxVertex<ID>> source)
Add vertices/edges to an existing vertex/edge collection
|
PgxFuture<java.lang.Void> |
clearAsync()
Clear an existing vertex/edge collection
|
PgxFuture<PgxCollection<PgxVertex<ID>,ID>> |
cloneAsync(java.lang.String newName)
Clone an existing vertex/edge collection.
|
PgxFuture<java.lang.Boolean> |
containsAsync(PgxVertex<ID> element)
Returns
true if this collection contains the specified element. |
PgxFuture<java.lang.Void> |
destroyAsync(boolean ignoreNotFound) |
boolean |
isMutable()
Blocking version of
PgxCollection.isMutableAsync(). |
PgxFuture<java.lang.Boolean> |
isMutableAsync()
Checks whether an existing vertex/edge collection is mutable
|
PgxFuture<java.lang.Void> |
removeAllAsync(java.util.Collection<PgxVertex<ID>> source)
Remove vertices/edges from an existing vertex/edge collection
|
PgxFuture<PgxCollection<PgxVertex<ID>,ID>> |
toMutableAsync(java.lang.String newName)
Create a mutable copy of an existing vertex/edge collection
|
addAll, getIdType, removeAlladd, addAll, addAll, addAllAsync, clear, clone, clone, cloneAsync, contains, getCollectionType, getElementType, getGraph, getName, iterator, iteratorAsync, removeAll, size, sizeAsync, toMutable, toMutable, toMutableAsync, toStringequals, hashCodeclose, destroy, destroyAsyncpublic ComponentCollection(PgxGraph graph, java.lang.String collectionNamespace, long id)
public PgxFuture<java.lang.Void> addAllAsync(java.util.Collection<PgxVertex<ID>> source)
PgxCollectionaddAllAsync in class PgxCollection<PgxVertex<ID>,ID>source - vertices/edges to addpublic PgxFuture<java.lang.Void> clearAsync()
PgxCollectionclearAsync in class PgxCollection<PgxVertex<ID>,ID>public PgxFuture<PgxCollection<PgxVertex<ID>,ID>> cloneAsync(java.lang.String newName)
PgxCollectioncloneAsync in class PgxCollection<PgxVertex<ID>,ID>newName - name of the new collectionpublic PgxFuture<java.lang.Boolean> containsAsync(PgxVertex<ID> element)
PgxCollectiontrue if this collection contains the specified element.containsAsync in class PgxCollection<PgxVertex<ID>,ID>element - element whose presence in this collection is to be testedtrue if this collection contains the specified elementpublic PgxFuture<java.lang.Void> destroyAsync(boolean ignoreNotFound)
ignoreNotFound - if true, do not treat the absence of this object on the server-side as an error case.public boolean isMutable()
PgxCollectionPgxCollection.isMutableAsync(). Calls PgxCollection.isMutableAsync() and waits for the returned PgxFuture to complete.isMutable in class PgxCollection<PgxVertex<ID>,ID>public PgxFuture<java.lang.Boolean> isMutableAsync()
PgxCollectionisMutableAsync in class PgxCollection<PgxVertex<ID>,ID>true if the collection is mutable, false if it is immutablepublic PgxFuture<java.lang.Void> removeAllAsync(java.util.Collection<PgxVertex<ID>> source)
PgxCollectionremoveAllAsync in class PgxCollection<PgxVertex<ID>,ID>source - vertices/edges to removepublic PgxFuture<PgxCollection<PgxVertex<ID>,ID>> toMutableAsync(java.lang.String newName)
PgxCollectiontoMutableAsync in class PgxCollection<PgxVertex<ID>,ID>newName - name of the new collectionCopyright © 2016, 2018 Oracle and/or its affiliates. All Rights Reserved.