public class ArangoVertexCollectionImpl extends InternalArangoVertexCollection<ArangoDBImpl,ArangoDatabaseImpl,ArangoGraphImpl,ArangoExecutorSync> implements ArangoVertexCollection
executor, serde| Modifier | Constructor and Description |
|---|---|
protected |
ArangoVertexCollectionImpl(ArangoGraphImpl graph,
String name) |
| 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. |
VertexEntity |
insertVertex(Object value)
Creates a new vertex in the collection
|
VertexEntity |
insertVertex(Object value,
VertexCreateOptions options)
Creates a new vertex in the 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.
|
deleteVertexRequest, dropRequest, getVertexRequest, getVertexResponseDeserializer, graph, insertVertexRequest, insertVertexResponseDeserializer, name, replaceVertexRequest, replaceVertexResponseDeserializer, updateVertexRequest, updateVertexResponseDeserializercreatePath, executor, getSerde, requestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgraph, namegetSerdeprotected ArangoVertexCollectionImpl(ArangoGraphImpl graph, String name)
public void drop()
ArangoVertexCollectiondrop in interface ArangoVertexCollectionpublic VertexEntity insertVertex(Object value)
ArangoVertexCollectioninsertVertex in interface ArangoVertexCollectionvalue - A representation of a single vertex (POJO or RawData)public VertexEntity insertVertex(Object value, VertexCreateOptions options)
ArangoVertexCollectioninsertVertex in interface ArangoVertexCollectionvalue - A representation of a single vertex (POJO or RawData)options - Additional options, can be nullpublic <T> T getVertex(String key, Class<T> type)
ArangoVertexCollectionkey from the collection.getVertex in interface ArangoVertexCollectionkey - The key of the vertextype - The type of the vertex-document (POJO or RawData)public <T> T getVertex(String key, Class<T> type, GraphDocumentReadOptions options)
ArangoVertexCollectionkey from the collection.getVertex in interface ArangoVertexCollectionkey - The key of the vertextype - The type of the vertex-document (POJO or RawData)options - Additional options, can be nullpublic VertexUpdateEntity replaceVertex(String key, Object value)
ArangoVertexCollectionreplaceVertex in interface ArangoVertexCollectionkey - The key of the vertexvalue - A representation of a single vertex (POJO or RawData)public VertexUpdateEntity replaceVertex(String key, Object value, VertexReplaceOptions options)
ArangoVertexCollectionreplaceVertex in interface ArangoVertexCollectionkey - The key of the vertexvalue - A representation of a single vertex (POJO or RawData)options - Additional options, can be nullpublic VertexUpdateEntity updateVertex(String key, Object value)
ArangoVertexCollectionupdateVertex in interface ArangoVertexCollectionkey - The key of the vertexvalue - A representation of a single vertex (POJO or RawData)public VertexUpdateEntity updateVertex(String key, Object value, VertexUpdateOptions options)
ArangoVertexCollectionupdateVertex in interface ArangoVertexCollectionkey - The key of the vertexvalue - A representation of a single vertex (POJO or RawData)options - Additional options, can be nullpublic void deleteVertex(String key)
ArangoVertexCollectionkey from the collection.deleteVertex in interface ArangoVertexCollectionkey - The key of the vertexpublic void deleteVertex(String key, VertexDeleteOptions options)
ArangoVertexCollectionkey from the collection.deleteVertex in interface ArangoVertexCollectionkey - The key of the vertexoptions - Additional options, can be nullCopyright © 2016–2023 ArangoDB GmbH. All rights reserved.