Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
364 changes: 5 additions & 359 deletions src/main/java/com/arangodb/ArangoDB.java

Large diffs are not rendered by default.

75 changes: 0 additions & 75 deletions src/main/java/com/arangodb/ArangoDatabase.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
package com.arangodb;

import com.arangodb.entity.*;
import com.arangodb.entity.arangosearch.AnalyzerEntity;
import com.arangodb.entity.arangosearch.analyzer.SearchAnalyzer;
import com.arangodb.model.*;
import com.arangodb.model.arangosearch.AnalyzerDeleteOptions;
Expand All @@ -48,17 +47,6 @@ public interface ArangoDatabase extends ArangoSerializationAccessor {
*/
ArangoDB arango();

/**
* Returns the name of the database
*
* @return database name
* @deprecated Use {@link #dbName()} instead
*/
@Deprecated
default String name() {
return dbName().get();
}

/**
* Returns the name of the database
*
Expand Down Expand Up @@ -719,19 +707,6 @@ GraphEntity createGraph(String name, Collection<EdgeDefinition> edgeDefinitions,
*/
ViewEntity createArangoSearch(String name, ArangoSearchCreateOptions options) throws ArangoDBException;

/**
* Creates an Analyzer
*
* @param options AnalyzerEntity
* @return the created Analyzer
* @throws ArangoDBException
* @see <a href="https://www.arangodb.com/docs/stable/http/analyzers.html">API Documentation</a>
* @since ArangoDB 3.5.0
* @deprecated use {@link this#createSearchAnalyzer(SearchAnalyzer)}}
*/
@Deprecated
AnalyzerEntity createAnalyzer(AnalyzerEntity options) throws ArangoDBException;

/**
* Creates an Analyzer
*
Expand All @@ -743,19 +718,6 @@ GraphEntity createGraph(String name, Collection<EdgeDefinition> edgeDefinitions,
*/
SearchAnalyzer createSearchAnalyzer(SearchAnalyzer analyzer) throws ArangoDBException;

/**
* Gets information about an Analyzer
*
* @param name of the Analyzer without database prefix
* @return information about an Analyzer
* @throws ArangoDBException
* @see <a href="https://www.arangodb.com/docs/stable/http/analyzers.html">API Documentation</a>
* @since ArangoDB 3.5.0
* @deprecated use {@link this#getSearchAnalyzer(String)}}
*/
@Deprecated
AnalyzerEntity getAnalyzer(String name) throws ArangoDBException;

/**
* Gets information about an Analyzer
*
Expand All @@ -767,18 +729,6 @@ GraphEntity createGraph(String name, Collection<EdgeDefinition> edgeDefinitions,
*/
SearchAnalyzer getSearchAnalyzer(String name) throws ArangoDBException;

/**
* Retrieves all analyzers definitions.
*
* @return collection of all analyzers definitions
* @throws ArangoDBException
* @see <a href="https://www.arangodb.com/docs/stable/http/analyzers.html">API Documentation</a>
* @since ArangoDB 3.5.0
* @deprecated use {@link this#getSearchAnalyzers()}
*/
@Deprecated
Collection<AnalyzerEntity> getAnalyzers() throws ArangoDBException;

/**
* Retrieves all analyzers definitions.
*
Expand All @@ -789,31 +739,6 @@ GraphEntity createGraph(String name, Collection<EdgeDefinition> edgeDefinitions,
*/
Collection<SearchAnalyzer> getSearchAnalyzers() throws ArangoDBException;

/**
* Deletes an Analyzer
*
* @param name of the Analyzer without database prefix
* @throws ArangoDBException
* @see <a href="https://www.arangodb.com/docs/stable/http/analyzers.html">API Documentation</a>
* @since ArangoDB 3.5.0
* @deprecated use {@link this#deleteSearchAnalyzer(String)}}}
*/
@Deprecated
void deleteAnalyzer(String name) throws ArangoDBException;

/**
* Deletes an Analyzer
*
* @param name of the Analyzer without database prefix
* @param options AnalyzerDeleteOptions
* @throws ArangoDBException
* @see <a href="https://www.arangodb.com/docs/stable/http/analyzers.html">API Documentation</a>
* @since ArangoDB 3.5.0
* @deprecated use {@link this#deleteSearchAnalyzer(String, AnalyzerDeleteOptions)}}}
*/
@Deprecated
void deleteAnalyzer(String name, AnalyzerDeleteOptions options) throws ArangoDBException;

/**
* Deletes an Analyzer
*
Expand Down
98 changes: 0 additions & 98 deletions src/main/java/com/arangodb/ArangoIterable.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

package com.arangodb;

import java.util.Collection;
import java.util.stream.Stream;

/**
Expand All @@ -33,101 +32,4 @@ public interface ArangoIterable<T> extends Iterable<T> {

Stream<T> stream();

/**
* Performs the given action for each element of the {@code ArangoIterable}
*
* @param action
* a action to perform on the elements
* @deprecated Use {@link #forEach(java.util.function.Consumer)} instead.
*/
@Deprecated
void foreach(Consumer<? super T> action);

/**
* Returns a {@code ArangoIterable} consisting of the results of applying the given function to the elements of this
* {@code ArangoIterable}.
*
* @param mapper
* a function to apply to each element
* @return the new {@code ArangoIterable}
*
* @deprecated Use {@link #stream()} and {@link Stream#map(java.util.function.Function)} instead.
*/
@Deprecated
<R> ArangoIterable<R> map(Function<? super T, ? extends R> mapper);

/**
* Returns a {@code ArangoIterable} consisting of the elements of this {@code ArangoIterable} that match the given
* predicate.
*
* @param predicate
* a predicate to apply to each element to determine if it should be included
* @return the new {@code ArangoIterable}
*
* @deprecated Use {@link #stream()} and {@link Stream#filter(java.util.function.Predicate)} instead.
*/
@Deprecated
ArangoIterable<T> filter(Predicate<? super T> predicate);

/**
* Returns the first element or {@code null} if no element exists.
*
* @return first element or {@code null}
* @deprecated Use {@link #stream()} and {@link Stream#findFirst()} instead.
*/
@Deprecated
T first();

/**
* Returns the count of elements of this {@code ArangoIterable}.
*
* @return the count of elements
* @deprecated Use {@link #stream()} and {@link Stream#count()} instead.
*/
@Deprecated
long count();

/**
* Returns whether any elements of this {@code ArangoIterable} match the provided predicate.
*
* @param predicate a predicate to apply to elements of this {@code ArangoIterable}
* @return {@code true} if any elements of the {@code ArangoIterable} match the provided predicate, otherwise
* {@code false}
* @deprecated Use {@link #stream()} and {@link Stream#anyMatch(java.util.function.Predicate)} instead.
*/
@Deprecated
boolean anyMatch(Predicate<? super T> predicate);

/**
* Returns whether all elements of this {@code ArangoIterable} match the provided predicate.
*
* @param predicate a predicate to apply to elements of this {@code ArangoIterable}
* @return {@code true} if all elements of the {@code ArangoIterable} match the provided predicate, otherwise
* {@code false}
* @deprecated Use {@link #stream()} and {@link Stream#allMatch(java.util.function.Predicate)} instead.
*/
@Deprecated
boolean allMatch(Predicate<? super T> predicate);

/**
* Returns whether no elements of this {@code ArangoIterable} match the provided predicate.
*
* @param predicate a predicate to apply to elements of this {@code ArangoIterable}
* @return {@code true} if no elements of the {@code ArangoIterable} match the provided predicate, otherwise
* {@code false}
* @deprecated Use {@link #stream()} and {@link Stream#noneMatch(java.util.function.Predicate)} instead.
*/
@Deprecated
boolean noneMatch(Predicate<? super T> predicate);

/**
* Iterates over all elements of this {@code ArangoIterable} and adds each to the given target.
*
* @param target the collection to insert into
* @return the filled target
* @deprecated Use {@link #stream()} and {@link Stream#collect} instead.
*/
@Deprecated
<R extends Collection<? super T>> R collectInto(R target);

}
38 changes: 0 additions & 38 deletions src/main/java/com/arangodb/Consumer.java

This file was deleted.

39 changes: 0 additions & 39 deletions src/main/java/com/arangodb/Predicate.java

This file was deleted.

Loading