You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: templates/java/api_helpers.mustache
+48-39Lines changed: 48 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -586,7 +586,9 @@ public CompletableFuture<List<SearchForFacetValuesResponse>> searchForFacetsAsyn
586
586
}
587
587
588
588
/**
589
-
* Helper: Chunks the given `objects` list in subset of 1000 elements max in order to make it fit in `push` requests by leveraging the Transformation pipeline setup in the Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/).
589
+
* Helper: Chunks the given `objects` list in subset of 1000 elements max in order to make it fit
590
+
* in `push` requests by leveraging the Transformation pipeline setup in the Push connector
* @summary Helper: Chunks the given `objects` list in subset of 1000 elements max in order to
592
594
* make it fit in `batch` requests.
@@ -598,14 +600,16 @@ public CompletableFuture<List<SearchForFacetValuesResponse>> searchForFacetsAsyn
598
600
* reliable.
599
601
* @param batchSize - The size of the chunk of `objects`. The number of `batch` calls will be
600
602
* equal to `length(objects) / batchSize`. Defaults to 1000.
601
-
* @param referenceIndexName - This is required when targeting an index that does not have a push connector setup (e.g. a tmp index), but you wish to attach another index's transformation to it (e.g. the source index name).
603
+
* @param referenceIndexName - This is required when targeting an index that does not have a push
604
+
* connector setup (e.g. a tmp index), but you wish to attach another index's transformation
605
+
* to it (e.g. the source index name).
602
606
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded
603
607
* to the `getTask` method and merged with the transporter requestOptions.
604
608
*/
605
609
public <T> List<WatchResponse> chunkedPush(
606
610
String indexName,
607
611
Iterable<T> objects,
608
-
Action action,
612
+
com.algolia.model.ingestion.Action action,
609
613
boolean waitForTasks,
610
614
int batchSize,
611
615
String referenceIndexName,
@@ -616,17 +620,18 @@ public <T> List<WatchResponse> chunkedPush(
616
620
}
617
621
618
622
List<WatchResponse> responses = new ArrayList<>();
0 commit comments