public class ArangoVertexCollectionAsyncImpl extends com.arangodb.internal.InternalArangoVertexCollection<ArangoDBAsyncImpl,ArangoDatabaseAsyncImpl,ArangoGraphAsyncImpl,ArangoExecutorAsync> implements ArangoVertexCollectionAsync
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
deleteVertex(String key)
Removes a vertex
|
CompletableFuture<Void> |
deleteVertex(String key,
VertexDeleteOptions options)
Removes a vertex
|
CompletableFuture<Void> |
drop()
Removes a vertex collection from the graph and optionally deletes the collection, if it is not used in any other
graph
|
<T> CompletableFuture<T> |
getVertex(String key,
Class<T> type)
Fetches an existing vertex
|
<T> CompletableFuture<T> |
getVertex(String key,
Class<T> type,
GraphDocumentReadOptions options)
Fetches an existing vertex
|
<T> CompletableFuture<VertexEntity> |
insertVertex(T value)
Creates a new vertex in the collection
|
<T> CompletableFuture<VertexEntity> |
insertVertex(T value,
VertexCreateOptions options)
Creates a new vertex in the collection
|
<T> CompletableFuture<VertexUpdateEntity> |
replaceVertex(String key,
T value)
Replaces the vertex with key with the one in the body, provided there is such a vertex and no precondition is
violated
|
<T> CompletableFuture<VertexUpdateEntity> |
replaceVertex(String key,
T value,
VertexReplaceOptions options)
Replaces the vertex with key with the one in the body, provided there is such a vertex and no precondition is
violated
|
<T> CompletableFuture<VertexUpdateEntity> |
updateVertex(String key,
T value)
Partially updates the vertex identified by document-key.
|
<T> CompletableFuture<VertexUpdateEntity> |
updateVertex(String key,
T value,
VertexUpdateOptions options)
Partially updates the vertex identified by document-key.
|
deleteVertexRequest, dropRequest, getVertexRequest, getVertexResponseDeserializer, graph, insertVertexRequest, insertVertexResponseDeserializer, name, replaceVertexRequest, replaceVertexResponseDeserializer, updateVertexRequest, updateVertexResponseDeserializer
createPath, executor, request, util, util
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
graph, name
util, util
public CompletableFuture<Void> drop()
ArangoVertexCollectionAsync
drop
in interface ArangoVertexCollectionAsync
public <T> CompletableFuture<VertexEntity> insertVertex(T value)
ArangoVertexCollectionAsync
insertVertex
in interface ArangoVertexCollectionAsync
value
- A representation of a single vertex (POJO, VPackSlice or String for Json)public <T> CompletableFuture<VertexEntity> insertVertex(T value, VertexCreateOptions options)
ArangoVertexCollectionAsync
insertVertex
in interface ArangoVertexCollectionAsync
value
- A representation of a single vertex (POJO, VPackSlice or String for Json)options
- Additional options, can be nullpublic <T> CompletableFuture<T> getVertex(String key, Class<T> type)
ArangoVertexCollectionAsync
getVertex
in interface ArangoVertexCollectionAsync
key
- The key of the vertextype
- The type of the vertex-document (POJO class, VPackSlice or String for Json)public <T> CompletableFuture<T> getVertex(String key, Class<T> type, GraphDocumentReadOptions options)
ArangoVertexCollectionAsync
getVertex
in interface ArangoVertexCollectionAsync
key
- The key of the vertextype
- The type of the vertex-document (POJO class, VPackSlice or String for Json)options
- Additional options, can be nullpublic <T> CompletableFuture<VertexUpdateEntity> replaceVertex(String key, T value)
ArangoVertexCollectionAsync
replaceVertex
in interface ArangoVertexCollectionAsync
key
- The key of the vertexpublic <T> CompletableFuture<VertexUpdateEntity> replaceVertex(String key, T value, VertexReplaceOptions options)
ArangoVertexCollectionAsync
replaceVertex
in interface ArangoVertexCollectionAsync
key
- The key of the vertexoptions
- Additional options, can be nullpublic <T> CompletableFuture<VertexUpdateEntity> updateVertex(String key, T value)
ArangoVertexCollectionAsync
updateVertex
in interface ArangoVertexCollectionAsync
key
- The key of the vertexpublic <T> CompletableFuture<VertexUpdateEntity> updateVertex(String key, T value, VertexUpdateOptions options)
ArangoVertexCollectionAsync
updateVertex
in interface ArangoVertexCollectionAsync
key
- The key of the vertexoptions
- Additional options, can be nullpublic CompletableFuture<Void> deleteVertex(String key)
ArangoVertexCollectionAsync
deleteVertex
in interface ArangoVertexCollectionAsync
key
- The key of the vertexpublic CompletableFuture<Void> deleteVertex(String key, VertexDeleteOptions options)
ArangoVertexCollectionAsync
deleteVertex
in interface ArangoVertexCollectionAsync
key
- The key of the vertexoptions
- Additional options, can be nullCopyright © 2016–2021 ArangoDB GmbH. All rights reserved.