public interface InternalGraphDriver extends BaseDriverInterface
Modifier and Type | Method and Description |
---|---|
<T> EdgeEntity<T> |
createEdge(String database,
String graphName,
String edgeCollectionName,
String fromHandle,
String toHandle,
Object value,
Boolean waitForSync) |
<T> EdgeEntity<T> |
createEdge(String database,
String graphName,
String edgeCollectionName,
String key,
String fromHandle,
String toHandle,
Object value,
Boolean waitForSync) |
GraphEntity |
createEdgeDefinition(String databaseName,
String graphName,
EdgeDefinitionEntity edgeDefinition)
Adds a new edge definition to an existing graph.
|
GraphEntity |
createGraph(String databaseName,
String graphName,
Boolean waitForSync)
Creates an empty graph.
|
GraphEntity |
createGraph(String databaseName,
String graphName,
List<EdgeDefinitionEntity> edgeDefinitions,
List<String> orphanCollections,
Boolean waitForSync)
Creates a graph.
|
<T> DocumentEntity<T> |
createVertex(String database,
String graphName,
String collectionName,
T vertex,
Boolean waitForSync)
Stores a new vertex with the information contained within the document into
the given collection.
|
GraphEntity |
createVertexCollection(String databaseName,
String graphName,
String collectionName) |
DeletedEntity |
deleteEdge(String database,
String graphName,
String edgeCollectionName,
String key,
Boolean waitForSync,
Long rev,
Long ifMatchRevision)
Deletes an edge with the given id, if it is contained within the graph.
|
GraphEntity |
deleteEdgeDefinition(String databaseName,
String graphName,
String edgeName,
Boolean dropCollection)
Removes an existing edge definition from this graph.
|
DeletedEntity |
deleteGraph(String databaseName,
String graphName,
Boolean dropCollections)
Delete a graph by its name.
|
DeletedEntity |
deleteVertex(String database,
String graphName,
String collectionName,
String key,
Boolean waitForSync,
Long ifMatchRevision,
Long ifNoneMatchRevision)
Deletes a vertex with the given key, if it is contained within the graph.
|
DeletedEntity |
deleteVertexCollection(String databaseName,
String graphName,
String collectionName,
Boolean dropCollection) |
<T> EdgeEntity<T> |
getEdge(String database,
String graphName,
String edgeCollectionName,
String key,
Class<?> clazz,
Long ifMatchRevision,
Long ifNoneMatchRevision)
Loads an edge with the given key if it is contained within your graph.
|
List<String> |
getEdgeCollections(String databaseName,
String graphName)
Returns a list of names of all edge collections of a graph that are defined
in the graphs edgeDefinitions
|
<T> CursorEntity<EdgeEntity<T>> |
getEdges(String database,
String graphName,
String vertexKey,
Class<?> clazz,
Integer batchSize,
Integer limit,
Boolean count,
Direction direction,
Collection<String> labels,
ArangoDriver driver,
FilterCondition... properties) |
GraphEntity |
getGraph(String databaseName,
String graphName)
Get graph object by name, including its edge definitions and vertex
collections.
|
List<String> |
getGraphList(String databaseName)
Creates a list of the names of all available graphs.
|
GraphsEntity |
getGraphs(String databaseName)
Returns a GraphsEntity containing all graph as GraphEntity object.
|
<T> DocumentEntity<T> |
getVertex(String database,
String graphName,
String collectionName,
String key,
Class<?> clazz,
Long ifMatchRevision,
Long ifNoneMatchRevision)
Gets a vertex with the given key if it is contained within your graph.
|
List<String> |
getVertexCollections(String databaseName,
String graphName)
Returns a list of names of all vertex collections of a graph, defined in
the graphs edgeDefinitions (in "from", "to", and "orphanCollections")
|
<T> EdgeEntity<T> |
replaceEdge(String database,
String graphName,
String edgeCollectionName,
String key,
Object value,
Boolean waitForSync,
Long ifMatchRevision,
Long ifNoneMatchRevision)
Replaces an edge with the given key by the content in the body.
|
GraphEntity |
replaceEdgeDefinition(String databaseName,
String graphName,
String edgeName,
EdgeDefinitionEntity edgeDefinition)
Replaces an existing edge definition to an existing graph.
|
<T> DocumentEntity<T> |
replaceVertex(String database,
String graphName,
String collectionName,
String key,
Object vertex,
Boolean waitForSync,
Long ifMatchRevision,
Long ifNoneMatchRevision)
Replaces a vertex with the given key by the content in the body.
|
<T> EdgeEntity<T> |
updateEdge(String database,
String graphName,
String edgeCollectionName,
String key,
Object value,
Boolean waitForSync,
Boolean keepNull,
Long ifMatchRevision,
Long ifNoneMatchRevision)
Updates an edge with the given key by adding the content in the body.
|
<T> DocumentEntity<T> |
updateVertex(String databaseName,
String graphName,
String collectionName,
String key,
Object vertex,
Boolean keepNull,
Boolean waitForSync,
Long ifMatchRevision,
Long ifNoneMatchRevision)
Updates a vertex with the given key by adding the content in the body.
|
getHttpManager, setHttpManager
GraphEntity createGraph(String databaseName, String graphName, Boolean waitForSync) throws ArangoException
databaseName
- graphName
- waitForSync
- ArangoException
GraphEntity createGraph(String databaseName, String graphName, List<EdgeDefinitionEntity> edgeDefinitions, List<String> orphanCollections, Boolean waitForSync) throws ArangoException
databaseName
- graphName
- edgeDefinitions
- orphanCollections
- waitForSync
- ArangoException
GraphsEntity getGraphs(String databaseName) throws ArangoException
databaseName
- ArangoException
List<String> getGraphList(String databaseName) throws ArangoException
databaseName
- ArangoException
GraphEntity getGraph(String databaseName, String graphName) throws ArangoException
databaseName
- graphName
- ArangoException
DeletedEntity deleteGraph(String databaseName, String graphName, Boolean dropCollections) throws ArangoException
databaseName
- graphName
- dropCollections
- ArangoException
List<String> getVertexCollections(String databaseName, String graphName) throws ArangoException
databaseName
- graphName
- ArangoException
GraphEntity createVertexCollection(String databaseName, String graphName, String collectionName) throws ArangoException
databaseName
- graphName
- collectionName
- ArangoException
DeletedEntity deleteVertexCollection(String databaseName, String graphName, String collectionName, Boolean dropCollection) throws ArangoException
databaseName
- graphName
- collectionName
- dropCollection
- ArangoException
List<String> getEdgeCollections(String databaseName, String graphName) throws ArangoException
databaseName
- graphName
- ArangoException
GraphEntity createEdgeDefinition(String databaseName, String graphName, EdgeDefinitionEntity edgeDefinition) throws ArangoException
databaseName
- graphName
- edgeDefinition
- ArangoException
GraphEntity replaceEdgeDefinition(String databaseName, String graphName, String edgeName, EdgeDefinitionEntity edgeDefinition) throws ArangoException
databaseName
- graphName
- edgeName
- edgeDefinition
- ArangoException
GraphEntity deleteEdgeDefinition(String databaseName, String graphName, String edgeName, Boolean dropCollection) throws ArangoException
databaseName
- graphName
- edgeName
- dropCollection
- ArangoException
<T> DocumentEntity<T> createVertex(String database, String graphName, String collectionName, T vertex, Boolean waitForSync) throws ArangoException
database
- graphName
- collectionName
- vertex
- waitForSync
- ArangoException
<T> DocumentEntity<T> getVertex(String database, String graphName, String collectionName, String key, Class<?> clazz, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
database
- graphName
- collectionName
- key
- clazz
- ifMatchRevision
- ifNoneMatchRevision
- ArangoException
<T> DocumentEntity<T> replaceVertex(String database, String graphName, String collectionName, String key, Object vertex, Boolean waitForSync, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
database
- graphName
- collectionName
- key
- vertex
- waitForSync
- ifMatchRevision
- ifNoneMatchRevision
- ArangoException
<T> DocumentEntity<T> updateVertex(String databaseName, String graphName, String collectionName, String key, Object vertex, Boolean keepNull, Boolean waitForSync, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
databaseName
- graphName
- collectionName
- key
- vertex
- keepNull
- waitForSync
- ifMatchRevision
- ifNoneMatchRevision
- ArangoException
DeletedEntity deleteVertex(String database, String graphName, String collectionName, String key, Boolean waitForSync, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
database
- graphName
- collectionName
- key
- waitForSync
- ifMatchRevision
- ifNoneMatchRevision
- ArangoException
<T> EdgeEntity<T> createEdge(String database, String graphName, String edgeCollectionName, String fromHandle, String toHandle, Object value, Boolean waitForSync) throws ArangoException
database
- graphName
- edgeCollectionName
- fromHandle
- toHandle
- value
- waitForSync
- ArangoException
<T> EdgeEntity<T> createEdge(String database, String graphName, String edgeCollectionName, String key, String fromHandle, String toHandle, Object value, Boolean waitForSync) throws ArangoException
database
- graphName
- edgeCollectionName
- key
- fromHandle
- toHandle
- value
- waitForSync
- ArangoException
<T> EdgeEntity<T> getEdge(String database, String graphName, String edgeCollectionName, String key, Class<?> clazz, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
database
- graphName
- edgeCollectionName
- key
- clazz
- rev
- ifNoneMatchRevision
- ifMatchRevision
- ArangoException
DeletedEntity deleteEdge(String database, String graphName, String edgeCollectionName, String key, Boolean waitForSync, Long rev, Long ifMatchRevision) throws ArangoException
database
- graphName
- edgeCollectionName
- key
- waitForSync
- rev
- ifMatchRevision
- ArangoException
<T> EdgeEntity<T> replaceEdge(String database, String graphName, String edgeCollectionName, String key, Object value, Boolean waitForSync, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
database
- graphName
- edgeCollectionName
- key
- value
- waitForSync
- ifMatchRevision
- ifNoneMatchRevision
- ArangoException
<T> EdgeEntity<T> updateEdge(String database, String graphName, String edgeCollectionName, String key, Object value, Boolean waitForSync, Boolean keepNull, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
database
- graphName
- edgeCollectionName
- key
- value
- waitForSync
- keepNull
- ifMatchRevision
- ifNoneMatchRevision
- ArangoException
<T> CursorEntity<EdgeEntity<T>> getEdges(String database, String graphName, String vertexKey, Class<?> clazz, Integer batchSize, Integer limit, Boolean count, Direction direction, Collection<String> labels, ArangoDriver driver, FilterCondition... properties) throws ArangoException
ArangoException
Copyright © 2012–2015 ArangoDB GmbH. All rights reserved.