public class ComponentCollection<ID> extends VertexCollection<ID>
Constructor and Description |
---|
ComponentCollection(PgxGraph graph,
oracle.pgx.common.PgxId collectionNamespace,
long id) |
Modifier and Type | Method and Description |
---|---|
PgxFuture<java.lang.Void> |
addAllAsync(java.util.Collection<PgxVertex<ID>> source) |
PgxFuture<java.lang.Void> |
clearAsync()
Clear an existing collection
|
PgxFuture<PgxCollection<PgxVertex<ID>,ID>> |
cloneAsync(java.lang.String newName)
Clone an existing 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 collection is mutable
|
PgxFuture<java.lang.Void> |
removeAllAsync(java.util.Collection<PgxVertex<ID>> source) |
PgxFuture<PgxCollection<PgxVertex<ID>,ID>> |
toMutableAsync(java.lang.String newName)
Create a mutable copy of an existing collection
|
addAll, addAllById, getIdType, removeAll, removeAllById
addAll, addAllById, addAllByIdAsync, addAllElementsAsync, removeAllById, removeAllByIdAsync, removeAllElementsAsync
add, addAll, addAllAsync, addAllElements, clear, clone, clone, cloneAsync, contains, getCollectionType, getContentType, getGraph, getId, getName, iterator, iteratorAsync, remove, removeAll, removeAllElements, size, sizeAsync, stream, toMutable, toMutable, toMutableAsync, toString
equals, hashCode
close, destroy, destroyAsync
public ComponentCollection(PgxGraph graph, oracle.pgx.common.PgxId collectionNamespace, long id)
public PgxFuture<java.lang.Void> addAllAsync(java.util.Collection<PgxVertex<ID>> source)
addAllAsync
in class GraphEntityCollection<PgxVertex<ID>,ID>
source
- elements 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 GraphEntityCollection<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)
removeAllAsync
in class GraphEntityCollection<PgxVertex<ID>,ID>
source
- elements 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 © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.