Interface BulkInferenceRequestIterator

All Superinterfaces:
AutoCloseable, Closeable, Iterator<InferenceAction.Request>, org.elasticsearch.core.Releasable
All Known Implementing Classes:
CompletionOperatorRequestIterator, RerankOperatorRequestIterator

public interface BulkInferenceRequestIterator extends Iterator<InferenceAction.Request>, org.elasticsearch.core.Releasable
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an estimate of the number of requests that will be produced.

    Methods inherited from interface java.util.Iterator

    forEachRemaining, hasNext, next, remove

    Methods inherited from interface org.elasticsearch.core.Releasable

    close
  • Method Details

    • estimatedSize

      int estimatedSize()
      Returns an estimate of the number of requests that will be produced.

      This is typically used to pre-allocate buffers or output to th appropriate size.