Skip to content

Commit 0b8c09a

Browse files
authored
deprecated MMFiles collection attributes (#442)
1 parent 34dc347 commit 0b8c09a

File tree

5 files changed

+112
-1
lines changed

5 files changed

+112
-1
lines changed

src/main/java/com/arangodb/entity/CollectionEntity.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ public class CollectionEntity implements Entity {
3131
private String id;
3232
private String name;
3333
private Boolean waitForSync;
34+
/**
35+
* @deprecated MMFiles only
36+
*/
37+
@Deprecated
3438
private Boolean isVolatile;
3539
private Boolean isSystem;
3640
private CollectionStatus status;
@@ -58,6 +62,10 @@ public Boolean getWaitForSync() {
5862
return waitForSync;
5963
}
6064

65+
/**
66+
* @deprecated MMFiles only
67+
*/
68+
@Deprecated
6169
public Boolean getIsVolatile() {
6270
return isVolatile;
6371
}

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

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,20 @@
2929
*/
3030
public class CollectionPropertiesEntity extends CollectionEntity {
3131

32+
/**
33+
* @deprecated MMFiles only
34+
*/
35+
@Deprecated
3236
private Boolean doCompact;
37+
/**
38+
* @deprecated MMFiles only
39+
*/
40+
@Deprecated
3341
private Long journalSize;
42+
/**
43+
* @deprecated MMFiles only
44+
*/
45+
@Deprecated
3446
private Integer indexBuckets;
3547
private KeyOptions keyOptions;
3648
private Long count;
@@ -48,26 +60,51 @@ public CollectionPropertiesEntity() {
4860
minReplicationFactor = new MinReplicationFactor();
4961
}
5062

63+
/**
64+
* @deprecated MMFiles only
65+
*/
66+
@Deprecated
5167
public Boolean getDoCompact() {
5268
return doCompact;
5369
}
5470

71+
/**
72+
* @deprecated MMFiles only
73+
*/
74+
@Deprecated
5575
public void setDoCompact(final Boolean doCompact) {
5676
this.doCompact = doCompact;
5777
}
5878

79+
/**
80+
* @deprecated MMFiles only
81+
*/
82+
@Deprecated
5983
public Long getJournalSize() {
6084
return journalSize;
6185
}
6286

87+
/**
88+
* @deprecated MMFiles only
89+
*/
90+
@Deprecated
6391
public void setJournalSize(final Long journalSize) {
6492
this.journalSize = journalSize;
6593
}
6694

95+
96+
/**
97+
* @deprecated MMFiles only
98+
*/
99+
@Deprecated
67100
public Integer getIndexBuckets() {
68101
return indexBuckets;
69102
}
70103

104+
/**
105+
* @deprecated MMFiles only
106+
*/
107+
@Deprecated
71108
public void setIndexBuckets(final Integer indexBuckets) {
72109
this.indexBuckets = indexBuckets;
73110
}

src/main/java/com/arangodb/entity/CollectionStatus.java

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,27 @@
2525
*/
2626
public enum CollectionStatus {
2727

28-
NEW_BORN_COLLECTION(1), UNLOADED(2), LOADED(3), IN_THE_PROCESS_OF_BEING_UNLOADED(4), DELETED(5);
28+
/**
29+
* @deprecated MMFiles only
30+
*/
31+
@Deprecated
32+
NEW_BORN_COLLECTION(1),
33+
34+
/**
35+
* @deprecated MMFiles only
36+
*/
37+
@Deprecated
38+
UNLOADED(2),
39+
40+
LOADED(3),
41+
42+
/**
43+
* @deprecated MMFiles only
44+
*/
45+
@Deprecated
46+
IN_THE_PROCESS_OF_BEING_UNLOADED(4),
47+
48+
DELETED(5);
2949

3050
private final int status;
3151

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

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,24 @@ public class CollectionCreateOptions {
4040
private Integer writeConcern;
4141
private KeyOptions keyOptions;
4242
private Boolean waitForSync;
43+
/**
44+
* @deprecated MMFiles only
45+
*/
46+
@Deprecated
4347
private Boolean doCompact;
48+
/**
49+
* @deprecated MMFiles only
50+
*/
51+
@Deprecated
4452
private Boolean isVolatile;
4553
private String[] shardKeys;
4654
private Integer numberOfShards;
4755
private Boolean isSystem;
4856
private CollectionType type;
57+
/**
58+
* @deprecated MMFiles only
59+
*/
60+
@Deprecated
4961
private Integer indexBuckets;
5062
private String distributeShardsLike;
5163

@@ -73,14 +85,20 @@ protected CollectionCreateOptions name(final String name) {
7385
return this;
7486
}
7587

88+
/**
89+
* @deprecated MMFiles only
90+
*/
91+
@Deprecated
7692
public Long getJournalSize() {
7793
return journalSize;
7894
}
7995

8096
/**
8197
* @param journalSize The maximal size of a journal or datafile in bytes. The value must be at least 1048576 (1 MiB).
8298
* @return options
99+
* @deprecated MMFiles only
83100
*/
101+
@Deprecated
84102
public CollectionCreateOptions journalSize(final Long journalSize) {
85103
this.journalSize = journalSize;
86104
return this;
@@ -199,19 +217,29 @@ public CollectionCreateOptions waitForSync(final Boolean waitForSync) {
199217
return this;
200218
}
201219

220+
/**
221+
* @deprecated MMFiles only
222+
*/
223+
@Deprecated
202224
public Boolean getDoCompact() {
203225
return doCompact;
204226
}
205227

206228
/**
207229
* @param doCompact whether or not the collection will be compacted (default is true)
208230
* @return options
231+
* @deprecated MMFiles only
209232
*/
233+
@Deprecated
210234
public CollectionCreateOptions doCompact(final Boolean doCompact) {
211235
this.doCompact = doCompact;
212236
return this;
213237
}
214238

239+
/**
240+
* @deprecated MMFiles only
241+
*/
242+
@Deprecated
215243
public Boolean getIsVolatile() {
216244
return isVolatile;
217245
}
@@ -225,7 +253,9 @@ public Boolean getIsVolatile() {
225253
* should therefore be used for cache-type collections only, and not for data that cannot be re-created
226254
* otherwise. (The default is false)
227255
* @return options
256+
* @deprecated MMFiles only
228257
*/
258+
@Deprecated
229259
public CollectionCreateOptions isVolatile(final Boolean isVolatile) {
230260
this.isVolatile = isVolatile;
231261
return this;
@@ -317,6 +347,10 @@ public CollectionCreateOptions type(final CollectionType type) {
317347
return this;
318348
}
319349

350+
/**
351+
* @deprecated MMFiles only
352+
*/
353+
@Deprecated
320354
public Integer getIndexBuckets() {
321355
return indexBuckets;
322356
}
@@ -330,7 +364,9 @@ public Integer getIndexBuckets() {
330364
* this value, but other index types might follow in future ArangoDB versions. Changes (see below) are
331365
* applied when the collection is loaded the next time.
332366
* @return options
367+
* @deprecated MMFiles only
333368
*/
369+
@Deprecated
334370
public CollectionCreateOptions indexBuckets(final Integer indexBuckets) {
335371
this.indexBuckets = indexBuckets;
336372
return this;

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
public class CollectionPropertiesOptions {
2929

3030
private Boolean waitForSync;
31+
/**
32+
* @deprecated MMFiles only
33+
*/
34+
@Deprecated
3135
private Long journalSize;
3236
private CollectionSchema schema;
3337

@@ -48,6 +52,10 @@ public CollectionPropertiesOptions waitForSync(final Boolean waitForSync) {
4852
return this;
4953
}
5054

55+
/**
56+
* @deprecated MMFiles only
57+
*/
58+
@Deprecated
5159
public Long getJournalSize() {
5260
return journalSize;
5361
}
@@ -57,7 +65,9 @@ public Long getJournalSize() {
5765
* that when changing the journalSize value, it will only have an effect for additional journals or
5866
* datafiles that are created. Already existing journals or datafiles will not be affected.
5967
* @return options
68+
* @deprecated MMFiles only
6069
*/
70+
@Deprecated
6171
public CollectionPropertiesOptions journalSize(final Long journalSize) {
6272
this.journalSize = journalSize;
6373
return this;

0 commit comments

Comments
 (0)