DATAES-738 - Removing one save method as it does not fit the naming scheme.

This commit is contained in:
Peter-Josef Meisch 2020-02-11 19:03:00 +01:00
parent 9c64dd9c39
commit 77f43ce64c
2 changed files with 5 additions and 20 deletions

View File

@ -146,11 +146,6 @@ public abstract class AbstractElasticsearchTemplate implements ElasticsearchOper
return save(Arrays.asList(entities));
}
@Override
public <T> Iterable<T> save(IndexCoordinates index, T... entities) {
return save(Arrays.asList(entities), index);
}
@Override
public void delete(Query query, Class<?> clazz, IndexCoordinates index) {

View File

@ -38,7 +38,7 @@ public interface DocumentOperations {
/**
* Saves an entity to the index specified in the entity's Document annotation
*
*
* @param entity the entity to save, must not be {@literal null}
* @param <T> the entity type
* @return the saved entity
@ -47,7 +47,7 @@ public interface DocumentOperations {
/**
* Saves an entity to the index specified in the entity's Document annotation
*
*
* @param entity the entity to save, must not be {@literal null}
* @param index the index to save the entity in, must not be {@literal null}
* @param <T> the entity type
@ -57,7 +57,7 @@ public interface DocumentOperations {
/**
* saves the given entities to the index retrieved from the entities' Document annotation
*
*
* @param entities must not be {@literal null}
* @param <T> the entity type
* @return the saved entites
@ -79,20 +79,10 @@ public interface DocumentOperations {
*
* @param entities must not be {@literal null}
* @param <T> the entity type
* @return the saved entites as Iterable
* @return the saved entities as Iterable
*/
<T> Iterable<T> save(T... entities);
/**
* saves the given entities to the given index.
*
* @param index the idnex to save the entities in, must not be {@literal null}
* @param entities must not be {@literal null}
* @param <T> the entity type
* @return the saved entites as Iterable
*/
<T> Iterable<T> save(IndexCoordinates index, T... entities);
/**
* Index an object. Will do save or update.
*
@ -135,7 +125,7 @@ public interface DocumentOperations {
/**
* Bulk index all objects. Will do save or update.
*
*
* @param queries the queries to execute in bulk
* @param bulkOptions options to be added to the bulk request
* @return the ids of the indexed objects