Package com.c8db.internal
Class InternalC8Database<A extends InternalC8DB<E>,E extends C8Executor>
- java.lang.Object
-
- com.c8db.internal.C8Executeable<E>
-
- com.c8db.internal.InternalC8Database<A,E>
-
- Direct Known Subclasses:
C8DatabaseImpl
public abstract class InternalC8Database<A extends InternalC8DB<E>,E extends C8Executor> extends C8Executeable<E>
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringPATH_API_CURSORprotected static StringPATH_API_DATABASEprotected static StringPATH_API_DCLISTprotected static StringPATH_API_EXPLAINprotected static StringPATH_API_PERSISTENTprotected static StringPATH_API_QUERYprotected static StringPATH_API_QUERY_CURRENTprotected static StringPATH_API_QUERY_PROPERTIESprotected static StringPATH_API_QUERY_SLOWprotected static StringPATH_API_STREAMprotected static StringPATH_API_STREAMSprotected static StringPATH_API_TENANTprotected static StringPATH_API_TRANSACTIONprotected static StringPATH_API_USERprotected static StringPATH_API_USER_QUERIESprotected static StringPATH_API_VERSION-
Fields inherited from class com.c8db.internal.C8Executeable
context, executor, util
-
-
Method Summary
-
Methods inherited from class com.c8db.internal.C8Executeable
createPath, executor, request, util, util
-
-
-
-
Field Detail
-
PATH_API_DATABASE
protected static final String PATH_API_DATABASE
- See Also:
- Constant Field Values
-
PATH_API_DCLIST
protected static final String PATH_API_DCLIST
- See Also:
- Constant Field Values
-
PATH_API_TENANT
protected static final String PATH_API_TENANT
- See Also:
- Constant Field Values
-
PATH_API_USER
protected static final String PATH_API_USER
- See Also:
- Constant Field Values
-
PATH_API_VERSION
protected static final String PATH_API_VERSION
- See Also:
- Constant Field Values
-
PATH_API_STREAMS
protected static final String PATH_API_STREAMS
- See Also:
- Constant Field Values
-
PATH_API_PERSISTENT
protected static final String PATH_API_PERSISTENT
- See Also:
- Constant Field Values
-
PATH_API_STREAM
protected static final String PATH_API_STREAM
- See Also:
- Constant Field Values
-
PATH_API_TRANSACTION
protected static final String PATH_API_TRANSACTION
- See Also:
- Constant Field Values
-
PATH_API_CURSOR
protected static final String PATH_API_CURSOR
- See Also:
- Constant Field Values
-
PATH_API_QUERY
protected static final String PATH_API_QUERY
- See Also:
- Constant Field Values
-
PATH_API_QUERY_CURRENT
protected static final String PATH_API_QUERY_CURRENT
- See Also:
- Constant Field Values
-
PATH_API_EXPLAIN
protected static final String PATH_API_EXPLAIN
- See Also:
- Constant Field Values
-
PATH_API_QUERY_SLOW
protected static final String PATH_API_QUERY_SLOW
- See Also:
- Constant Field Values
-
PATH_API_QUERY_PROPERTIES
protected static final String PATH_API_QUERY_PROPERTIES
- See Also:
- Constant Field Values
-
PATH_API_USER_QUERIES
protected static final String PATH_API_USER_QUERIES
- See Also:
- Constant Field Values
-
-
Method Detail
-
c8db
public A c8db()
-
tenant
public String tenant()
-
name
public String name()
-
spotDc
public String spotDc()
-
dcList
public String dcList()
-
getDatabaseResponseDeserializer
protected C8Executor.ResponseDeserializer<Collection<String>> getDatabaseResponseDeserializer()
-
getAccessibleDatabasesForResponseDeserializer
protected C8Executor.ResponseDeserializer<Collection<String>> getAccessibleDatabasesForResponseDeserializer()
-
getAccessibleDatabasesRequest
protected Request getAccessibleDatabasesRequest()
-
getVersionRequest
protected Request getVersionRequest()
-
createCollectionRequest
protected Request createCollectionRequest(String name, CollectionCreateOptions options)
-
getCollectionsRequest
protected Request getCollectionsRequest(CollectionsReadOptions options)
-
getCollectionsResponseDeserializer
protected C8Executor.ResponseDeserializer<Collection<CollectionEntity>> getCollectionsResponseDeserializer()
-
dropRequest
protected Request dropRequest()
-
createDropResponseDeserializer
protected C8Executor.ResponseDeserializer<Boolean> createDropResponseDeserializer()
-
grantAccessRequest
protected Request grantAccessRequest(String user, Permissions permissions)
-
getPermissionsResponseDeserialzer
protected C8Executor.ResponseDeserializer<Permissions> getPermissionsResponseDeserialzer()
-
queryRequest
protected Request queryRequest(String query, Map<String,Object> bindVars, C8qlQueryOptions options)
-
getCurrentlyRunningQueriesRequest
protected Request getCurrentlyRunningQueriesRequest()
-
explainQueryRequest
protected Request explainQueryRequest(String query, Map<String,Object> bindVars, C8qlQueryExplainOptions options)
-
getQueryTrackingPropertiesRequest
protected Request getQueryTrackingPropertiesRequest()
-
setQueryTrackingPropertiesRequest
protected Request setQueryTrackingPropertiesRequest(QueryTrackingPropertiesEntity properties)
-
clearSlowQueriesRequest
protected Request clearSlowQueriesRequest()
-
getSlowQueriesRequest
protected Request getSlowQueriesRequest()
-
createGraphRequest
protected Request createGraphRequest(String name, Collection<EdgeDefinition> edgeDefinitions, GraphCreateOptions options)
-
createGraphResponseDeserializer
protected C8Executor.ResponseDeserializer<GraphEntity> createGraphResponseDeserializer()
-
getGraphsRequest
protected Request getGraphsRequest()
-
getGraphsResponseDeserializer
protected C8Executor.ResponseDeserializer<Collection<GraphEntity>> getGraphsResponseDeserializer()
-
transactionRequest
protected Request transactionRequest(String action, C8TransactionOptions options)
-
transactionResponseDeserializer
protected <T> C8Executor.ResponseDeserializer<T> transactionResponseDeserializer(Class<T> type)
-
beginStreamTransactionRequest
protected Request beginStreamTransactionRequest(StreamTransactionOptions options)
-
getStreamTransactionsRequest
protected Request getStreamTransactionsRequest()
-
transactionsResponseDeserializer
protected C8Executor.ResponseDeserializer<Collection<TransactionEntity>> transactionsResponseDeserializer()
-
streamTransactionResponseDeserializer
protected C8Executor.ResponseDeserializer<StreamTransactionEntity> streamTransactionResponseDeserializer()
-
getInfoRequest
protected Request getInfoRequest()
-
getInfoResponseDeserializer
protected C8Executor.ResponseDeserializer<DatabaseEntity> getInfoResponseDeserializer()
-
executeTraversalRequest
protected Request executeTraversalRequest(TraversalOptions options)
-
executeTraversalResponseDeserializer
protected <E,V> C8Executor.ResponseDeserializer<TraversalEntity<V,E>> executeTraversalResponseDeserializer(Class<V> vertexClass, Class<E> edgeClass)
-
deserializeVertices
protected <V> Collection<V> deserializeVertices(Class<V> vertexClass, com.arangodb.velocypack.VPackSlice vpack) throws com.arangodb.velocypack.exception.VPackException
- Throws:
com.arangodb.velocypack.exception.VPackException
-
deserializeEdges
protected <E> Collection<E> deserializeEdges(Class<E> edgeClass, com.arangodb.velocypack.VPackSlice next) throws com.arangodb.velocypack.exception.VPackException
- Throws:
com.arangodb.velocypack.exception.VPackException
-
createC8PersistentStreamRequest
protected Request createC8PersistentStreamRequest(String name, C8StreamCreateOptions options)
-
getC8PersistentStreamsRequest
protected Request getC8PersistentStreamsRequest(C8StreamCreateOptions options)
-
getC8StreamsResponseDeserializer
protected C8Executor.ResponseDeserializer<Collection<C8StreamEntity>> getC8StreamsResponseDeserializer()
-
getC8StreamsRequest
protected Request getC8StreamsRequest()
-
clearC8StreamBacklogRequest
protected Request clearC8StreamBacklogRequest()
-
createUserQueryRequest
protected Request createUserQueryRequest(UserQueryOptions options, String user)
-
createUserQueryResponseDeserializer
protected C8Executor.ResponseDeserializer<UserQueryEntity> createUserQueryResponseDeserializer()
-
-