code
stringlengths
23
201k
docstring
stringlengths
17
96.2k
func_name
stringlengths
0
235
language
stringclasses
1 value
repo
stringlengths
8
72
path
stringlengths
11
317
url
stringlengths
57
377
license
stringclasses
7 values
@Override public <T> Mono<T> get(String id, Class<T> entityType) { return get(id, entityType, getIndexCoordinatesFor(entityType)); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
get
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Mono<String> delete(Object entity, IndexCoordinates index) { EntityOperations.AdaptableEntity<?> elasticsearchEntity = entityOperations.forEntity(entity, converter.getConversionService(), routingResolver); if (elasticsearchEntity.getId() == null) { return Mono.error(new IllegalArgumentExc...
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
delete
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Mono<String> delete(Object entity) { return delete(entity, getIndexCoordinatesFor(entity.getClass())); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
delete
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Mono<String> delete(String id, Class<?> entityType) { Assert.notNull(id, "id must not be null"); Assert.notNull(entityType, "entityType must not be null"); return delete(id, getIndexCoordinatesFor(entityType)); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
delete
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Mono<String> delete(String id, IndexCoordinates index) { Assert.notNull(id, "id must not be null"); Assert.notNull(index, "index must not be null"); return doDeleteById(id, routingResolver.getRouting(), index); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
delete
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Mono<ByQueryResponse> delete(DeleteQuery query, Class<?> entityType) { return delete(query, entityType, getIndexCoordinatesFor(entityType)); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
delete
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public <T> Flux<SearchHit<T>> search(Query query, Class<?> entityType, Class<T> resultType, IndexCoordinates index) { SearchDocumentCallback<T> callback = new ReadSearchDocumentCallback<>(resultType, index); return doFind(query, entityType, index).concatMap(callback::toSearchHit); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
search
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public <T> Flux<SearchHit<T>> search(Query query, Class<?> entityType, Class<T> returnType) { return search(query, entityType, returnType, getIndexCoordinatesFor(entityType)); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
search
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public <T> Mono<SearchPage<T>> searchForPage(Query query, Class<?> entityType, Class<T> resultType) { return searchForPage(query, entityType, resultType, getIndexCoordinatesFor(entityType)); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
searchForPage
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public <T> Mono<SearchPage<T>> searchForPage(Query query, Class<?> entityType, Class<T> resultType, IndexCoordinates index) { SearchDocumentCallback<T> callback = new ReadSearchDocumentCallback<>(resultType, index); return doFindForResponse(query, entityType, index) .flatMap(searchDocumentRespon...
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
searchForPage
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public <T> Mono<ReactiveSearchHits<T>> searchForHits(Query query, Class<?> entityType, Class<T> resultType) { return searchForHits(query, entityType, resultType, getIndexCoordinatesFor(entityType)); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
searchForHits
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public <T> Mono<ReactiveSearchHits<T>> searchForHits(Query query, Class<?> entityType, Class<T> resultType, IndexCoordinates index) { Assert.notNull(query, "query must not be null"); Assert.notNull(entityType, "entityType must not be null"); Assert.notNull(resultType, "resultType must not be null")...
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
searchForHits
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Flux<? extends AggregationContainer<?>> aggregate(Query query, Class<?> entityType) { return aggregate(query, entityType, getIndexCoordinatesFor(entityType)); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
aggregate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Mono<Suggest> suggest(Query query, Class<?> entityType) { return suggest(query, entityType, getIndexCoordinatesFor(entityType)); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
suggest
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Mono<Suggest> suggest(Query query, Class<?> entityType, IndexCoordinates index) { Assert.notNull(query, "query must not be null"); Assert.notNull(entityType, "entityType must not be null"); Assert.notNull(index, "index must not be null"); return doFindForResponse(query, entityType, index).ma...
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
suggest
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Mono<Long> count(Query query, Class<?> entityType) { return count(query, entityType, getIndexCoordinatesFor(entityType)); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
count
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Mono<Long> count(Query query, Class<?> entityType, IndexCoordinates index) { return doCount(query, entityType, index); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
count
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Mono<String> openPointInTime(IndexCoordinates index, Duration keepAlive, Boolean ignoreUnavailable) { throw new UnsupportedClientOperationException(getClass(), "openPointInTime"); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
openPointInTime
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Mono<Boolean> closePointInTime(String pit) { throw new UnsupportedClientOperationException(getClass(), "closePointInTime"); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
closePointInTime
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
protected <T> Mono<T> maybeCallbackBeforeConvert(T entity, IndexCoordinates index) { if (null != entityCallbacks) { return entityCallbacks.callback(ReactiveBeforeConvertCallback.class, entity, index); } return Mono.just(entity); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
maybeCallbackBeforeConvert
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
protected <T> Mono<T> maybeCallbackAfterSave(T entity, IndexCoordinates index) { if (null != entityCallbacks) { return entityCallbacks.callback(ReactiveAfterSaveCallback.class, entity, index); } return Mono.just(entity); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
maybeCallbackAfterSave
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
protected <T> Mono<T> maybeCallbackAfterConvert(T entity, Document document, IndexCoordinates index) { if (null != entityCallbacks) { return entityCallbacks.callback(ReactiveAfterConvertCallback.class, entity, document, index); } return Mono.just(entity); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
maybeCallbackAfterConvert
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
protected <T> Mono<Document> maybeCallbackAfterLoad(Document document, Class<T> type, IndexCoordinates index) { if (entityCallbacks != null) { return entityCallbacks.callback(ReactiveAfterLoadCallback.class, document, type, index); } return Mono.just(document); }
logs the versions of the different Elasticsearch components. @return a Mono signalling finished execution @since 4.3
maybeCallbackAfterLoad
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
public Mono<T> toEntity(@Nullable Document document) { if (document == null) { return Mono.empty(); } return maybeCallbackAfterLoad(document, type, index) .flatMap(documentAfterLoad -> { // noinspection DuplicatedCode T entity = reader.read(type, documentAfterLoad); IndexedObjectInf...
Convert a document into an entity @param document the document to convert @return a Mono of the entity
toEntity
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Mono<T> toEntity(SearchDocument response) { return delegate.toEntity(response); }
converts a {@link SearchDocument} into a SearchHit @param searchDocument the document to convert @return the converted SearchHit
toEntity
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Mono<SearchHit<T>> toSearchHit(SearchDocument response) { return toEntity(response).map(entity -> SearchHitMapping.mappingFor(type, converter).mapHit(response, entity)); }
converts a {@link SearchDocument} into a SearchHit @param searchDocument the document to convert @return the converted SearchHit
toSearchHit
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Mono<Boolean> putScript(Script script) { throw new UnsupportedOperationException( "putScript() operation not implemented by " + getClass().getCanonicalName()); }
converts a {@link SearchDocument} into a SearchHit @param searchDocument the document to convert @return the converted SearchHit
putScript
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Mono<Script> getScript(String name) { throw new UnsupportedOperationException( "getScript() operation not implemented by " + getClass().getCanonicalName()); }
converts a {@link SearchDocument} into a SearchHit @param searchDocument the document to convert @return the converted SearchHit
getScript
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public Mono<Boolean> deleteScript(String name) { throw new UnsupportedOperationException( "deleteScript() operation not implemented by " + getClass().getCanonicalName()); }
converts a {@link SearchDocument} into a SearchHit @param searchDocument the document to convert @return the converted SearchHit
deleteScript
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override public IndexCoordinates getIndexCoordinatesFor(Class<?> clazz) { ElasticsearchPersistentEntity<?> persistentEntity = getPersistentEntityFor(clazz); Assert.notNull(persistentEntity, "could not get indexCoordinates for class " + clazz.getName()); return persistentEntity.getIndexCoordinates(); }
converts a {@link SearchDocument} into a SearchHit @param searchDocument the document to convert @return the converted SearchHit
getIndexCoordinatesFor
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Override @Nullable public ElasticsearchPersistentEntity<?> getPersistentEntityFor(@Nullable Class<?> type) { return type != null ? mappingContext.getPersistentEntity(type) : null; }
converts a {@link SearchDocument} into a SearchHit @param searchDocument the document to convert @return the converted SearchHit
getPersistentEntityFor
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
@Nullable public String getEntityRouting(Object entity) { return entityOperations.forEntity(entity, converter.getConversionService(), routingResolver) .getRouting(); }
@return the version of the used client runtime library. @since 4.3
getEntityRouting
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
public boolean isEmpty() { return entities.isEmpty(); }
Value class to capture client independent information from a response to an index request.
isEmpty
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
public List<IndexQuery> indexQueries() { return entities.stream().map(AbstractReactiveElasticsearchTemplate.this::getIndexQuery) .collect(Collectors.toList()); }
Value class to capture client independent information from a response to an index request.
indexQueries
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
public T entityAt(long index) { // it's safe to cast to int because the original indexed collection was fitting in memory int intIndex = (int) index; return entities.get(intIndex); }
Value class to capture client independent information from a response to an index request.
entityAt
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/AbstractReactiveElasticsearchTemplate.java
Apache-2.0
default List<IndexedObjectInformation> bulkIndex(List<IndexQuery> queries, Class<?> clazz) { return bulkIndex(queries, BulkOptions.defaultOptions(), clazz); }
Bulk index all objects. Will do save or update. @param queries the queries to execute in bulk @param clazz the entity class @return the information about the indexed objects @throws org.springframework.data.elasticsearch.BulkFailureException with information about the failed operation @since 4.1
bulkIndex
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/DocumentOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/DocumentOperations.java
Apache-2.0
default List<IndexedObjectInformation> bulkIndex(List<IndexQuery> queries, IndexCoordinates index) { return bulkIndex(queries, BulkOptions.defaultOptions(), index); }
Bulk index all objects. Will do save or update. @param queries the queries to execute in bulk @return the information about of the indexed objects @throws org.springframework.data.elasticsearch.BulkFailureException with information about the failed operation
bulkIndex
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/DocumentOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/DocumentOperations.java
Apache-2.0
default void bulkUpdate(List<UpdateQuery> queries, IndexCoordinates index) { bulkUpdate(queries, BulkOptions.defaultOptions(), index); }
Bulk update all objects. Will do update. @param queries the queries to execute in bulk @throws org.springframework.data.elasticsearch.BulkFailureException with information about the failed operation
bulkUpdate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/DocumentOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/DocumentOperations.java
Apache-2.0
@Nullable default String convertId(@Nullable Object idValue) { return idValue != null ? getElasticsearchConverter().convertId(idValue) : null; }
Converts an idValue to a String representation. The default implementation calls {@link ElasticsearchConverter#convertId(Object)} @param idValue the value to convert @return the converted value or {@literal null} if idValue is null @since 5.0
convertId
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/ElasticsearchOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/ElasticsearchOperations.java
Apache-2.0
@SuppressWarnings({ "unchecked", "rawtypes" }) <T> Entity<T> forEntity(T entity) { Assert.notNull(entity, "Bean must not be null!"); if (entity instanceof Map) { return new SimpleMappedEntity((Map<String, Object>) entity); } return MappedEntity.of(entity, context); }
Creates a new {@link Entity} for the given bean. @param entity must not be {@literal null}. @return
forEntity
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
Apache-2.0
@SuppressWarnings({ "unchecked", "rawtypes" }) public <T> AdaptableEntity<T> forEntity(T entity, ConversionService conversionService, RoutingResolver routingResolver) { Assert.notNull(entity, "Bean must not be null!"); Assert.notNull(conversionService, "ConversionService must not be null!"); if (entity inst...
Creates a new {@link AdaptableEntity} for the given bean and {@link ConversionService} and {@link RoutingResolver}. @param entity must not be {@literal null}. @param conversionService must not be {@literal null}. @param routingResolver the {@link RoutingResolver}, must not be {@literal null} @return the {@link Adaptab...
forEntity
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
Apache-2.0
public <T> T updateIndexedObject(T entity, IndexedObjectInformation indexedObjectInformation, ElasticsearchConverter elasticsearchConverter, RoutingResolver routingResolver) { Assert.notNull(entity, "entity must not be null"); Assert.notNull(indexedObjectInformation, "indexedObjectInformation must not be ...
Updates an entity after it is stored in Elasticsearch with additional data like id, version, seqno... @param <T> the entity class @param entity the entity to update @param indexedObjectInformation the update information @param elasticsearchConverter the converter providing necessary mapping information @param routingR...
updateIndexedObject
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
Apache-2.0
IndexCoordinates determineIndex(Entity<?> entity, @Nullable String index) { return determineIndex(entity.getPersistentEntity(), index); }
Determine index name and type name from {@link Entity} with {@code index} and {@code type} overrides. Allows using preferred values for index and type if provided, otherwise fall back to index and type defined on entity level. @param entity the entity to determine the index name. Can be {@literal null} if {@code index...
determineIndex
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
Apache-2.0
IndexCoordinates determineIndex(ElasticsearchPersistentEntity<?> persistentEntity, @Nullable String index) { return index != null ? IndexCoordinates.of(index) : persistentEntity.getIndexCoordinates(); }
Determine index name and type name from {@link ElasticsearchPersistentEntity} with {@code index} and {@code type} overrides. Allows using preferred values for index and type if provided, otherwise fall back to index and type defined on entity level. @param persistentEntity the entity to determine the index name. Can b...
determineIndex
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
Apache-2.0
default boolean isVersionedEntity() { return false; }
Returns whether the entity is versioned, i.e. if it contains a version property. @return
isVersionedEntity
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
Apache-2.0
default ElasticsearchPersistentEntity<?> getRequiredPersistentEntity() { ElasticsearchPersistentEntity<?> persistentEntity = getPersistentEntity(); if (persistentEntity == null) { throw new IllegalStateException("No ElasticsearchPersistentEntity available for this entity!"); } return persistentEntity;...
Returns the required {@link ElasticsearchPersistentEntity}. @return @throws IllegalStateException if no {@link ElasticsearchPersistentEntity} is associated with this entity.
getRequiredPersistentEntity
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
Apache-2.0
@Override public Object getId() { return getBean().get(ID_FIELD); }
Simple mapped entity without an associated {@link ElasticsearchPersistentEntity}. @param <T> @since 3.2
getId
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
Apache-2.0
private static <T> MappedEntity<T> of(T bean, MappingContext<? extends ElasticsearchPersistentEntity<?>, ElasticsearchPersistentProperty> context) { ElasticsearchPersistentEntity<?> entity = context.getRequiredPersistentEntity(bean.getClass()); IdentifierAccessor identifierAccessor = entity.getIdentifierAcce...
Mapped entity with an associated {@link ElasticsearchPersistentEntity}. @param <T> @since 3.2
of
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
Apache-2.0
@Override public Object getId() { return idAccessor.getIdentifier(); }
Mapped entity with an associated {@link ElasticsearchPersistentEntity}. @param <T> @since 3.2
getId
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
Apache-2.0
@Override public boolean isVersionedEntity() { return entity.hasVersionProperty(); }
Mapped entity with an associated {@link ElasticsearchPersistentEntity}. @param <T> @since 3.2
isVersionedEntity
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
Apache-2.0
@Override @Nullable public Object getVersion() { return propertyAccessor.getProperty(entity.getVersionProperty()); }
Mapped entity with an associated {@link ElasticsearchPersistentEntity}. @param <T> @since 3.2
getVersion
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
Apache-2.0
@Override public T getBean() { return propertyAccessor.getBean(); }
Mapped entity with an associated {@link ElasticsearchPersistentEntity}. @param <T> @since 3.2
getBean
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
Apache-2.0
@Override public boolean isNew() { return entity.isNew(propertyAccessor.getBean()); }
Mapped entity with an associated {@link ElasticsearchPersistentEntity}. @param <T> @since 3.2
isNew
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
Apache-2.0
@Override public ElasticsearchPersistentEntity<?> getPersistentEntity() { return entity; }
Mapped entity with an associated {@link ElasticsearchPersistentEntity}. @param <T> @since 3.2
getPersistentEntity
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/EntityOperations.java
Apache-2.0
public static IndexInformation of(String name, @Nullable Settings settings, @Nullable Document mapping, @Nullable List<AliasData> aliases) { return new IndexInformation(name, settings, mapping, aliases); }
Immutable object that holds information(name, settings, mappings, aliases) about an Index @author George Popides @author Peter-Josef Meisch @since 4.2
of
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexInformation.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexInformation.java
Apache-2.0
public String getName() { return name; }
Immutable object that holds information(name, settings, mappings, aliases) about an Index @author George Popides @author Peter-Josef Meisch @since 4.2
getName
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexInformation.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexInformation.java
Apache-2.0
@Nullable public Document getMapping() { return mapping; }
Immutable object that holds information(name, settings, mappings, aliases) about an Index @author George Popides @author Peter-Josef Meisch @since 4.2
getMapping
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexInformation.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexInformation.java
Apache-2.0
@Nullable public Settings getSettings() { return settings; }
Immutable object that holds information(name, settings, mappings, aliases) about an Index @author George Popides @author Peter-Josef Meisch @since 4.2
getSettings
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexInformation.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexInformation.java
Apache-2.0
@Nullable public List<AliasData> getAliases() { return aliases; }
Immutable object that holds information(name, settings, mappings, aliases) about an Index @author George Popides @author Peter-Josef Meisch @since 4.2
getAliases
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexInformation.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexInformation.java
Apache-2.0
default boolean putMapping() { return putMapping(createMapping()); }
Writes the mapping to the index for the class this IndexOperations is bound to. @return {@literal true} if the mapping could be stored @since 4.1
putMapping
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
Apache-2.0
default boolean putMapping(Class<?> clazz) { return putMapping(createMapping(clazz)); }
Creates the index mapping for the given class and writes it to the index. @param clazz the clazz to create a mapping for @return {@literal true} if the mapping could be stored @since 4.1
putMapping
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
Apache-2.0
@Deprecated @Nullable default TemplateData getTemplate(String templateName) { return getTemplate(new GetTemplateRequest(templateName)); }
gets an index template using the legacy Elasticsearch interface. @param templateName the template name @return TemplateData, {@literal null} if no template with the given name exists. @since 4.1 @deprecated since 5.1, as the underlying Elasticsearch API is deprecated.
getTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
Apache-2.0
@Deprecated default boolean existsTemplate(String templateName) { return existsTemplate(new ExistsTemplateRequest(templateName)); }
check if an index template exists using the legacy Elasticsearch interface. @param templateName the template name @return {@literal true} if the index exists @since 4.1 @deprecated since 5.1, as the underlying Elasticsearch API is deprecated.
existsTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
Apache-2.0
default boolean existsIndexTemplate(String templateName) { return existsIndexTemplate(new ExistsIndexTemplateRequest(templateName)); }
check if an index template exists. @param templateName the template name @return true if the index template exists @since 5.1
existsIndexTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
Apache-2.0
default List<TemplateResponse> getIndexTemplate(String templateName) { return getIndexTemplate(new GetIndexTemplateRequest(templateName)); }
Gets an index template. @param templateName template name @since 5.1
getIndexTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
Apache-2.0
default boolean deleteIndexTemplate(String templateName) { return deleteIndexTemplate(new DeleteIndexTemplateRequest(templateName)); }
Deletes an index template. @param templateName template name @return true if successful @since 5.1
deleteIndexTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
Apache-2.0
@Deprecated default boolean deleteTemplate(String templateName) { return deleteTemplate(new DeleteTemplateRequest(templateName)); }
Deletes an index template using the legacy Elasticsearch interface (@see https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates-v1.html). @param templateName the template name @return true if successful @since 4.1 @deprecated since 5.1, as the underlying Elasticsearch API is deprecated.
deleteTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
Apache-2.0
default List<IndexInformation> getInformation() { return getInformation(getIndexCoordinates()); }
Gets the {@link IndexInformation} for the indices defined by {@link #getIndexCoordinates()}. @return a list of {@link IndexInformation} @since 4.2
getInformation
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperations.java
Apache-2.0
static IndexOperationsAdapter blocking(ReactiveIndexOperations reactiveIndexOperations) { Assert.notNull(reactiveIndexOperations, "reactiveIndexOperations must not be null"); return new IndexOperationsAdapter() { @Override public boolean create() { return Boolean.TRUE.equals(reactiveIndexOperations.crea...
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
blocking
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public boolean create() { return Boolean.TRUE.equals(reactiveIndexOperations.create().block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
create
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public boolean create(Map<String, Object> settings) { return Boolean.TRUE.equals(reactiveIndexOperations.create(settings).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
create
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public boolean create(Map<String, Object> settings, Document mapping) { return Boolean.TRUE.equals(reactiveIndexOperations.create(settings, mapping).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
create
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public boolean createWithMapping() { return Boolean.TRUE.equals(reactiveIndexOperations.createWithMapping().block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
createWithMapping
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public boolean delete() { return Boolean.TRUE.equals(reactiveIndexOperations.delete().block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
delete
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public boolean exists() { return Boolean.TRUE.equals(reactiveIndexOperations.exists().block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
exists
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public void refresh() { reactiveIndexOperations.refresh().block(); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
refresh
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public Document createMapping() { return Objects.requireNonNull(reactiveIndexOperations.createMapping().block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
createMapping
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public Document createMapping(Class<?> clazz) { return Objects.requireNonNull(reactiveIndexOperations.createMapping(clazz).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
createMapping
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public boolean putMapping(Document mapping) { return Boolean.TRUE.equals(reactiveIndexOperations.putMapping(Mono.just(mapping)).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
putMapping
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public Map<String, Object> getMapping() { return Objects.requireNonNull(reactiveIndexOperations.getMapping().block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
getMapping
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public Settings createSettings() { return Objects.requireNonNull(reactiveIndexOperations.createSettings().block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
createSettings
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public Settings createSettings(Class<?> clazz) { return Objects.requireNonNull(reactiveIndexOperations.createSettings(clazz).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
createSettings
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public Settings getSettings() { return Objects.requireNonNull(reactiveIndexOperations.getSettings().block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
getSettings
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public Settings getSettings(boolean includeDefaults) { return Objects.requireNonNull(reactiveIndexOperations.getSettings(includeDefaults).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
getSettings
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public boolean alias(AliasActions aliasActions) { return Boolean.TRUE.equals(reactiveIndexOperations.alias(aliasActions).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
alias
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public Map<String, Set<AliasData>> getAliases(String... aliasNames) { return Objects.requireNonNull(reactiveIndexOperations.getAliases(aliasNames).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
getAliases
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public Map<String, Set<AliasData>> getAliasesForIndex(String... indexNames) { return Objects.requireNonNull(reactiveIndexOperations.getAliasesForIndex(indexNames).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
getAliasesForIndex
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Deprecated @Override public boolean putTemplate(PutTemplateRequest putTemplateRequest) { return Boolean.TRUE.equals(reactiveIndexOperations.putTemplate(putTemplateRequest).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
putTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public boolean putIndexTemplate(PutIndexTemplateRequest putIndexTemplateRequest) { return Boolean.TRUE.equals(reactiveIndexOperations.putIndexTemplate(putIndexTemplateRequest).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
putIndexTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public boolean putComponentTemplate(PutComponentTemplateRequest putComponentTemplateRequest) { return Boolean.TRUE.equals(reactiveIndexOperations.putComponentTemplate(putComponentTemplateRequest).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
putComponentTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public boolean existsComponentTemplate(ExistsComponentTemplateRequest existsComponentTemplateRequest) { return Boolean.TRUE .equals(reactiveIndexOperations.existsComponentTemplate(existsComponentTemplateRequest).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
existsComponentTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public List<TemplateResponse> getComponentTemplate(GetComponentTemplateRequest getComponentTemplateRequest) { return Objects.requireNonNull( reactiveIndexOperations.getComponentTemplate(getComponentTemplateRequest).collectList().block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
getComponentTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public boolean deleteComponentTemplate(DeleteComponentTemplateRequest deleteComponentTemplateRequest) { return Boolean.TRUE .equals(reactiveIndexOperations.deleteComponentTemplate(deleteComponentTemplateRequest).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
deleteComponentTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Deprecated @Nullable @Override public TemplateData getTemplate(GetTemplateRequest getTemplateRequest) { return Objects.requireNonNull(reactiveIndexOperations).getTemplate(getTemplateRequest).block(); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
getTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Deprecated @Override public boolean existsTemplate(ExistsTemplateRequest existsTemplateRequest) { return Boolean.TRUE.equals(reactiveIndexOperations.existsTemplate(existsTemplateRequest).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
existsTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public boolean existsIndexTemplate(ExistsIndexTemplateRequest existsTemplateRequest) { return Boolean.TRUE.equals(reactiveIndexOperations.existsIndexTemplate(existsTemplateRequest).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
existsIndexTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public List<TemplateResponse> getIndexTemplate(GetIndexTemplateRequest getIndexTemplateRequest) { return Objects .requireNonNull(reactiveIndexOperations.getIndexTemplate(getIndexTemplateRequest).collectList().block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
getIndexTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public boolean deleteIndexTemplate(DeleteIndexTemplateRequest deleteIndexTemplateRequest) { return Boolean.TRUE.equals(reactiveIndexOperations.deleteIndexTemplate(deleteIndexTemplateRequest).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
deleteIndexTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Deprecated @Override public boolean deleteTemplate(DeleteTemplateRequest deleteTemplateRequest) { return Boolean.TRUE.equals(reactiveIndexOperations.deleteTemplate(deleteTemplateRequest).block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
deleteTemplate
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0
@Override public List<IndexInformation> getInformation(IndexCoordinates index) { return Objects.requireNonNull(reactiveIndexOperations.getInformation(index).collectList().block()); }
Adapter for creating synchronous calls for a reactive {@link ReactiveIndexOperations}. @author Peter-Josef Meisch @since 5.2
getInformation
java
spring-projects/spring-data-elasticsearch
src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
https://github.com/spring-projects/spring-data-elasticsearch/blob/master/src/main/java/org/springframework/data/elasticsearch/core/IndexOperationsAdapter.java
Apache-2.0