Class BooleanFieldScript

java.lang.Object
org.elasticsearch.script.AbstractFieldScript
org.elasticsearch.script.BooleanFieldScript

public abstract class BooleanFieldScript extends AbstractFieldScript
  • Field Details

  • Constructor Details

    • BooleanFieldScript

      public BooleanFieldScript(String fieldName, Map<String,Object> params, SearchLookup searchLookup, org.apache.lucene.index.LeafReaderContext ctx)
  • Method Details

    • runForDoc

      public final void runForDoc(int docId)
      Execute the script for the provided docId.
    • runForDoc

      public final void runForDoc(int docId, Consumer<Boolean> consumer)
    • trues

      public final int trues()
      How many true values were returned for this document.
    • falses

      public final int falses()
      How many false values were returned for this document.
    • emitFromObject

      protected final void emitFromObject(Object v)
      Specified by:
      emitFromObject in class AbstractFieldScript
    • emit

      public final void emit(boolean v)