public class InternalGraphDriverImpl extends BaseArangoDriver implements InternalGraphDriver
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseUrl |
protected ArangoConfigure |
configure |
protected InternalCursorDriver |
cursorDriver |
protected HttpManager |
httpManager |
| 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 ifMatchRevision,
Long ifNoneMatchRevision)
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 databaseName,
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)
Removes a vertex collection from the graph and optionally deletes the
collection, if it is not used in any other graph.
|
<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.
|
HttpManager |
getHttpManager() |
<T> DocumentEntity<T> |
getVertex(String databaseName,
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 databaseName,
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.
|
void |
setHttpManager(HttpManager httpManager) |
<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.
|
createDocumentHandle, createDocumentHandle, createEndpointUrl, createEntity, createEntity, createEntity, createEntity, createEntityImpl, setKeyValueHeader, setStatusCode, toReplicationDumpHeader, validate, validateCollectionName, validateDatabaseName, validateDocumentHandleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHttpManager, setHttpManagerprotected InternalCursorDriver cursorDriver
protected ArangoConfigure configure
protected HttpManager httpManager
protected String baseUrl
public GraphEntity createGraph(String databaseName, String graphName, Boolean waitForSync) throws ArangoException
InternalGraphDrivercreateGraph in interface InternalGraphDriverArangoExceptionpublic GraphEntity createGraph(String databaseName, String graphName, List<EdgeDefinitionEntity> edgeDefinitions, List<String> orphanCollections, Boolean waitForSync) throws ArangoException
InternalGraphDrivercreateGraph in interface InternalGraphDriverArangoExceptionpublic GraphsEntity getGraphs(String databaseName) throws ArangoException
InternalGraphDrivergetGraphs in interface InternalGraphDriverArangoExceptionpublic List<String> getGraphList(String databaseName) throws ArangoException
InternalGraphDrivergetGraphList in interface InternalGraphDriverArangoExceptionpublic GraphEntity getGraph(String databaseName, String graphName) throws ArangoException
InternalGraphDrivergetGraph in interface InternalGraphDriverArangoExceptionpublic DeletedEntity deleteGraph(String databaseName, String graphName, Boolean dropCollections) throws ArangoException
InternalGraphDriverdeleteGraph in interface InternalGraphDriverArangoExceptionpublic List<String> getVertexCollections(String databaseName, String graphName) throws ArangoException
InternalGraphDrivergetVertexCollections in interface InternalGraphDriverArangoExceptionpublic DeletedEntity deleteVertexCollection(String databaseName, String graphName, String collectionName, Boolean dropCollection) throws ArangoException
deleteVertexCollection in interface InternalGraphDriverdatabaseName - graphName - collectionName - dropCollection - ArangoExceptionpublic GraphEntity createVertexCollection(String databaseName, String graphName, String collectionName) throws ArangoException
createVertexCollection in interface InternalGraphDriverArangoExceptionpublic List<String> getEdgeCollections(String databaseName, String graphName) throws ArangoException
InternalGraphDrivergetEdgeCollections in interface InternalGraphDriverArangoExceptionpublic GraphEntity createEdgeDefinition(String databaseName, String graphName, EdgeDefinitionEntity edgeDefinition) throws ArangoException
InternalGraphDrivercreateEdgeDefinition in interface InternalGraphDriverArangoExceptionpublic GraphEntity replaceEdgeDefinition(String databaseName, String graphName, String edgeName, EdgeDefinitionEntity edgeDefinition) throws ArangoException
InternalGraphDriverreplaceEdgeDefinition in interface InternalGraphDriverArangoExceptionpublic GraphEntity deleteEdgeDefinition(String databaseName, String graphName, String edgeName, Boolean dropCollection) throws ArangoException
InternalGraphDriverdeleteEdgeDefinition in interface InternalGraphDriverArangoExceptionpublic <T> DocumentEntity<T> createVertex(String database, String graphName, String collectionName, T vertex, Boolean waitForSync) throws ArangoException
InternalGraphDrivercreateVertex in interface InternalGraphDriverArangoExceptionpublic <T> DocumentEntity<T> getVertex(String databaseName, String graphName, String collectionName, String key, Class<?> clazz, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
InternalGraphDrivergetVertex in interface InternalGraphDriverArangoExceptionpublic <T> DocumentEntity<T> replaceVertex(String databaseName, String graphName, String collectionName, String key, Object vertex, Boolean waitForSync, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
InternalGraphDriverreplaceVertex in interface InternalGraphDriverArangoExceptionpublic <T> DocumentEntity<T> updateVertex(String databaseName, String graphName, String collectionName, String key, Object vertex, Boolean keepNull, Boolean waitForSync, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
InternalGraphDriverupdateVertex in interface InternalGraphDriverArangoExceptionpublic DeletedEntity deleteVertex(String databaseName, String graphName, String collectionName, String key, Boolean waitForSync, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
InternalGraphDriverdeleteVertex in interface InternalGraphDriverArangoExceptionpublic <T> EdgeEntity<T> createEdge(String database, String graphName, String edgeCollectionName, String fromHandle, String toHandle, Object value, Boolean waitForSync) throws ArangoException
createEdge in interface InternalGraphDriverArangoExceptionpublic <T> EdgeEntity<T> createEdge(String database, String graphName, String edgeCollectionName, String key, String fromHandle, String toHandle, Object value, Boolean waitForSync) throws ArangoException
createEdge in interface InternalGraphDriverArangoExceptionpublic <T> EdgeEntity<T> getEdge(String database, String graphName, String edgeCollectionName, String key, Class<?> clazz, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
InternalGraphDrivergetEdge in interface InternalGraphDriverArangoExceptionpublic DeletedEntity deleteEdge(String database, String graphName, String edgeCollectionName, String key, Boolean waitForSync, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
InternalGraphDriverdeleteEdge in interface InternalGraphDriverArangoExceptionpublic <T> EdgeEntity<T> replaceEdge(String database, String graphName, String edgeCollectionName, String key, Object value, Boolean waitForSync, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
InternalGraphDriverreplaceEdge in interface InternalGraphDriverArangoExceptionpublic <T> EdgeEntity<T> updateEdge(String database, String graphName, String edgeCollectionName, String key, Object value, Boolean waitForSync, Boolean keepNull, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
InternalGraphDriverupdateEdge in interface InternalGraphDriverArangoExceptionpublic <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
getEdges in interface InternalGraphDriverArangoExceptionpublic HttpManager getHttpManager()
getHttpManager in interface BaseDriverInterfacepublic void setHttpManager(HttpManager httpManager)
setHttpManager in interface BaseDriverInterfaceCopyright © 2012–2015 ArangoDB GmbH. All rights reserved.