Class LuceneCountOperator

All Implemented Interfaces:
Closeable, AutoCloseable, Operator, org.elasticsearch.core.Releasable

public class LuceneCountOperator extends LuceneOperator
Source operator that incrementally counts the results in Lucene searches Returns always one entry that mimics the Count aggregation internal state: 1. the count as a long (0 if no doc is seen) 2. a bool flag (seen) that's always true meaning that the group (all items) always exists
  • Constructor Details

  • Method Details

    • isFinished

      public boolean isFinished()
      Description copied from interface: Operator
      whether the operator has finished processing all input pages and made the corresponding output pages available
    • finish

      public void finish()
      Description copied from interface: Operator
      notifies the operator that it won't receive any more input pages
    • getCheckedOutput

      protected Page getCheckedOutput() throws IOException
      Specified by:
      getCheckedOutput in class LuceneOperator
      Throws:
      IOException
    • describe

      protected void describe(StringBuilder sb)
      Specified by:
      describe in class LuceneOperator