public interface ArangoVertexCollectionAsync
extends com.arangodb.ArangoSerializationAccessor
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
deleteVertex(String key)
Removes a vertex
|
CompletableFuture<Void> |
deleteVertex(String key,
com.arangodb.model.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,
com.arangodb.model.DocumentReadOptions options)
Fetches an existing vertex
|
ArangoGraphAsync |
graph()
The the handler of the named graph the edge collection is within
|
<T> CompletableFuture<com.arangodb.entity.VertexEntity> |
insertVertex(T value)
Creates a new vertex in the collection
|
<T> CompletableFuture<com.arangodb.entity.VertexEntity> |
insertVertex(T value,
com.arangodb.model.VertexCreateOptions options)
Creates a new vertex in the collection
|
String |
name()
The name of the edge collection
|
<T> CompletableFuture<com.arangodb.entity.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<com.arangodb.entity.VertexUpdateEntity> |
replaceVertex(String key,
T value,
com.arangodb.model.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<com.arangodb.entity.VertexUpdateEntity> |
updateVertex(String key,
T value)
Partially updates the vertex identified by document-key.
|
<T> CompletableFuture<com.arangodb.entity.VertexUpdateEntity> |
updateVertex(String key,
T value,
com.arangodb.model.VertexUpdateOptions options)
Partially updates the vertex identified by document-key.
|
ArangoGraphAsync graph()
String name()
CompletableFuture<Void> drop()
<T> CompletableFuture<com.arangodb.entity.VertexEntity> insertVertex(T value)
value - A representation of a single vertex (POJO, VPackSlice or String for Json)<T> CompletableFuture<com.arangodb.entity.VertexEntity> insertVertex(T value, com.arangodb.model.VertexCreateOptions options)
value - A representation of a single vertex (POJO, VPackSlice or String for Json)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 class, VPackSlice or String for Json)<T> CompletableFuture<T> getVertex(String key, Class<T> type, com.arangodb.model.DocumentReadOptions options)
key - The key of the vertextype - The type of the vertex-document (POJO class, VPackSlice or String for Json)options - Additional options, can be null<T> CompletableFuture<com.arangodb.entity.VertexUpdateEntity> replaceVertex(String key, T value)
key - The key of the vertextype - The type of the vertex-document (POJO class, VPackSlice or String for Json)<T> CompletableFuture<com.arangodb.entity.VertexUpdateEntity> replaceVertex(String key, T value, com.arangodb.model.VertexReplaceOptions options)
key - The key of the vertextype - The type of the vertex-document (POJO class, VPackSlice or String for Json)options - Additional options, can be null<T> CompletableFuture<com.arangodb.entity.VertexUpdateEntity> updateVertex(String key, T value) throws com.arangodb.ArangoDBException
key - The key of the vertextype - The type of the vertex-document (POJO class, VPackSlice or String for Json)ArangoDBException<T> CompletableFuture<com.arangodb.entity.VertexUpdateEntity> updateVertex(String key, T value, com.arangodb.model.VertexUpdateOptions options) throws com.arangodb.ArangoDBException
key - The key of the vertextype - The type of the vertex-document (POJO class, VPackSlice or String for Json)options - Additional options, can be nullArangoDBExceptionCompletableFuture<Void> deleteVertex(String key)
key - The key of the vertexCompletableFuture<Void> deleteVertex(String key, com.arangodb.model.VertexDeleteOptions options)
key - The key of the vertexoptions - Additional options, can be nullCopyright © 2016–2018 ArangoDB GmbH. All rights reserved.