Skip to content

Commit 4d6420c

Browse files
committed
removed enterprise edition checks
1 parent 7f6c1e2 commit 4d6420c

25 files changed

+59
-69
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ commands:
4949
parameters:
5050
docker-img:
5151
type: 'string'
52-
default: 'docker.io/arangodb/arangodb:latest'
52+
default: 'docker.io/arangodb/enterprise:latest'
5353
topology:
5454
type: 'string'
5555
default: 'single'
@@ -131,7 +131,7 @@ jobs:
131131
parameters:
132132
docker-img:
133133
type: 'string'
134-
default: 'docker.io/arangodb/arangodb:latest'
134+
default: 'docker.io/arangodb/enterprise:latest'
135135
topology:
136136
type: 'string'
137137
default: 'single'
@@ -199,7 +199,7 @@ jobs:
199199
parameters:
200200
docker-img:
201201
type: 'string'
202-
default: 'docker.io/arangodb/arangodb:latest'
202+
default: 'docker.io/arangodb/enterprise:latest'
203203
topology:
204204
type: 'string'
205205
default: 'single'
@@ -454,7 +454,7 @@ workflows:
454454
matrix:
455455
parameters:
456456
docker-img:
457-
- 'docker.io/arangodb/arangodb:3.12'
457+
- 'docker.io/arangodb/enterprise:3.12'
458458
topology:
459459
- 'single'
460460
args:
@@ -464,7 +464,7 @@ workflows:
464464
matrix:
465465
parameters:
466466
docker-img:
467-
- 'docker.io/arangodb/arangodb:3.12'
467+
- 'docker.io/arangodb/enterprise:3.12'
468468
topology:
469469
- 'cluster'
470470
args:

core/src/main/java/com/arangodb/entity/CollectionPropertiesEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public final class CollectionPropertiesEntity extends CollectionEntity {
3838
private Collection<String> shardKeys;
3939
private String shardingStrategy; // cluster option
4040
private String smartGraphAttribute;
41-
private String smartJoinAttribute; // enterprise option
41+
private String smartJoinAttribute;
4242
private Integer writeConcern;
4343
private Long count;
4444

core/src/main/java/com/arangodb/entity/EdgeDefinition.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public Options getOptions() {
7171

7272
/**
7373
* @param satellites collection names that will be used to create SatelliteCollections
74-
* for a Hybrid (Disjoint) SmartGraph (Enterprise Edition only). Each array element
74+
* for a Hybrid (Disjoint) SmartGraph. Each array element
7575
* must be a valid collection name. The collection type cannot be modified later.
7676
* @return this
7777
* @since ArangoDB 3.9.0

core/src/main/java/com/arangodb/entity/GraphEntity.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ public String getRev() {
8686
}
8787

8888
/**
89-
* @return The replication factor used for every new collection in the graph. Can also be satellite for a SmartGraph
90-
* (Enterprise Edition only).
89+
* @return The replication factor used for every new collection in the graph. Can also be satellite for a SmartGraph.
9190
*/
9291
public ReplicationFactor getReplicationFactor() {
9392
return replicationFactor;
@@ -104,28 +103,28 @@ public Integer getWriteConcern() {
104103
}
105104

106105
/**
107-
* @return Whether the graph is a SmartGraph (Enterprise Edition only).
106+
* @return Whether the graph is a SmartGraph.
108107
*/
109108
public Boolean getIsSmart() {
110109
return isSmart;
111110
}
112111

113112
/**
114-
* @return Whether the graph is a Disjoint SmartGraph (Enterprise Edition only).
113+
* @return Whether the graph is a Disjoint SmartGraph.
115114
*/
116115
public Boolean getIsDisjoint() {
117116
return isDisjoint;
118117
}
119118

120119
/**
121-
* @return Name of the sharding attribute in the SmartGraph case (Enterprise Edition only).
120+
* @return Name of the sharding attribute in the SmartGraph case.
122121
*/
123122
public String getSmartGraphAttribute() {
124123
return smartGraphAttribute;
125124
}
126125

127126
/**
128-
* @return Flag if the graph is a SatelliteGraph (Enterprise Edition only) or not.
127+
* @return Flag if the graph is a SatelliteGraph or not.
129128
*/
130129
public Boolean getIsSatellite() {
131130
return isSatellite;

core/src/main/java/com/arangodb/entity/InvertedIndexField.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public Boolean getCache() {
111111
* @param cache Enable this option to always cache the field normalization values in memory for this specific field.
112112
* This can improve the performance of scoring and ranking queries. Otherwise, these values are
113113
* memory-mapped and it is up to the operating system to load them from disk into memory and to evict
114-
* them from memory. (Enterprise Edition only)
114+
* them from memory.
115115
* @return this
116116
* @since ArangoDB 3.10.2
117117
*/
@@ -142,7 +142,7 @@ public Collection<InvertedIndexField> getNested() {
142142
* @param nested Index the specified sub-objects that are stored in an array. Other than with the fields property,
143143
* the values get indexed in a way that lets you query for co-occurring values. For example, you can
144144
* search the sub-objects and all the conditions need to be met by a single sub-object instead of
145-
* across all of them. This property is available in the Enterprise Edition only.
145+
* across all of them.
146146
* @return this
147147
*/
148148
public InvertedIndexField nested(InvertedIndexField... nested) {

core/src/main/java/com/arangodb/entity/InvertedIndexPrimarySort.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public Boolean getCache() {
5252
* @param cache If you enable this option, then the primary sort columns are always cached in memory. This can
5353
* improve the performance of queries that utilize the primary sort order. Otherwise, these values are
5454
* memory-mapped and it is up to the operating system to load them from disk into memory and to evict
55-
* them from memory (Enterprise Edition only).
55+
* them from memory.
5656
* @return this
5757
* @since ArangoDB 3.10.2
5858
*/

core/src/main/java/com/arangodb/entity/arangosearch/AnalyzerFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public enum AnalyzerFeature {
4242
position,
4343

4444
/**
45-
* enable search highlighting capabilities (Enterprise Edition only). If present, then the `position` and `frequency` features are also required.
45+
* enable search highlighting capabilities. If present, then the `position` and `frequency` features are also required.
4646
* @since ArangoDB 3.10
4747
*/
4848
offset

core/src/main/java/com/arangodb/entity/arangosearch/ArangoSearchPropertiesEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public Collection<StoredValue> getStoredValues() {
124124

125125
/**
126126
* @return An array of strings defining optimized sort expressions.
127-
* @since ArangoDB 3.11, Enterprise Edition only
127+
* @since ArangoDB 3.11
128128
*/
129129
public Collection<String> getOptimizeTopK() {
130130
return optimizeTopK;

core/src/main/java/com/arangodb/entity/arangosearch/CollectionLink.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public CollectionLink inBackground(final Boolean inBackground) {
143143
* and it is up to the operating system to load them from disk into memory and to evict them from
144144
* memory.
145145
* @return link
146-
* @since ArangoDB 3.9.5, Enterprise Edition only
146+
* @since ArangoDB 3.9.5
147147
*/
148148
public CollectionLink cache(final Boolean cache) {
149149
this.cache = cache;

core/src/main/java/com/arangodb/entity/arangosearch/FieldLink.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public FieldLink inBackground(final Boolean inBackground) {
120120
* and it is up to the operating system to load them from disk into memory and to evict them from
121121
* memory.
122122
* @return link
123-
* @since ArangoDB 3.9.5, Enterprise Edition only
123+
* @since ArangoDB 3.9.5
124124
*/
125125
public FieldLink cache(final Boolean cache) {
126126
this.cache = cache;

core/src/main/java/com/arangodb/entity/arangosearch/StoredValue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public final class StoredValue {
4040
/**
4141
* @param fields A list of attribute paths. The . character denotes sub-attributes.
4242
* @param compression Defines how to compress the attribute values.
43-
* @param cache Whether to cache stored values in memory. (Since ArangoDB 3.9.5, Enterprise Edition only)
43+
* @param cache Whether to cache stored values in memory. (Since ArangoDB 3.9.5)
4444
*/
4545
@JsonCreator
4646
public StoredValue(@JsonProperty("fields") List<String> fields,

core/src/main/java/com/arangodb/model/AqlQueryOptions.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ public Boolean getAllowDirtyReads() {
513513
* You may observe data inconsistencies (dirty reads) when reading from followers, namely
514514
* obsolete revisions of documents because changes have not yet been replicated to the
515515
* follower, as well as changes to documents before they are officially committed on the
516-
* leader. This feature is only available in the Enterprise Edition.
516+
* leader.
517517
* @return this
518518
*/
519519
public AqlQueryOptions allowDirtyReads(final Boolean allowDirtyReads) {
@@ -839,7 +839,7 @@ public Double getSatelliteSyncWait() {
839839
}
840840

841841
/**
842-
* @param satelliteSyncWait This enterprise parameter allows to configure how long a DBServer will have time to
842+
* @param satelliteSyncWait This parameter allows to configure how long a DBServer will have time to
843843
* bring the
844844
* satellite collections involved in the query into sync. The default value is 60.0
845845
* (seconds). When the
@@ -883,8 +883,6 @@ public Boolean getSkipInaccessibleCollections() {
883883
* collections and different users execute AQL queries on that graph. You can
884884
* now naturally limit the
885885
* accessible results by changing the access rights of users on collections.
886-
* This feature is only
887-
* available in the Enterprise Edition.
888886
* @return this
889887
* @since ArangoDB 3.2.0
890888
*/

core/src/main/java/com/arangodb/model/CollectionCreateOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public final class CollectionCreateOptions {
4747
private String distributeShardsLike;
4848

4949
private String shardingStrategy; // cluster option
50-
private String smartJoinAttribute; // enterprise option
50+
private String smartJoinAttribute;
5151

5252
private CollectionSchema schema;
5353

@@ -255,7 +255,7 @@ public String getDistributeShardsLike() {
255255
}
256256

257257
/**
258-
* @param distributeShardsLike (The default is ""): in an enterprise cluster, this attribute binds the specifics
258+
* @param distributeShardsLike (The default is ""): this attribute binds the specifics
259259
* of sharding for the
260260
* newly created collection to follow that of a specified existing collection. Note:
261261
* Using this parameter

core/src/main/java/com/arangodb/model/CollectionPropertiesOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public ReplicationFactor getReplicationFactor() {
8686
* different DB-Servers. The value 1 means that only one copy (no synchronous replication)
8787
* is kept. A value of k means that k-1 replicas are kept. For SatelliteCollections, it
8888
* needs to be the string "satellite", which matches the replication factor to the number
89-
* of DB-Servers (Enterprise Edition only).
89+
* of DB-Servers.
9090
* <p>
9191
* Any two copies reside on different DB-Servers. Replication between them is synchronous,
9292
* that is, every write operation to the “leader” copy will be replicated to all “follower”

core/src/main/java/com/arangodb/model/ExplainAqlQueryOptions.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public Boolean getAllowDirtyReads() {
127127
* You may observe data inconsistencies (dirty reads) when reading from followers, namely
128128
* obsolete revisions of documents because changes have not yet been replicated to the
129129
* follower, as well as changes to documents before they are officially committed on the
130-
* leader. This feature is only available in the Enterprise Edition.
130+
* leader.
131131
* @return this
132132
*/
133133
public ExplainAqlQueryOptions allowDirtyReads(final Boolean allowDirtyReads) {
@@ -434,7 +434,7 @@ public Double getSatelliteSyncWait() {
434434
}
435435

436436
/**
437-
* @param satelliteSyncWait This enterprise parameter allows to configure how long a DBServer will have time to
437+
* @param satelliteSyncWait This parameter allows to configure how long a DBServer will have time to
438438
* bring the
439439
* satellite collections involved in the query into sync. The default value is 60.0
440440
* (seconds). When the
@@ -478,8 +478,6 @@ public Boolean getSkipInaccessibleCollections() {
478478
* collections and different users execute AQL queries on that graph. You can
479479
* now naturally limit the
480480
* accessible results by changing the access rights of users on collections.
481-
* This feature is only
482-
* available in the Enterprise Edition.
483481
* @return this
484482
* @since ArangoDB 3.2.0
485483
*/

core/src/main/java/com/arangodb/model/GraphCreateOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public Boolean getIsSmart() {
8585
}
8686

8787
/**
88-
* @param isSmart Define if the created graph should be smart. This only has effect in Enterprise version.
88+
* @param isSmart Define if the created graph should be smart.
8989
* @return options
9090
*/
9191
public GraphCreateOptions isSmart(final Boolean isSmart) {
@@ -190,7 +190,7 @@ public Collection<String> getSatellites() {
190190

191191
/**
192192
* @param satellites collection names that will be used to create SatelliteCollections
193-
* for a Hybrid (Disjoint) SmartGraph (Enterprise Edition only). Each array element
193+
* for a Hybrid (Disjoint) SmartGraph. Each array element
194194
* must be a valid collection name. The collection type cannot be modified later.
195195
* @return options
196196
* @since ArangoDB 3.9.0

core/src/main/java/com/arangodb/model/InvertedIndexOptions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public Collection<String> getOptimizeTopK() {
119119
/**
120120
* @param optimizeTopK An array of strings defining sort expressions that you want to optimize.
121121
* @return options
122-
* @since ArangoDB 3.11, Enterprise Edition only
122+
* @since ArangoDB 3.11
123123
*/
124124
public InvertedIndexOptions optimizeTopK(String... optimizeTopK) {
125125
Collections.addAll(this.optimizeTopK, optimizeTopK);
@@ -373,7 +373,7 @@ public Boolean getCache() {
373373
* are memory-mapped and it is up to the operating system to load them from disk into memory and to
374374
* evict them from memory.
375375
* <p/>
376-
* Default: `false`. (Enterprise Edition only)
376+
* Default: `false`
377377
* @return this
378378
* @since ArangoDB 3.10.2
379379
*/
@@ -390,7 +390,7 @@ public Boolean getPrimaryKeyCache() {
390390
* @param primaryKeyCache If you enable this option, then the primary key columns are always cached in memory. This
391391
* can improve the performance of queries that return many documents. Otherwise, these values
392392
* are memory-mapped and it is up to the operating system to load them from disk into memory
393-
* and to evict them from memory (Enterprise Edition only). (default: false)
393+
* and to evict them from memory. (default: false)
394394
* @return this
395395
* @since ArangoDB 3.10.2
396396
*/

core/src/main/java/com/arangodb/model/VertexCollectionCreateOptions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public Collection<String> getSatellites() {
5858

5959
/**
6060
* @param satellites collection names that will be used to create SatelliteCollections
61-
* for a Hybrid (Disjoint) SmartGraph (Enterprise Edition only). Each array element
61+
* for a Hybrid (Disjoint) SmartGraph. Each array element
6262
* must be a valid collection name. The collection type cannot be modified later.
6363
* @return options
6464
* @since ArangoDB 3.9.0

core/src/main/java/com/arangodb/model/arangosearch/ArangoSearchCreateOptions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public ArangoSearchCreateOptions storedValues(final StoredValue... storedValues)
156156
/**
157157
* @param optimizeTopK An array of strings defining sort expressions that you want to optimize.
158158
* @return options
159-
* @since ArangoDB 3.11, Enterprise Edition only
159+
* @since ArangoDB 3.11
160160
*/
161161
public ArangoSearchCreateOptions optimizeTopK(final String... optimizeTopK) {
162162
this.optimizeTopK = Arrays.asList(optimizeTopK);
@@ -169,7 +169,7 @@ public ArangoSearchCreateOptions optimizeTopK(final String... optimizeTopK) {
169169
* Otherwise, these values are memory-mapped and it is up to the operating system to load
170170
* them from disk into memory and to evict them from memory.
171171
* @return options
172-
* @since ArangoDB 3.9.6, Enterprise Edition only
172+
* @since ArangoDB 3.9.6
173173
*/
174174
public ArangoSearchCreateOptions primarySortCache(final Boolean primarySortCache) {
175175
this.primarySortCache = primarySortCache;
@@ -182,7 +182,7 @@ public ArangoSearchCreateOptions primarySortCache(final Boolean primarySortCache
182182
* are memory-mapped and it is up to the operating system to load them from disk into memory
183183
* and to evict them from memory.
184184
* @return options
185-
* @since ArangoDB 3.9.6, Enterprise Edition only
185+
* @since ArangoDB 3.9.6
186186
*/
187187
public ArangoSearchCreateOptions primaryKeyCache(final Boolean primaryKeyCache) {
188188
this.primaryKeyCache = primaryKeyCache;

test-functional/src/test/java/com/arangodb/ArangoDatabaseTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,6 +1751,7 @@ void getInfo(ArangoDatabase db) {
17511751
@ParameterizedTest
17521752
@MethodSource("dbs")
17531753
void shouldIncludeExceptionMessage(ArangoDatabase db) {
1754+
final String exceptionMessage = "My error context";
17541755
final String action = "function (params) {" + "throw '" + exceptionMessage + "';" + "}";
17551756
try {
17561757
db.transaction(action, Void.class, null);

test-functional/src/test/java/com/arangodb/ArangoSearchAsyncTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,8 @@ void arangoSearchOptions(ArangoDatabaseAsync db) throws ExecutionException, Inte
686686

687687
assertThat(fieldLink.getName()).isEqualTo("f1");
688688
assertThat(fieldLink.getNested()).isNotEmpty();
689-
FieldLink nested = fieldLink.getNested().iterator().next();
690-
assertThat(nested.getName()).isEqualTo("f2");
689+
FieldLink nested2 = fieldLink.getNested().iterator().next();
690+
assertThat(nested2.getName()).isEqualTo("f2");
691691
assertThat(properties.getOptimizeTopK()).containsExactly(optimizeTopK);
692692
}
693693

test-functional/src/test/java/com/arangodb/ArangoSearchTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,8 +692,8 @@ void arangoSearchOptions(ArangoDatabase db) {
692692
assertThat(nested.getName()).isEqualTo("f3");
693693
assertThat(fieldLink.getName()).isEqualTo("f1");
694694
assertThat(fieldLink.getNested()).isNotEmpty();
695-
FieldLink nested = fieldLink.getNested().iterator().next();
696-
assertThat(nested.getName()).isEqualTo("f2");
695+
FieldLink nested2 = fieldLink.getNested().iterator().next();
696+
assertThat(nested2.getName()).isEqualTo("f2");
697697
assertThat(properties.getOptimizeTopK()).containsExactly(optimizeTopK);
698698
}
699699

test-functional/src/test/java/com/arangodb/BaseJunit5.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,4 @@ public static boolean isCluster() {
214214
return role == ServerRole.COORDINATOR;
215215
}
216216

217-
public static boolean isEnterprise() {
218-
return version.getLicense() == License.ENTERPRISE;
219-
}
220-
221217
}

test-functional/src/test/java/com/arangodb/InvertedIndexAsyncTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ private void createAnalyzer(String analyzerName, ArangoDatabaseAsync db) throws
4848
}
4949

5050
private InvertedIndexOptions createOptions(String analyzerName) {
51-
Boolean cache = isEnterprise() ? true : null;
52-
Boolean fieldCache = cache != null ? false : null;
51+
Boolean cache = true;
52+
Boolean fieldCache = false;
5353
InvertedIndexField field = new InvertedIndexField()
5454
.name("foo")
5555
.analyzer(AnalyzerType.identity.toString())

0 commit comments

Comments
 (0)