@ThreadSafe public interface ArangoVertexCollection extends ArangoSerdeAccessor
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
|
VertexEntity |
insertVertex(Object value)
Creates a new vertex in the collection
|
VertexEntity |
insertVertex(Object value,
VertexCreateOptions options)
Creates a new vertex in the collection
|
String |
name()
The name of the edge collection
|
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
|
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
|
VertexUpdateEntity |
updateVertex(String key,
Object value)
Partially updates the vertex identified by document-key.
|
VertexUpdateEntity |
updateVertex(String key,
Object value,
VertexUpdateOptions options)
Partially updates the vertex identified by document-key.
|
getSerde
ArangoGraph graph()
String name()
void drop()
VertexEntity insertVertex(Object value)
value
- A representation of a single vertex (POJO or RawData
)VertexEntity insertVertex(Object value, VertexCreateOptions options)
value
- A representation of a single vertex (POJO or RawData
)options
- Additional options, can be null<T> T getVertex(String key, Class<T> type)
key
from the collection.key
- The key of the vertextype
- The type of the vertex-document (POJO or RawData
)<T> T getVertex(String key, Class<T> type, GraphDocumentReadOptions options)
key
from the collection.key
- The key of the vertextype
- The type of the vertex-document (POJO or RawData
)options
- Additional options, can be nullVertexUpdateEntity replaceVertex(String key, Object value)
key
- The key of the vertexvalue
- A representation of a single vertex (POJO or RawData
)VertexUpdateEntity replaceVertex(String key, Object value, VertexReplaceOptions options)
key
- The key of the vertexvalue
- A representation of a single vertex (POJO or RawData
)options
- Additional options, can be nullVertexUpdateEntity updateVertex(String key, Object value)
key
- The key of the vertexvalue
- A representation of a single vertex (POJO or RawData
)VertexUpdateEntity updateVertex(String key, Object value, VertexUpdateOptions options)
key
- The key of the vertexvalue
- A representation of a single vertex (POJO or RawData
)options
- Additional options, can be nullvoid deleteVertex(String key)
key
from the collection.key
- The key of the vertexvoid deleteVertex(String key, VertexDeleteOptions options)
key
from the collection.key
- The key of the vertexoptions
- Additional options, can be nullCopyright © 2016–2023 ArangoDB GmbH. All rights reserved.