@ThreadSafe public interface ArangoVertexCollection extends ArangoSerializationAccessor
Modifier and Type | Method and Description |
---|---|
void |
deleteVertex(String key)
Deletes the vertex with the given
key from the collection. |
void |
deleteVertex(String key,
VertexDeleteOptions options)
Deletes the vertex with the given
key from the collection. |
void |
drop()
Removes a vertex collection from the graph and optionally deletes the collection, if it is not used in any other
graph
|
<T> T |
getVertex(String key,
Class<T> type)
Retrieves the vertex document with the given
key from the collection. |
<T> T |
getVertex(String key,
Class<T> type,
GraphDocumentReadOptions options)
Retrieves the vertex document with the given
key from the collection. |
ArangoGraph |
graph()
The the handler of the named graph the edge collection is within
|
<T> VertexEntity |
insertVertex(T value)
Creates a new vertex in the collection
|
<T> VertexEntity |
insertVertex(T value,
VertexCreateOptions options)
Creates a new vertex in the collection
|
String |
name()
The name of the edge collection
|
<T> 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> 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> VertexUpdateEntity |
updateVertex(String key,
T value)
Partially updates the vertex identified by document-key.
|
<T> VertexUpdateEntity |
updateVertex(String key,
T value,
VertexUpdateOptions options)
Partially updates the vertex identified by document-key.
|
util, util
ArangoGraph graph()
String name()
void drop() throws ArangoDBException
ArangoDBException
<T> VertexEntity insertVertex(T value) throws ArangoDBException
value
- A representation of a single vertex (POJO, VPackSlice or String for JSON)ArangoDBException
<T> VertexEntity insertVertex(T value, VertexCreateOptions options) throws ArangoDBException
value
- A representation of a single vertex (POJO, VPackSlice or String for JSON)options
- Additional options, can be nullArangoDBException
<T> T getVertex(String key, Class<T> type) throws ArangoDBException
key
from the collection.key
- The key of the vertextype
- The type of the vertex-document (POJO class, VPackSlice or String for JSON)ArangoDBException
<T> T getVertex(String key, Class<T> type, GraphDocumentReadOptions options) throws ArangoDBException
key
from the collection.key
- The key of the vertextype
- The type of the vertex-document (POJO class, VPackSlice or String for JSON)options
- Additional options, can be nullArangoDBException
<T> VertexUpdateEntity replaceVertex(String key, T value) throws ArangoDBException
key
- The key of the vertexvalue
- A representation of a single vertex (POJO, VPackSlice or String for JSON)ArangoDBException
<T> VertexUpdateEntity replaceVertex(String key, T value, VertexReplaceOptions options) throws ArangoDBException
key
- The key of the vertexvalue
- A representation of a single vertex (POJO, VPackSlice or String for JSON)options
- Additional options, can be nullArangoDBException
<T> VertexUpdateEntity updateVertex(String key, T value) throws ArangoDBException
T
- The type of the vertex-document (POJO class, VPackSlice or String for JSON)key
- The key of the vertexArangoDBException
<T> VertexUpdateEntity updateVertex(String key, T value, VertexUpdateOptions options) throws ArangoDBException
T
- The type of the vertex-document (POJO class, VPackSlice or String for JSON)key
- The key of the vertexoptions
- Additional options, can be nullArangoDBException
void deleteVertex(String key) throws ArangoDBException
key
from the collection.key
- The key of the vertexArangoDBException
void deleteVertex(String key, VertexDeleteOptions options) throws ArangoDBException
key
from the collection.key
- The key of the vertexoptions
- Additional options, can be nullArangoDBException
Copyright © 2016–2023 ArangoDB GmbH. All rights reserved.