-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:arangodb/arangodb-java-driver
- Loading branch information
Showing
10 changed files
with
219 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Analyzers | ||
|
||
[HTTP Interface for Analyzers](https://www.arangodb.com/docs/devel/http/analyzers.html). | ||
|
||
|
||
## Types | ||
|
||
- **AnalyzerEntity** | ||
|
||
- **name**: `String` | ||
|
||
The analyzer name. | ||
|
||
- **type**: `AnalyzerType` | ||
|
||
The analyzer type. Can be one of: `identity`, `delimiter`, `stem`, `norm`, `ngram`, `text` | ||
|
||
- **properties**: `Map<String, Object>` | ||
|
||
The properties used to configure the specified type. Value may be a string, an object or null. The default value is null. | ||
|
||
- **features**: `Set<AnalyzerFeature>` | ||
|
||
The set of features to set on the analyzer generated fields. The default value is an empty array. | ||
Values can be: `frequency`, `norm`, `position` | ||
|
||
|
||
## ArangoDatabase.createArangoSearch | ||
|
||
`ArangoDatabase.createAnalyzer(AnalyzerEntity options) : AnalyzerEntity` | ||
|
||
Creates an Analyzer. | ||
|
||
|
||
## ArangoDatabase.getAnalyzer | ||
|
||
`ArangoDatabase.getAnalyzer(String name) : AnalyzerEntity` | ||
|
||
Gets information about an Analyzer | ||
|
||
**Arguments** | ||
|
||
- **name**: `String` | ||
|
||
The name of the analyzer | ||
|
||
|
||
## ArangoDatabase.getAnalyzers | ||
|
||
`ArangoDatabase.getAnalyzers() : Collection<AnalyzerEntity>` | ||
|
||
Retrieves all analyzers definitions. | ||
|
||
|
||
## ArangoDatabase.deleteAnalyzer | ||
|
||
`ArangoDatabase.deleteAnalyzer(String name) : void` | ||
|
||
Deletes an Analyzer. | ||
|
||
**Arguments** | ||
|
||
- **name**: `String` | ||
|
||
The name of the analyzer | ||
|
||
|
||
## ArangoDatabase.deleteAnalyzer | ||
|
||
`ArangoDatabase.deleteAnalyzer(String name, AnalyzerDeleteOptions options) : void` | ||
|
||
Deletes an Analyzer. | ||
|
||
**Arguments** | ||
|
||
- **name**: `String` | ||
|
||
The name of the analyzer | ||
|
||
- **options**: `AnalyzerDeleteOptions` | ||
|
||
- **force**: `Boolean` | ||
|
||
The analyzer configuration should be removed even if it is in-use. The default value is false. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
src/main/java/com/arangodb/entity/StreamTransactionStatus.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* DISCLAIMER | ||
* | ||
* Copyright 2016 ArangoDB GmbH, Cologne, Germany | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* Copyright holder is ArangoDB GmbH, Cologne, Germany | ||
*/ | ||
|
||
package com.arangodb.entity; | ||
|
||
/** | ||
* @author Michele Rastelli | ||
*/ | ||
public enum StreamTransactionStatus { | ||
running, committed, aborted | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* DISCLAIMER | ||
* | ||
* Copyright 2016 ArangoDB GmbH, Cologne, Germany | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
* Copyright holder is ArangoDB GmbH, Cologne, Germany | ||
*/ | ||
|
||
package com.arangodb.entity; | ||
|
||
/** | ||
* @author Michele Rastelli | ||
* @see <a href= | ||
* "https://docs.arangodb.com/current/HTTP/transaction-stream-transaction.html#list-currently-ongoing-transactions</a> | ||
* @since ArangoDB 3.5.0 | ||
*/ | ||
public class TransactionEntity implements Entity { | ||
|
||
private String id; | ||
private StreamTransactionStatus state; | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public StreamTransactionStatus getStatus() { | ||
return state; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters