Class ESAuditBackend.ESCursorResult

java.lang.Object
org.nuxeo.ecm.core.api.CursorResult<Iterator<org.opensearch.search.SearchHit>,org.opensearch.search.SearchHit>
org.nuxeo.elasticsearch.audit.ESAuditBackend.ESCursorResult
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<org.opensearch.search.SearchHit>
Enclosing class:
ESAuditBackend

public class ESAuditBackend.ESCursorResult extends CursorResult<Iterator<org.opensearch.search.SearchHit>,org.opensearch.search.SearchHit>
  • Field Details

    • scrollId

      protected final String scrollId
    • end

      protected boolean end
  • Constructor Details

    • ESCursorResult

      public ESCursorResult(org.opensearch.action.search.SearchResponse response, int batchSize, int keepAliveSeconds)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<org.opensearch.search.SearchHit>
      Overrides:
      hasNext in class CursorResult<Iterator<org.opensearch.search.SearchHit>,org.opensearch.search.SearchHit>
    • next

      public org.opensearch.search.SearchHit next()
      Specified by:
      next in interface Iterator<org.opensearch.search.SearchHit>
      Overrides:
      next in class CursorResult<Iterator<org.opensearch.search.SearchHit>,org.opensearch.search.SearchHit>
    • runNextScroll

      protected void runNextScroll()
    • close

      public void close()
      Description copied from class: CursorResult
      CAUTION: if your cursor doesn't implement Closeable, we just set the field to null
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class CursorResult<Iterator<org.opensearch.search.SearchHit>,org.opensearch.search.SearchHit>