Class CompoundOutputEvaluator.OutputFieldsCollector

java.lang.Object
org.elasticsearch.xpack.esql.evaluator.command.CompoundOutputEvaluator.OutputFieldsCollector
Direct Known Subclasses:
RegisteredDomainFunctionBridge.RegisteredDomainCollectorImpl, UriPartsFunctionBridge.UriPartsCollectorImpl, UserAgentFunctionBridge.UserAgentCollectorImpl
Enclosing class:
CompoundOutputEvaluator

public abstract static class CompoundOutputEvaluator.OutputFieldsCollector extends Object
The base class for output fields collectors. Concrete collectors may implement interfaces that correspond to their corresponding evaluating function, in addition to extending this class.
  • Field Details

  • Constructor Details

    • OutputFieldsCollector

      protected OutputFieldsCollector(int outputFieldCount)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • evaluate

      protected abstract void evaluate(String input)
      Subclasses would apply the actual evaluation logic here and fill the target blocks accordingly.
      Parameters:
      input - the input string to evaluate the function on