6060import org .springframework .util .Assert ;
6161
6262/**
63- * Base class keeping common code for implementations of the
64- * {@link ReactiveElasticsearchOperations} interface
63+ * Base class keeping common code for implementations of the {@link ReactiveElasticsearchOperations} interface
6564 * independent of the used client.
6665 *
6766 * @author Peter-Josef Meisch
@@ -149,10 +148,8 @@ public RefreshPolicy getRefreshPolicy() {
149148 }
150149
151150 /**
152- * Set the {@link ReactiveEntityCallbacks} instance to use when invoking
153- * {@link ReactiveEntityCallbacks callbacks}
154- * like the {@link ReactiveBeforeConvertCallback}. Overrides potentially
155- * existing {@link ReactiveEntityCallbacks}.
151+ * Set the {@link ReactiveEntityCallbacks} instance to use when invoking {@link ReactiveEntityCallbacks callbacks}
152+ * like the {@link ReactiveBeforeConvertCallback}. Overrides potentially existing {@link ReactiveEntityCallbacks}.
156153 *
157154 * @param entityCallbacks must not be {@literal null}.
158155 * @throws IllegalArgumentException if the given instance is {@literal null}.
@@ -177,8 +174,7 @@ public Mono<Void> logVersions() {
177174 return getVendor ()
178175 .zipWith (getRuntimeLibraryVersion ())
179176 .zipWith (getClusterVersion ())
180- .doOnNext (objects -> VersionInfo .logVersions (objects .getT1 ().getT1 (), objects .getT1 ().getT2 (),
181- objects .getT2 ()))
177+ .doOnNext (objects -> VersionInfo .logVersions (objects .getT1 ().getT1 (), objects .getT1 ().getT2 (), objects .getT2 ()))
182178 .then ();
183179 }
184180
@@ -235,8 +231,7 @@ public <T> Flux<T> save(Flux<T> entities, IndexCoordinates index, int bulkSize)
235231 entities
236232 .bufferTimeout (bulkSize , Duration .ofMillis (200 ), true )
237233 .subscribe (new Subscriber <>() {
238- @ Nullable
239- private Subscription subscription = null ;
234+ @ Nullable private Subscription subscription = null ;
240235 private final AtomicBoolean upstreamComplete = new AtomicBoolean (false );
241236 private final AtomicBoolean onNextHasBeenCalled = new AtomicBoolean (false );
242237
@@ -437,8 +432,7 @@ public Mono<ByQueryResponse> delete(DeleteQuery query, Class<?> entityType) {
437432
438433 // region SearchDocument
439434 @ Override
440- public <T > Flux <SearchHit <T >> search (Query query , Class <?> entityType , Class <T > resultType ,
441- IndexCoordinates index ) {
435+ public <T > Flux <SearchHit <T >> search (Query query , Class <?> entityType , Class <T > resultType , IndexCoordinates index ) {
442436 SearchDocumentCallback <T > callback = new ReadSearchDocumentCallback <>(resultType , index );
443437 return doFind (query , entityType , index ).concatMap (callback ::toSearchHit );
444438 }
@@ -682,8 +676,7 @@ public Mono<T> toEntity(SearchDocument response) {
682676
683677 @ Override
684678 public Mono <SearchHit <T >> toSearchHit (SearchDocument response ) {
685- return toEntity (response )
686- .map (entity -> SearchHitMapping .mappingFor (type , converter ).mapHit (response , entity ));
679+ return toEntity (response ).map (entity -> SearchHitMapping .mappingFor (type , converter ).mapHit (response , entity ));
687680 }
688681 }
689682
@@ -747,8 +740,7 @@ public String getEntityRouting(Object entity) {
747740 }
748741
749742 /**
750- * Value class to capture client independent information from a response to an
751- * index request.
743+ * Value class to capture client independent information from a response to an index request.
752744 */
753745 public record IndexResponseMetaData (String id , String index , long seqNo , long primaryTerm , long version ) {
754746 }
@@ -774,8 +766,7 @@ public List<IndexQuery> indexQueries() {
774766 }
775767
776768 public T entityAt (long index ) {
777- // it's safe to cast to int because the original indexed collection was fitting
778- // in memory
769+ // it's safe to cast to int because the original indexed collection was fitting in memory
779770 int intIndex = (int ) index ;
780771 return entities .get (intIndex );
781772 }
0 commit comments