Package com.arangodb.internal
Class ArangoDatabaseImpl
java.lang.Object
com.arangodb.internal.ArangoExecuteable
com.arangodb.internal.InternalArangoDatabase
com.arangodb.internal.ArangoDatabaseImpl
- All Implemented Interfaces:
ArangoDatabase
,ArangoSerdeAccessor
- Author:
- Mark Vollmary, Michele Rastelli
-
Field Summary
Fields inherited from class com.arangodb.internal.InternalArangoDatabase
PATH_API_DATABASE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAborts a Stream Transaction.arango()
Return the main entry point for the ArangoDB driverarangoSearch
(String name) Returns aArangoSearch
instance for the given view name.Begins a Stream Transaction.void
Clears the AQL query cachevoid
Clears the list of slow AQL queriescollection
(String name) Returns aArangoCollection
instance for the given collection name.Commits a Stream Transaction.create()
Creates the databasevoid
createAqlFunction
(String name, String code, AqlFunctionCreateOptions options) Create a new AQL user functioncreateArangoSearch
(String name, ArangoSearchCreateOptions options) Creates a ArangoSearch view with the givenoptions
, then returns view information from the server.createCollection
(String name) Creates a collection for the given collection's name, then returns collection information from the server.createCollection
(String name, CollectionCreateOptions options) Creates a collection with the givenoptions
for this collection's name, then returns collection information from the server.createGraph
(String name, Iterable<EdgeDefinition> edgeDefinitions) Create a new graph in the graph module.createGraph
(String name, Iterable<EdgeDefinition> edgeDefinitions, GraphCreateOptions options) Create a new graph in the graph module.createSearchAlias
(String name, SearchAliasCreateOptions options) Creates a SearchAlias view with the givenoptions
, then returns view information from the server.createSearchAnalyzer
(SearchAnalyzer analyzer) Creates an AnalyzercreateView
(String name, ViewType type) Creates a view of the giventype
, then returns view information from the server.<T> ArangoCursor<T>
Return an cursor from the given cursor-ID if still existing<T> ArangoCursor<T>
cursor
(String cursorId, Class<T> type, AqlQueryOptions options) Return an cursor from the given cursor-ID if still existing<T> ArangoCursor<T>
Return an cursor from the given cursor-ID if still existing<T> ArangoCursor<T>
cursor
(String cursorId, Class<T> type, String nextBatchId, AqlQueryOptions options) Return an cursor from the given cursor-ID if still existingdeleteAqlFunction
(String name, AqlFunctionDeleteOptions options) Deletes the AQL user function with the given name from the database.deleteIndex
(String id) Deletes an indexvoid
deleteSearchAnalyzer
(String name) Deletes an Analyzervoid
deleteSearchAnalyzer
(String name, AnalyzerDeleteOptions options) Deletes an Analyzerdrop()
Deletes the database from the server.boolean
exists()
Checks whether the database existsexplainAqlQuery
(String query, Map<String, Object> bindVars, AqlQueryExplainOptions options) Explain an AQL query and return information about itexplainAqlQuery
(String query, Map<String, Object> bindVars, ExplainAqlQueryOptions options) Explain an AQL query and return information about itexplainQuery
(String query, Map<String, Object> bindVars, AqlQueryExplainOptions options) Explain an AQL query and return information about itRetrieves a list of all databases the current user can accessgetAqlFunctions
(AqlFunctionGetOptions options) Gets all reqistered AQL user functionsFetches all collections from the database and returns an list of collection descriptions.getCollections
(CollectionsReadOptions options) Fetches all collections from the database and returns an list of collection descriptions.Returns a list of currently running AQL queriesReturns the name of the used storage engine.Lists all graphs known to the graph moduleReturns an indexgetInfo()
Retrieves information about the current databasegetPermissions
(String user) Get specific database access levelReturns the global configuration for the AQL query cacheReturns the configuration for the AQL query trackinggetSearchAnalyzer
(String name) Gets information about an AnalyzerRetrieves all analyzers definitions.Returns a list of slow running AQL queriesGets information about a Stream Transaction.Gets all the currently running Stream Transactions.Returns the server name and version number.getViews()
Fetches all views from the database and returns a list of view descriptions.void
grantAccess
(String user) Grants access to the database for useruser
.void
grantAccess
(String user, Permissions permissions) Grants or revoke access to the database for useruser
.void
grantDefaultCollectionAccess
(String user, Permissions permissions) Sets the default access level for collections within this database for the useruser
.Returns aArangoGraph
instance for the given graph name.void
Kills a running query.parseQuery
(String query) Parse an AQL query and return information about it This method is for query validation only.<T> ArangoCursor<T>
Performs a database query using the givenquery
, then returns a newArangoCursor
instance for the result list.<T> ArangoCursor<T>
query
(String query, Class<T> type, AqlQueryOptions options) Performs a database query using the givenquery
, then returns a newArangoCursor
instance for the result list.<T> ArangoCursor<T>
Performs a database query using the givenquery
andbindVars
, then returns a newArangoCursor
instance for the result list.<T> ArangoCursor<T>
Performs a database query using the givenquery
andbindVars
, then returns a newArangoCursor
instance for the result list.void
Reload the routing table.void
resetAccess
(String user) Clear the database access level, revert back to the default access level.void
revokeAccess
(String user) Revokes access to the database dbname for useruser
.searchAlias
(String name) Returns aSearchAlias
instance for the given view name.setQueryCacheProperties
(QueryCachePropertiesEntity properties) Changes the configuration for the AQL query cache.Changes the configuration for the AQL query tracking<T> T
transaction
(String action, Class<T> type, TransactionOptions options) Performs a server-side transaction and returns its return value.Returns aArangoView
instance for the given view name.Methods inherited from class com.arangodb.internal.InternalArangoDatabase
abortStreamTransactionRequest, beginStreamTransactionRequest, clearQueryCacheRequest, clearSlowQueriesRequest, commitStreamTransactionRequest, createAnalyzerRequest, createAqlFunctionRequest, createArangoSearchRequest, createCollectionRequest, createDropResponseDeserializer, createGraphRequest, createGraphResponseDeserializer, createSearchAliasRequest, createViewRequest, cursorEntityDeserializer, deleteAnalyzerRequest, deleteAqlFunctionRequest, deleteAqlFunctionResponseDeserializer, dropRequest, explainQueryRequest, explainQueryRequest, getAccessibleDatabasesRequest, getAnalyzerRequest, getAnalyzersRequest, getAqlFunctionsRequest, getAqlFunctionsResponseDeserializer, getCollectionsRequest, getCollectionsResponseDeserializer, getCurrentlyRunningQueriesRequest, getDatabaseResponseDeserializer, getEngineRequest, getGraphsRequest, getGraphsResponseDeserializer, getInfoRequest, getInfoResponseDeserializer, getPermissionsRequest, getPermissionsResponseDeserialzer, getQueryCachePropertiesRequest, getQueryTrackingPropertiesRequest, getSearchAnalyzersResponseDeserializer, getSlowQueriesRequest, getStreamTransactionRequest, getStreamTransactionsRequest, getVersionRequest, getViewsRequest, getViewsResponseDeserializer, grantAccessRequest, killQueryRequest, name, parseQueryRequest, queryCloseRequest, queryNextRequest, queryRequest, reloadRoutingRequest, resetAccessRequest, setQueryCachePropertiesRequest, setQueryTrackingPropertiesRequest, streamTransactionResponseDeserializer, transactionRequest, transactionResponseDeserializer, transactionsResponseDeserializer, updateUserDefaultCollectionAccessRequest
Methods inherited from class com.arangodb.internal.ArangoExecuteable
createPath, executorAsync, executorSync, getSerde, request
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.arangodb.ArangoDatabase
name
Methods inherited from interface com.arangodb.ArangoSerdeAccessor
getSerde
-
Constructor Details
-
ArangoDatabaseImpl
-
-
Method Details
-
arango
Description copied from interface:ArangoDatabase
Return the main entry point for the ArangoDB driver- Specified by:
arango
in interfaceArangoDatabase
- Returns:
- main entry point
-
getVersion
Description copied from interface:ArangoDatabase
Returns the server name and version number.- Specified by:
getVersion
in interfaceArangoDatabase
- Returns:
- the server version, number
- See Also:
-
getEngine
Description copied from interface:ArangoDatabase
Returns the name of the used storage engine.- Specified by:
getEngine
in interfaceArangoDatabase
- Returns:
- the storage engine name
- See Also:
-
exists
public boolean exists()Description copied from interface:ArangoDatabase
Checks whether the database exists- Specified by:
exists
in interfaceArangoDatabase
- Returns:
- true if the database exists, otherwise false
- See Also:
-
getAccessibleDatabases
Description copied from interface:ArangoDatabase
Retrieves a list of all databases the current user can access- Specified by:
getAccessibleDatabases
in interfaceArangoDatabase
- Returns:
- a list of all databases the current user can access
- See Also:
-
collection
Description copied from interface:ArangoDatabase
Returns aArangoCollection
instance for the given collection name.- Specified by:
collection
in interfaceArangoDatabase
- Parameters:
name
- Name of the collection- Returns:
- collection handler
-
createCollection
Description copied from interface:ArangoDatabase
Creates a collection for the given collection's name, then returns collection information from the server.- Specified by:
createCollection
in interfaceArangoDatabase
- Parameters:
name
- The name of the collection- Returns:
- information about the collection
- See Also:
-
createCollection
Description copied from interface:ArangoDatabase
Creates a collection with the givenoptions
for this collection's name, then returns collection information from the server.- Specified by:
createCollection
in interfaceArangoDatabase
- Parameters:
name
- The name of the collectionoptions
- Additional options, can be null- Returns:
- information about the collection
- See Also:
-
getCollections
Description copied from interface:ArangoDatabase
Fetches all collections from the database and returns an list of collection descriptions.- Specified by:
getCollections
in interfaceArangoDatabase
- Returns:
- list of information about all collections
- See Also:
-
getCollections
Description copied from interface:ArangoDatabase
Fetches all collections from the database and returns an list of collection descriptions.- Specified by:
getCollections
in interfaceArangoDatabase
- Parameters:
options
- Additional options, can be null- Returns:
- list of information about all collections
- See Also:
-
getIndex
Description copied from interface:ArangoDatabase
Returns an index- Specified by:
getIndex
in interfaceArangoDatabase
- Parameters:
id
- The index-handle- Returns:
- information about the index
- See Also:
-
deleteIndex
Description copied from interface:ArangoDatabase
Deletes an index- Specified by:
deleteIndex
in interfaceArangoDatabase
- Parameters:
id
- The index-handle- Returns:
- the id of the index
- See Also:
-
create
Description copied from interface:ArangoDatabase
Creates the database- Specified by:
create
in interfaceArangoDatabase
- Returns:
- true if the database was created successfully.
- See Also:
-
drop
Description copied from interface:ArangoDatabase
Deletes the database from the server.- Specified by:
drop
in interfaceArangoDatabase
- Returns:
- true if the database was dropped successfully
- See Also:
-
grantAccess
Description copied from interface:ArangoDatabase
Grants or revoke access to the database for useruser
. You need permission to the _system database in order to execute this call.- Specified by:
grantAccess
in interfaceArangoDatabase
- Parameters:
user
- The name of the userpermissions
- The permissions the user grant- See Also:
-
grantAccess
Description copied from interface:ArangoDatabase
Grants access to the database for useruser
. You need permission to the _system database in order to execute this call.- Specified by:
grantAccess
in interfaceArangoDatabase
- Parameters:
user
- The name of the user- See Also:
-
revokeAccess
Description copied from interface:ArangoDatabase
Revokes access to the database dbname for useruser
. You need permission to the _system database in order to execute this call.- Specified by:
revokeAccess
in interfaceArangoDatabase
- Parameters:
user
- The name of the user- See Also:
-
resetAccess
Description copied from interface:ArangoDatabase
Clear the database access level, revert back to the default access level.- Specified by:
resetAccess
in interfaceArangoDatabase
- Parameters:
user
- The name of the user- See Also:
-
grantDefaultCollectionAccess
Description copied from interface:ArangoDatabase
Sets the default access level for collections within this database for the useruser
. You need permission to the _system database in order to execute this call.- Specified by:
grantDefaultCollectionAccess
in interfaceArangoDatabase
- Parameters:
user
- The name of the userpermissions
- The permissions the user grant- See Also:
-
getPermissions
Description copied from interface:ArangoDatabase
Get specific database access level- Specified by:
getPermissions
in interfaceArangoDatabase
- Parameters:
user
- The name of the user- Returns:
- permissions of the user
- See Also:
-
query
public <T> ArangoCursor<T> query(String query, Class<T> type, Map<String, Object> bindVars, AqlQueryOptions options) Description copied from interface:ArangoDatabase
Performs a database query using the givenquery
andbindVars
, then returns a newArangoCursor
instance for the result list.- Specified by:
query
in interfaceArangoDatabase
- Parameters:
query
- An AQL query stringtype
- The type of the result (POJO orRawData
)bindVars
- key/value pairs defining the variables to bind the query tooptions
- Additional options that will be passed to the query API, can be null- Returns:
- cursor of the results
- See Also:
-
query
Description copied from interface:ArangoDatabase
Performs a database query using the givenquery
andbindVars
, then returns a newArangoCursor
instance for the result list.- Specified by:
query
in interfaceArangoDatabase
- Parameters:
query
- An AQL query stringtype
- The type of the result (POJO orRawData
)bindVars
- key/value pairs defining the variables to bind the query to- Returns:
- cursor of the results
- See Also:
-
query
Description copied from interface:ArangoDatabase
Performs a database query using the givenquery
, then returns a newArangoCursor
instance for the result list.- Specified by:
query
in interfaceArangoDatabase
- Parameters:
query
- An AQL query stringtype
- The type of the result (POJO orRawData
)options
- Additional options that will be passed to the query API, can be null- Returns:
- cursor of the results
- See Also:
-
query
Description copied from interface:ArangoDatabase
Performs a database query using the givenquery
, then returns a newArangoCursor
instance for the result list.- Specified by:
query
in interfaceArangoDatabase
- Parameters:
query
- An AQL query stringtype
- The type of the result (POJO orRawData
)- Returns:
- cursor of the results
- See Also:
-
cursor
Description copied from interface:ArangoDatabase
Return an cursor from the given cursor-ID if still existing- Specified by:
cursor
in interfaceArangoDatabase
- Parameters:
cursorId
- The ID of the cursortype
- The type of the result (POJO orRawData
)- Returns:
- cursor of the results
- See Also:
-
cursor
Description copied from interface:ArangoDatabase
Return an cursor from the given cursor-ID if still existing- Specified by:
cursor
in interfaceArangoDatabase
- Parameters:
cursorId
- The ID of the cursortype
- The type of the result (POJO orRawData
)options
- options- Returns:
- cursor of the results
- See Also:
-
cursor
Description copied from interface:ArangoDatabase
Return an cursor from the given cursor-ID if still existing- Specified by:
cursor
in interfaceArangoDatabase
- Parameters:
cursorId
- The ID of the cursortype
- The type of the result (POJO orRawData
)nextBatchId
- The ID of the next cursor batch (set only if cursor allows retries, seeAqlQueryOptions.allowRetry(Boolean)
- Returns:
- cursor of the results
- See Also:
-
cursor
public <T> ArangoCursor<T> cursor(String cursorId, Class<T> type, String nextBatchId, AqlQueryOptions options) Description copied from interface:ArangoDatabase
Return an cursor from the given cursor-ID if still existing- Specified by:
cursor
in interfaceArangoDatabase
- Parameters:
cursorId
- The ID of the cursortype
- The type of the result (POJO orRawData
)nextBatchId
- The ID of the next cursor batch (set only if cursor allows retries, seeAqlQueryOptions.allowRetry(Boolean)
options
- options- Returns:
- cursor of the results
- See Also:
-
explainQuery
public AqlExecutionExplainEntity explainQuery(String query, Map<String, Object> bindVars, AqlQueryExplainOptions options) Description copied from interface:ArangoDatabase
Explain an AQL query and return information about it- Specified by:
explainQuery
in interfaceArangoDatabase
- Parameters:
query
- the query which you want explainedbindVars
- key/value pairs representing the bind parametersoptions
- Additional options, can be null- Returns:
- information about the query
- See Also:
-
explainAqlQuery
public AqlQueryExplainEntity explainAqlQuery(String query, Map<String, Object> bindVars, AqlQueryExplainOptions options) Description copied from interface:ArangoDatabase
Explain an AQL query and return information about it- Specified by:
explainAqlQuery
in interfaceArangoDatabase
- Parameters:
query
- the query which you want explainedbindVars
- key/value pairs representing the bind parametersoptions
- Additional options, can be null- Returns:
- information about the query
- See Also:
-
explainAqlQuery
public AqlQueryExplainEntity explainAqlQuery(String query, Map<String, Object> bindVars, ExplainAqlQueryOptions options) Description copied from interface:ArangoDatabase
Explain an AQL query and return information about it- Specified by:
explainAqlQuery
in interfaceArangoDatabase
- Parameters:
query
- the query which you want explainedbindVars
- key/value pairs representing the bind parametersoptions
- Additional options, can be null- Returns:
- information about the query
- See Also:
-
parseQuery
Description copied from interface:ArangoDatabase
Parse an AQL query and return information about it This method is for query validation only. To actually query the database, seeArangoDatabase.query(String, Class, Map, AqlQueryOptions)
- Specified by:
parseQuery
in interfaceArangoDatabase
- Parameters:
query
- the query which you want parse- Returns:
- imformation about the query
- See Also:
-
clearQueryCache
public void clearQueryCache()Description copied from interface:ArangoDatabase
Clears the AQL query cache- Specified by:
clearQueryCache
in interfaceArangoDatabase
- See Also:
-
getQueryCacheProperties
Description copied from interface:ArangoDatabase
Returns the global configuration for the AQL query cache- Specified by:
getQueryCacheProperties
in interfaceArangoDatabase
- Returns:
- configuration for the AQL query cache
- See Also:
-
setQueryCacheProperties
Description copied from interface:ArangoDatabase
Changes the configuration for the AQL query cache. Note: changing the properties may invalidate all results in the cache.- Specified by:
setQueryCacheProperties
in interfaceArangoDatabase
- Parameters:
properties
- properties to be set- Returns:
- current set of properties
- See Also:
-
getQueryTrackingProperties
Description copied from interface:ArangoDatabase
Returns the configuration for the AQL query tracking- Specified by:
getQueryTrackingProperties
in interfaceArangoDatabase
- Returns:
- configuration for the AQL query tracking
- See Also:
-
setQueryTrackingProperties
public QueryTrackingPropertiesEntity setQueryTrackingProperties(QueryTrackingPropertiesEntity properties) Description copied from interface:ArangoDatabase
Changes the configuration for the AQL query tracking- Specified by:
setQueryTrackingProperties
in interfaceArangoDatabase
- Parameters:
properties
- properties to be set- Returns:
- current set of properties
- See Also:
-
getCurrentlyRunningQueries
Description copied from interface:ArangoDatabase
Returns a list of currently running AQL queries- Specified by:
getCurrentlyRunningQueries
in interfaceArangoDatabase
- Returns:
- a list of currently running AQL queries
- See Also:
-
getSlowQueries
Description copied from interface:ArangoDatabase
Returns a list of slow running AQL queries- Specified by:
getSlowQueries
in interfaceArangoDatabase
- Returns:
- a list of slow running AQL queries
- See Also:
-
clearSlowQueries
public void clearSlowQueries()Description copied from interface:ArangoDatabase
Clears the list of slow AQL queries- Specified by:
clearSlowQueries
in interfaceArangoDatabase
- See Also:
-
killQuery
Description copied from interface:ArangoDatabase
Kills a running query. The query will be terminated at the next cancelation point.- Specified by:
killQuery
in interfaceArangoDatabase
- Parameters:
id
- The id of the query- See Also:
-
createAqlFunction
Description copied from interface:ArangoDatabase
Create a new AQL user function- Specified by:
createAqlFunction
in interfaceArangoDatabase
- Parameters:
name
- A valid AQL function name, e.g.: `"myfuncs::accounting::calculate_vat"`code
- A String evaluating to a JavaScript functionoptions
- Additional options, can be null- See Also:
-
deleteAqlFunction
Description copied from interface:ArangoDatabase
Deletes the AQL user function with the given name from the database.- Specified by:
deleteAqlFunction
in interfaceArangoDatabase
- Parameters:
name
- The name of the user function to deleteoptions
- Additional options, can be null- Returns:
- number of deleted functions (since ArangoDB 3.4.0)
- See Also:
-
getAqlFunctions
Description copied from interface:ArangoDatabase
Gets all reqistered AQL user functions- Specified by:
getAqlFunctions
in interfaceArangoDatabase
- Parameters:
options
- Additional options, can be null- Returns:
- all reqistered AQL user functions
- See Also:
-
graph
Description copied from interface:ArangoDatabase
Returns aArangoGraph
instance for the given graph name.- Specified by:
graph
in interfaceArangoDatabase
- Parameters:
name
- Name of the graph- Returns:
- graph handler
-
createGraph
Description copied from interface:ArangoDatabase
Create a new graph in the graph module. The creation of a graph requires the name of the graph and a definition of its edges.- Specified by:
createGraph
in interfaceArangoDatabase
- Parameters:
name
- Name of the graphedgeDefinitions
- An array of definitions for the edge- Returns:
- information about the graph
- See Also:
-
createGraph
public GraphEntity createGraph(String name, Iterable<EdgeDefinition> edgeDefinitions, GraphCreateOptions options) Description copied from interface:ArangoDatabase
Create a new graph in the graph module. The creation of a graph requires the name of the graph and a definition of its edges.- Specified by:
createGraph
in interfaceArangoDatabase
- Parameters:
name
- Name of the graphedgeDefinitions
- An array of definitions for the edgeoptions
- Additional options, can be null- Returns:
- information about the graph
- See Also:
-
getGraphs
Description copied from interface:ArangoDatabase
Lists all graphs known to the graph module- Specified by:
getGraphs
in interfaceArangoDatabase
- Returns:
- graphs stored in this database
- See Also:
-
transaction
Description copied from interface:ArangoDatabase
Performs a server-side transaction and returns its return value.- Specified by:
transaction
in interfaceArangoDatabase
- Parameters:
action
- A String evaluating to a JavaScript function to be executed on the server.type
- The type of the result (POJO orRawData
)options
- Additional options, can be null- Returns:
- the result of the transaction if it succeeded
- See Also:
-
beginStreamTransaction
Description copied from interface:ArangoDatabase
Begins a Stream Transaction.- Specified by:
beginStreamTransaction
in interfaceArangoDatabase
- Parameters:
options
- Additional options, can be null- Returns:
- information about the transaction
- See Also:
-
abortStreamTransaction
Description copied from interface:ArangoDatabase
Aborts a Stream Transaction.- Specified by:
abortStreamTransaction
in interfaceArangoDatabase
- Returns:
- information about the transaction
- See Also:
-
getStreamTransaction
Description copied from interface:ArangoDatabase
Gets information about a Stream Transaction.- Specified by:
getStreamTransaction
in interfaceArangoDatabase
- Returns:
- information about the transaction
- See Also:
-
getStreamTransactions
Description copied from interface:ArangoDatabase
Gets all the currently running Stream Transactions.- Specified by:
getStreamTransactions
in interfaceArangoDatabase
- Returns:
- all the currently running Stream Transactions
- See Also:
-
commitStreamTransaction
Description copied from interface:ArangoDatabase
Commits a Stream Transaction.- Specified by:
commitStreamTransaction
in interfaceArangoDatabase
- Returns:
- information about the transaction
- See Also:
-
getInfo
Description copied from interface:ArangoDatabase
Retrieves information about the current database- Specified by:
getInfo
in interfaceArangoDatabase
- Returns:
- information about the current database
- See Also:
-
reloadRouting
public void reloadRouting()Description copied from interface:ArangoDatabase
Reload the routing table.- Specified by:
reloadRouting
in interfaceArangoDatabase
- See Also:
-
getViews
Description copied from interface:ArangoDatabase
Fetches all views from the database and returns a list of view descriptions.- Specified by:
getViews
in interfaceArangoDatabase
- Returns:
- list of information about all views
- See Also:
-
view
Description copied from interface:ArangoDatabase
Returns aArangoView
instance for the given view name.- Specified by:
view
in interfaceArangoDatabase
- Parameters:
name
- Name of the view- Returns:
- view handler
-
arangoSearch
Description copied from interface:ArangoDatabase
Returns aArangoSearch
instance for the given view name.- Specified by:
arangoSearch
in interfaceArangoDatabase
- Parameters:
name
- Name of the view- Returns:
- ArangoSearch view handler
-
searchAlias
Description copied from interface:ArangoDatabase
Returns aSearchAlias
instance for the given view name.- Specified by:
searchAlias
in interfaceArangoDatabase
- Parameters:
name
- Name of the view- Returns:
- SearchAlias view handler
-
createView
Description copied from interface:ArangoDatabase
Creates a view of the giventype
, then returns view information from the server.- Specified by:
createView
in interfaceArangoDatabase
- Parameters:
name
- The name of the viewtype
- The type of the view- Returns:
- information about the view
-
createArangoSearch
Description copied from interface:ArangoDatabase
Creates a ArangoSearch view with the givenoptions
, then returns view information from the server.- Specified by:
createArangoSearch
in interfaceArangoDatabase
- Parameters:
name
- The name of the viewoptions
- Additional options, can be null- Returns:
- information about the view
- See Also:
-
createSearchAlias
Description copied from interface:ArangoDatabase
Creates a SearchAlias view with the givenoptions
, then returns view information from the server.- Specified by:
createSearchAlias
in interfaceArangoDatabase
- Parameters:
name
- The name of the viewoptions
- Additional options, can be null- Returns:
- information about the view
- See Also:
-
createSearchAnalyzer
Description copied from interface:ArangoDatabase
Creates an Analyzer- Specified by:
createSearchAnalyzer
in interfaceArangoDatabase
- Parameters:
analyzer
- SearchAnalyzer- Returns:
- the created Analyzer
- See Also:
-
getSearchAnalyzer
Description copied from interface:ArangoDatabase
Gets information about an Analyzer- Specified by:
getSearchAnalyzer
in interfaceArangoDatabase
- Parameters:
name
- of the Analyzer without database prefix- Returns:
- information about an Analyzer
- See Also:
-
getSearchAnalyzers
Description copied from interface:ArangoDatabase
Retrieves all analyzers definitions.- Specified by:
getSearchAnalyzers
in interfaceArangoDatabase
- Returns:
- collection of all analyzers definitions
- See Also:
-
deleteSearchAnalyzer
Description copied from interface:ArangoDatabase
Deletes an Analyzer- Specified by:
deleteSearchAnalyzer
in interfaceArangoDatabase
- Parameters:
name
- of the Analyzer without database prefix- See Also:
-
deleteSearchAnalyzer
Description copied from interface:ArangoDatabase
Deletes an Analyzer- Specified by:
deleteSearchAnalyzer
in interfaceArangoDatabase
- Parameters:
name
- of the Analyzer without database prefixoptions
- AnalyzerDeleteOptions- See Also:
-