Class RerankOperatorRequestIterator

java.lang.Object
org.elasticsearch.xpack.esql.inference.rerank.RerankOperatorRequestIterator
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<InferenceAction.Request>, org.elasticsearch.core.Releasable, BulkInferenceRequestIterator

public class RerankOperatorRequestIterator extends Object implements BulkInferenceRequestIterator
Iterator over input data blocks to create batched inference requests for the Rerank task.

This iterator reads from a BytesRefBlock containing input documents or items to be reranked. It slices the input into batches of configurable size and converts each batch into an InferenceAction.Request with the task type TaskType.RERANK.