mirror of
https://github.com/spring-projects/spring-data-elasticsearch.git
synced 2025-06-24 13:02:10 +00:00
DATAES-738 - Removing one save method as it does not fit the naming scheme.
This commit is contained in:
parent
9c64dd9c39
commit
77f43ce64c
@ -146,11 +146,6 @@ public abstract class AbstractElasticsearchTemplate implements ElasticsearchOper
|
|||||||
return save(Arrays.asList(entities));
|
return save(Arrays.asList(entities));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public <T> Iterable<T> save(IndexCoordinates index, T... entities) {
|
|
||||||
return save(Arrays.asList(entities), index);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void delete(Query query, Class<?> clazz, IndexCoordinates index) {
|
public void delete(Query query, Class<?> clazz, IndexCoordinates index) {
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ public interface DocumentOperations {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Saves an entity to the index specified in the entity's Document annotation
|
* 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 entity the entity to save, must not be {@literal null}
|
||||||
* @param <T> the entity type
|
* @param <T> the entity type
|
||||||
* @return the saved entity
|
* @return the saved entity
|
||||||
@ -47,7 +47,7 @@ public interface DocumentOperations {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Saves an entity to the index specified in the entity's Document annotation
|
* 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 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 index the index to save the entity in, must not be {@literal null}
|
||||||
* @param <T> the entity type
|
* @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
|
* saves the given entities to the index retrieved from the entities' Document annotation
|
||||||
*
|
*
|
||||||
* @param entities must not be {@literal null}
|
* @param entities must not be {@literal null}
|
||||||
* @param <T> the entity type
|
* @param <T> the entity type
|
||||||
* @return the saved entites
|
* @return the saved entites
|
||||||
@ -79,20 +79,10 @@ public interface DocumentOperations {
|
|||||||
*
|
*
|
||||||
* @param entities must not be {@literal null}
|
* @param entities must not be {@literal null}
|
||||||
* @param <T> the entity type
|
* @param <T> the entity type
|
||||||
* @return the saved entites as Iterable
|
* @return the saved entities as Iterable
|
||||||
*/
|
*/
|
||||||
<T> Iterable<T> save(T... entities);
|
<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.
|
* Index an object. Will do save or update.
|
||||||
*
|
*
|
||||||
@ -135,7 +125,7 @@ public interface DocumentOperations {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Bulk index all objects. Will do save or update.
|
* Bulk index all objects. Will do save or update.
|
||||||
*
|
*
|
||||||
* @param queries the queries to execute in bulk
|
* @param queries the queries to execute in bulk
|
||||||
* @param bulkOptions options to be added to the bulk request
|
* @param bulkOptions options to be added to the bulk request
|
||||||
* @return the ids of the indexed objects
|
* @return the ids of the indexed objects
|
||||||
|
Loading…
x
Reference in New Issue
Block a user