Skip to content

Commit 873e574

Browse files
committed
[DE-221] remove deprecated server api (#441)
* remove MMFiles related APIs * removed executeTraversal API * removed getLogs API * removed invalid deprecation on collection id * removed minReplicationFactor * remove MMFiles related APIs * removed DocumentCreateOptions#overwrite APIs * removed GraphCreateOptions#minReplicationFactor API * removed executeTraversal API
1 parent ed05161 commit 873e574

37 files changed

+3
-1609
lines changed

src/main/java/com/arangodb/ArangoCollection.java

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -654,31 +654,6 @@ <T> MultiDocumentEntity<DocumentDeleteEntity<T>> deleteDocuments(
654654
*/
655655
void drop(boolean isSystem) throws ArangoDBException;
656656

657-
/**
658-
* Tells the server to load the collection into memory.
659-
*
660-
* @return information about the collection
661-
* @throws ArangoDBException
662-
* @see <a href="https://www.arangodb.com/docs/stable/http/collection-modifying.html#load-collection">API
663-
* Documentation</a>
664-
* @deprecated MMFiles only
665-
*/
666-
@Deprecated
667-
CollectionEntity load() throws ArangoDBException;
668-
669-
/**
670-
* Tells the server to remove the collection from memory. This call does not delete any documents. You can use the
671-
* collection afterwards; in which case it will be loaded into memory, again.
672-
*
673-
* @return information about the collection
674-
* @throws ArangoDBException
675-
* @see <a href="https://www.arangodb.com/docs/stable/http/collection-modifying.html#unload-collection">API
676-
* Documentation</a>
677-
* @deprecated MMFiles only
678-
*/
679-
@Deprecated
680-
CollectionEntity unload() throws ArangoDBException;
681-
682657
/**
683658
* Returns information about the collection
684659
*

src/main/java/com/arangodb/ArangoDB.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,19 +1001,6 @@ default Boolean createDatabase(String name) throws ArangoDBException {
10011001
*/
10021002
Response execute(Request request, HostHandle hostHandle) throws ArangoDBException;
10031003

1004-
/**
1005-
* Returns fatal, error, warning or info log messages from the server's global log.
1006-
*
1007-
* @param options Additional options, can be null
1008-
* @return the log messages
1009-
* @throws ArangoDBException
1010-
* @see <a href= "https://www.arangodb.com/docs/stable/http/administration-and-monitoring.html#read-global-logs-from-the-server">API
1011-
* Documentation</a>
1012-
* @deprecated use {@link #getLogEntries(LogOptions)} instead
1013-
*/
1014-
@Deprecated
1015-
LogEntity getLogs(LogOptions options) throws ArangoDBException;
1016-
10171004
/**
10181005
* Returns the server logs
10191006
*

src/main/java/com/arangodb/ArangoDatabase.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -623,22 +623,6 @@ GraphEntity createGraph(String name, Collection<EdgeDefinition> edgeDefinitions,
623623
*/
624624
DatabaseEntity getInfo() throws ArangoDBException;
625625

626-
/**
627-
* Execute a server-side traversal
628-
*
629-
* @param vertexClass The type of the vertex documents (POJO class, VPackSlice or String for JSON)
630-
* @param edgeClass The type of the edge documents (POJO class, VPackSlice or String for JSON)
631-
* @param options Additional options
632-
* @return Result of the executed traversal
633-
* @throws ArangoDBException
634-
* @see <a href= "https://www.arangodb.com/docs/stable/http/traversal.html#executes-a-traversal">API
635-
* Documentation</a>
636-
* @deprecated use {@link this#query(String, Map, AqlQueryOptions, Class)}
637-
*/
638-
@Deprecated
639-
<V, E> TraversalEntity<V, E> executeTraversal(Class<V> vertexClass, Class<E> edgeClass, TraversalOptions options)
640-
throws ArangoDBException;
641-
642626
/**
643627
* Reads a single document
644628
*

src/main/java/com/arangodb/async/ArangoCollectionAsync.java

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -609,29 +609,6 @@ CompletableFuture<IndexEntity> ensureFulltextIndex(
609609
*/
610610
CompletableFuture<Void> drop(final boolean isSystem);
611611

612-
/**
613-
* Loads a collection into memory.
614-
*
615-
* @return information about the collection
616-
* @see <a href="https://www.arangodb.com/docs/stable/http/collection-modifying.html#load-collection">API
617-
* Documentation</a>
618-
* @deprecated MMFiles only
619-
*/
620-
@Deprecated
621-
CompletableFuture<CollectionEntity> load();
622-
623-
/**
624-
* Removes a collection from memory. This call does not delete any documents. You can use the collection afterwards;
625-
* in which case it will be loaded into memory, again.
626-
*
627-
* @return information about the collection
628-
* @see <a href="https://www.arangodb.com/docs/stable/http/collection-modifying.html#unload-collection">API
629-
* Documentation</a>
630-
* @deprecated MMFiles only
631-
*/
632-
@Deprecated
633-
CompletableFuture<CollectionEntity> unload();
634-
635612
/**
636613
* Returns information about the collection
637614
*

src/main/java/com/arangodb/async/ArangoDBAsync.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -299,18 +299,6 @@ default CompletableFuture<Boolean> createDatabase(final String name) {
299299
*/
300300
CompletableFuture<Response> execute(final Request request);
301301

302-
/**
303-
* Returns fatal, error, warning or info log messages from the server's global log.
304-
*
305-
* @param options Additional options, can be null
306-
* @return the log messages
307-
* @see <a href= "https://www.arangodb.com/docs/stable/http/administration-and-monitoring.html#read-global-logs-from-the-server">API
308-
* Documentation</a>
309-
* @deprecated use {@link #getLogEntries(LogOptions)} instead
310-
*/
311-
@Deprecated
312-
CompletableFuture<LogEntity> getLogs(final LogOptions options);
313-
314302
/**
315303
* Returns the server logs
316304
*

src/main/java/com/arangodb/async/ArangoDatabaseAsync.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -603,23 +603,6 @@ CompletableFuture<GraphEntity> createGraph(
603603
*/
604604
CompletableFuture<DatabaseEntity> getInfo();
605605

606-
/**
607-
* Execute a server-side traversal
608-
*
609-
* @param vertexClass The type of the vertex documents (POJO class, VPackSlice or String for Json)
610-
* @param edgeClass The type of the edge documents (POJO class, VPackSlice or String for Json)
611-
* @param options Additional options
612-
* @return Result of the executed traversal
613-
* @see <a href= "https://www.arangodb.com/docs/stable/http/traversal.html#executes-a-traversal">API
614-
* Documentation</a>
615-
* @deprecated use {@link this#query(String, Map, AqlQueryOptions, Class)}
616-
*/
617-
@Deprecated
618-
<V, E> CompletableFuture<TraversalEntity<V, E>> executeTraversal(
619-
final Class<V> vertexClass,
620-
final Class<E> edgeClass,
621-
final TraversalOptions options);
622-
623606
/**
624607
* Reads a single document
625608
*

src/main/java/com/arangodb/async/internal/ArangoCollectionAsyncImpl.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -360,16 +360,6 @@ public CompletableFuture<Void> drop(final boolean isSystem) {
360360
return executor.execute(dropRequest(isSystem), Void.class);
361361
}
362362

363-
@Override
364-
public CompletableFuture<CollectionEntity> load() {
365-
return executor.execute(loadRequest(), CollectionEntity.class);
366-
}
367-
368-
@Override
369-
public CompletableFuture<CollectionEntity> unload() {
370-
return executor.execute(unloadRequest(), CollectionEntity.class);
371-
}
372-
373363
@Override
374364
public CompletableFuture<CollectionEntity> getInfo() {
375365
return executor.execute(getInfoRequest(), CollectionEntity.class);

src/main/java/com/arangodb/async/internal/ArangoDBAsyncImpl.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,6 @@ public CompletableFuture<Response> execute(final Request request) {
221221
return executor.execute(request, response -> response);
222222
}
223223

224-
@Override
225-
public CompletableFuture<LogEntity> getLogs(final LogOptions options) {
226-
return executor.execute(getLogsRequest(options), LogEntity.class);
227-
}
228-
229224
@Override
230225
public CompletableFuture<LogEntriesEntity> getLogEntries(final LogOptions options) {
231226
return executor.execute(getLogEntriesRequest(options), LogEntriesEntity.class);

src/main/java/com/arangodb/async/internal/ArangoDatabaseAsyncImpl.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
import com.arangodb.model.GraphCreateOptions;
4949
import com.arangodb.model.StreamTransactionOptions;
5050
import com.arangodb.model.TransactionOptions;
51-
import com.arangodb.model.TraversalOptions;
5251
import com.arangodb.model.arangosearch.AnalyzerDeleteOptions;
5352
import com.arangodb.model.arangosearch.ArangoSearchCreateOptions;
5453
import com.arangodb.velocypack.Type;
@@ -401,15 +400,6 @@ public CompletableFuture<DatabaseEntity> getInfo() {
401400
return executor.execute(getInfoRequest(), getInfoResponseDeserializer());
402401
}
403402

404-
@Override
405-
public <V, E> CompletableFuture<TraversalEntity<V, E>> executeTraversal(
406-
final Class<V> vertexClass,
407-
final Class<E> edgeClass,
408-
final TraversalOptions options) {
409-
final Request request = executeTraversalRequest(options);
410-
return executor.execute(request, executeTraversalResponseDeserializer(vertexClass, edgeClass));
411-
}
412-
413403
@Override
414404
public <T> CompletableFuture<T> getDocument(final String id, final Class<T> type) throws ArangoDBException {
415405
DocumentUtil.validateDocumentId(id);

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

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ 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
38-
private Boolean isVolatile;
3934
private Boolean isSystem;
4035
private CollectionStatus status;
4136
private CollectionType type;
@@ -45,11 +40,6 @@ public CollectionEntity() {
4540
super();
4641
}
4742

48-
/**
49-
* @deprecated Accessing collections by their internal ID instead of accessing them by name is deprecated and highly
50-
* discouraged. This functionality may be removed in future versions of ArangoDB.
51-
*/
52-
@Deprecated
5343
public String getId() {
5444
return id;
5545
}
@@ -62,14 +52,6 @@ public Boolean getWaitForSync() {
6252
return waitForSync;
6353
}
6454

65-
/**
66-
* @deprecated MMFiles only
67-
*/
68-
@Deprecated
69-
public Boolean getIsVolatile() {
70-
return isVolatile;
71-
}
72-
7355
public Boolean getIsSystem() {
7456
return isSystem;
7557
}

0 commit comments

Comments
 (0)