@ThreadSafe public interface ArangoVertexCollectionAsync extends ArangoSerdeAccessor
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
|
ArangoGraphAsync |
graph()
The the handler of the named graph the edge collection is within
|
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
|
String |
name()
The name of the edge 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.
|
getSerde
ArangoGraphAsync graph()
String name()
CompletableFuture<Void> drop()
CompletableFuture<VertexEntity> insertVertex(Object value)
value
- A representation of a single vertex (POJO or RawData
)CompletableFuture<VertexEntity> insertVertex(Object value, VertexCreateOptions options)
value
- A representation of a single vertex (POJO or RawData
)options
- Additional options, can be null<T> CompletableFuture<T> getVertex(String key, Class<T> type)
key
- The key of the vertextype
- The type of the vertex-document (POJO or RawData
)<T> CompletableFuture<T> getVertex(String key, Class<T> type, GraphDocumentReadOptions options)
key
- The key of the vertextype
- The type of the vertex-document (POJO or RawData
)options
- Additional options, can be nullCompletableFuture<VertexUpdateEntity> replaceVertex(String key, Object value)
key
- The key of the vertexCompletableFuture<VertexUpdateEntity> replaceVertex(String key, Object value, VertexReplaceOptions options)
key
- The key of the vertexoptions
- Additional options, can be nullCompletableFuture<VertexUpdateEntity> updateVertex(String key, Object value)
key
- The key of the vertexCompletableFuture<VertexUpdateEntity> updateVertex(String key, Object value, VertexUpdateOptions options)
key
- The key of the vertexoptions
- Additional options, can be nullCompletableFuture<Void> deleteVertex(String key)
key
- The key of the vertexCompletableFuture<Void> deleteVertex(String key, VertexDeleteOptions options)
key
- The key of the vertexoptions
- Additional options, can be nullCopyright © 2016–2023 ArangoDB GmbH. All rights reserved.