public class ArangoVertexCollectionAsyncImpl extends InternalArangoVertexCollection<ArangoDBAsyncImpl,ArangoDatabaseAsyncImpl,ArangoGraphAsyncImpl,ArangoExecutorAsync> implements ArangoVertexCollectionAsync
executor, serde
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
|
CompletableFuture<VertexEntity> |
insertVertex(Object value)
Creates a new vertex in the collection
|
CompletableFuture<VertexEntity> |
insertVertex(Object value,
VertexCreateOptions options)
Creates a new vertex in the collection
|
CompletableFuture<VertexUpdateEntity> |
replaceVertex(String key,
Object value)
Replaces the vertex with key with the one in the body, provided there is such a vertex and no precondition is
violated
|
CompletableFuture<VertexUpdateEntity> |
replaceVertex(String key,
Object 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
|
CompletableFuture<VertexUpdateEntity> |
updateVertex(String key,
Object value)
Partially updates the vertex identified by document-key.
|
CompletableFuture<VertexUpdateEntity> |
updateVertex(String key,
Object 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, getSerde, request
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
graph, name
getSerde
public CompletableFuture<Void> drop()
ArangoVertexCollectionAsync
drop
in interface ArangoVertexCollectionAsync
public CompletableFuture<VertexEntity> insertVertex(Object value)
ArangoVertexCollectionAsync
insertVertex
in interface ArangoVertexCollectionAsync
value
- A representation of a single vertex (POJO or RawData
)public CompletableFuture<VertexEntity> insertVertex(Object value, VertexCreateOptions options)
ArangoVertexCollectionAsync
insertVertex
in interface ArangoVertexCollectionAsync
value
- A representation of a single vertex (POJO or RawData
)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 or RawData
)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 or RawData
)options
- Additional options, can be nullpublic CompletableFuture<VertexUpdateEntity> replaceVertex(String key, Object value)
ArangoVertexCollectionAsync
replaceVertex
in interface ArangoVertexCollectionAsync
key
- The key of the vertexpublic CompletableFuture<VertexUpdateEntity> replaceVertex(String key, Object value, VertexReplaceOptions options)
ArangoVertexCollectionAsync
replaceVertex
in interface ArangoVertexCollectionAsync
key
- The key of the vertexoptions
- Additional options, can be nullpublic CompletableFuture<VertexUpdateEntity> updateVertex(String key, Object value)
ArangoVertexCollectionAsync
updateVertex
in interface ArangoVertexCollectionAsync
key
- The key of the vertexpublic CompletableFuture<VertexUpdateEntity> updateVertex(String key, Object 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–2023 ArangoDB GmbH. All rights reserved.