Package com.arangodb
Interface ArangoVertexCollection
- All Superinterfaces:
ArangoSerdeAccessor
- All Known Implementing Classes:
ArangoVertexCollectionImpl
Interface for operations on ArangoDB vertex collection level.
- Author:
- Mark Vollmary
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteVertex
(String key) Deletes the vertex with the givenkey
from the collection.void
deleteVertex
(String key, VertexDeleteOptions options) Deletes the vertex with the givenkey
from the collection.void
drop()
Deprecated.void
drop
(VertexCollectionDropOptions options) Deprecated.useremove(VertexCollectionRemoveOptions)
instead<T> T
Retrieves the vertex document with the givenkey
from the collection.<T> T
getVertex
(String key, Class<T> type, GraphDocumentReadOptions options) Retrieves the vertex document with the givenkey
from the collection.graph()
The handler of the named graph the edge collection is withininsertVertex
(Object value) Creates a new vertex in the collectioninsertVertex
(Object value, VertexCreateOptions options) Creates a new vertex in the collectionname()
The name of the edge collectionvoid
remove()
Remove a vertex collection form the graph.void
remove
(VertexCollectionRemoveOptions options) Remove a vertex collection form the graph.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 violatedreplaceVertex
(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 violatedupdateVertex
(String key, Object value) Partially updates the vertex identified by document-key.updateVertex
(String key, Object value, VertexUpdateOptions options) Partially updates the vertex identified by document-key.Methods inherited from interface com.arangodb.ArangoSerdeAccessor
getSerde
-
Method Details
-
graph
ArangoGraph graph()The handler of the named graph the edge collection is within- Returns:
- graph handler
-
name
String name()The name of the edge collection- Returns:
- collection name
-
drop
Deprecated.useremove()
insteadRemove a vertex collection form the graph.- See Also:
-
drop
Deprecated.useremove(VertexCollectionRemoveOptions)
insteadRemove a vertex collection form the graph.- Parameters:
options
- options- See Also:
-
remove
void remove()Remove a vertex collection form the graph.- See Also:
-
remove
Remove a vertex collection form the graph.- Parameters:
options
- options- See Also:
-
insertVertex
Creates a new vertex in the collection- Parameters:
value
- A representation of a single vertex (POJO orRawData
)- Returns:
- information about the vertex
- See Also:
-
insertVertex
Creates a new vertex in the collection- Parameters:
value
- A representation of a single vertex (POJO orRawData
)options
- Additional options, can be null- Returns:
- information about the vertex
- See Also:
-
getVertex
Retrieves the vertex document with the givenkey
from the collection.- Parameters:
key
- The key of the vertextype
- The type of the vertex-document (POJO orRawData
)- Returns:
- the vertex identified by the key
- See Also:
-
getVertex
Retrieves the vertex document with the givenkey
from the collection.- Parameters:
key
- The key of the vertextype
- The type of the vertex-document (POJO orRawData
)options
- Additional options, can be null- Returns:
- the vertex identified by the key
- See Also:
-
replaceVertex
Replaces the vertex with key with the one in the body, provided there is such a vertex and no precondition is violated- Parameters:
key
- The key of the vertexvalue
- A representation of a single vertex (POJO orRawData
)- Returns:
- information about the vertex
- See Also:
-
replaceVertex
Replaces the vertex with key with the one in the body, provided there is such a vertex and no precondition is violated- Parameters:
key
- The key of the vertexvalue
- A representation of a single vertex (POJO orRawData
)options
- Additional options, can be null- Returns:
- information about the vertex
- See Also:
-
updateVertex
Partially updates the vertex identified by document-key. The value must contain a document with the attributes to patch (the patch document). All attributes from the patch document will be added to the existing document if they do not yet exist, and overwritten in the existing document if they do exist there.- Parameters:
key
- The key of the vertexvalue
- A representation of a single vertex (POJO orRawData
)- Returns:
- information about the vertex
- See Also:
-
updateVertex
Partially updates the vertex identified by document-key. The value must contain a document with the attributes to patch (the patch document). All attributes from the patch document will be added to the existing document if they do not yet exist, and overwritten in the existing document if they do exist there.- Parameters:
key
- The key of the vertexvalue
- A representation of a single vertex (POJO orRawData
)options
- Additional options, can be null- Returns:
- information about the vertex
- See Also:
-
deleteVertex
Deletes the vertex with the givenkey
from the collection.- Parameters:
key
- The key of the vertex- See Also:
-
deleteVertex
Deletes the vertex with the givenkey
from the collection.- Parameters:
key
- The key of the vertexoptions
- Additional options, can be null- See Also:
-
remove()
instead