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, removeAll
add, addAll, addAll, addAllAsync, clear, clone, clone, cloneAsync, contains, getCollectionType, getElementType, getGraph, getName, iterator, iteratorAsync, removeAll, size, sizeAsync, toMutable, toMutable, toMutableAsync, toString
equals, hashCode
close, destroy, destroyAsync
public ComponentCollection(PgxGraph graph, java.lang.String collectionNamespace, long id)
public PgxFuture<java.lang.Void> addAllAsync(java.util.Collection<PgxVertex<ID>> source)
PgxCollection
addAllAsync
in class PgxCollection<PgxVertex<ID>,ID>
source
- vertices/edges to addpublic PgxFuture<java.lang.Void> clearAsync()
PgxCollection
clearAsync
in class PgxCollection<PgxVertex<ID>,ID>
public PgxFuture<PgxCollection<PgxVertex<ID>,ID>> cloneAsync(java.lang.String newName)
PgxCollection
cloneAsync
in class PgxCollection<PgxVertex<ID>,ID>
newName
- name of the new collectionpublic PgxFuture<java.lang.Boolean> containsAsync(PgxVertex<ID> element)
PgxCollection
true
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()
PgxCollection
PgxCollection.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()
PgxCollection
isMutableAsync
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)
PgxCollection
removeAllAsync
in class PgxCollection<PgxVertex<ID>,ID>
source
- vertices/edges to removepublic PgxFuture<PgxCollection<PgxVertex<ID>,ID>> toMutableAsync(java.lang.String newName)
PgxCollection
toMutableAsync
in class PgxCollection<PgxVertex<ID>,ID>
newName
- name of the new collectionCopyright © 2017 Oracle Corp. All Rights Reserved.