public class ArangoEdgeCollectionAsyncImpl extends InternalArangoEdgeCollection<ArangoDBAsyncImpl,ArangoDatabaseAsyncImpl,ArangoGraphAsyncImpl,ArangoExecutorAsync> implements ArangoEdgeCollectionAsync
executor, serde
Modifier and Type | Method and Description |
---|---|
CompletableFuture<Void> |
deleteEdge(String key)
Removes a edge
|
CompletableFuture<Void> |
deleteEdge(String key,
EdgeDeleteOptions options)
Removes a edge
|
<T> CompletableFuture<T> |
getEdge(String key,
Class<T> type)
Fetches an existing edge
|
<T> CompletableFuture<T> |
getEdge(String key,
Class<T> type,
GraphDocumentReadOptions options)
Fetches an existing edge
|
CompletableFuture<EdgeEntity> |
insertEdge(Object value)
Creates a new edge in the collection
|
CompletableFuture<EdgeEntity> |
insertEdge(Object value,
EdgeCreateOptions options)
Creates a new edge in the collection
|
CompletableFuture<EdgeUpdateEntity> |
replaceEdge(String key,
Object value)
Replaces the edge with key with the one in the body, provided there is such a edge and no precondition is
violated
|
CompletableFuture<EdgeUpdateEntity> |
replaceEdge(String key,
Object value,
EdgeReplaceOptions options)
Replaces the edge with key with the one in the body, provided there is such a edge and no precondition is
violated
|
CompletableFuture<EdgeUpdateEntity> |
updateEdge(String key,
Object value)
Partially updates the edge identified by document-key.
|
CompletableFuture<EdgeUpdateEntity> |
updateEdge(String key,
Object value,
EdgeUpdateOptions options)
Partially updates the edge identified by document-key.
|
deleteEdgeRequest, getEdgeRequest, getEdgeResponseDeserializer, graph, insertEdgeRequest, insertEdgeResponseDeserializer, name, replaceEdgeRequest, replaceEdgeResponseDeserializer, updateEdgeRequest, updateEdgeResponseDeserializer
createPath, executor, getSerde, request
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
graph, name
getSerde
public CompletableFuture<EdgeEntity> insertEdge(Object value)
ArangoEdgeCollectionAsync
insertEdge
in interface ArangoEdgeCollectionAsync
value
- A representation of a single edge (POJO or RawData
public CompletableFuture<EdgeEntity> insertEdge(Object value, EdgeCreateOptions options)
ArangoEdgeCollectionAsync
insertEdge
in interface ArangoEdgeCollectionAsync
value
- A representation of a single edge (POJO or RawData
options
- Additional options, can be nullpublic <T> CompletableFuture<T> getEdge(String key, Class<T> type)
ArangoEdgeCollectionAsync
getEdge
in interface ArangoEdgeCollectionAsync
key
- The key of the edgetype
- The type of the edge-document (POJO or RawData
public <T> CompletableFuture<T> getEdge(String key, Class<T> type, GraphDocumentReadOptions options)
ArangoEdgeCollectionAsync
getEdge
in interface ArangoEdgeCollectionAsync
key
- The key of the edgetype
- The type of the edge-document (POJO or RawData
options
- Additional options, can be nullpublic CompletableFuture<EdgeUpdateEntity> replaceEdge(String key, Object value)
ArangoEdgeCollectionAsync
replaceEdge
in interface ArangoEdgeCollectionAsync
key
- The key of the edgepublic CompletableFuture<EdgeUpdateEntity> replaceEdge(String key, Object value, EdgeReplaceOptions options)
ArangoEdgeCollectionAsync
replaceEdge
in interface ArangoEdgeCollectionAsync
key
- The key of the edgeoptions
- Additional options, can be nullpublic CompletableFuture<EdgeUpdateEntity> updateEdge(String key, Object value)
ArangoEdgeCollectionAsync
updateEdge
in interface ArangoEdgeCollectionAsync
key
- The key of the edgepublic CompletableFuture<EdgeUpdateEntity> updateEdge(String key, Object value, EdgeUpdateOptions options)
ArangoEdgeCollectionAsync
updateEdge
in interface ArangoEdgeCollectionAsync
key
- The key of the edgeoptions
- Additional options, can be nullpublic CompletableFuture<Void> deleteEdge(String key)
ArangoEdgeCollectionAsync
deleteEdge
in interface ArangoEdgeCollectionAsync
key
- The key of the edgepublic CompletableFuture<Void> deleteEdge(String key, EdgeDeleteOptions options)
ArangoEdgeCollectionAsync
deleteEdge
in interface ArangoEdgeCollectionAsync
key
- The key of the edgeoptions
- Additional options, can be nullCopyright © 2016–2023 ArangoDB GmbH. All rights reserved.