Class ProjectOperator

java.lang.Object
org.elasticsearch.compute.operator.AbstractPageMappingOperator
org.elasticsearch.compute.operator.ProjectOperator
All Implemented Interfaces:
Closeable, AutoCloseable, Operator, org.elasticsearch.core.Releasable

public class ProjectOperator extends AbstractPageMappingOperator
  • Constructor Details

    • ProjectOperator

      public ProjectOperator(List<Integer> projection)
      Creates an operator that applies the given projection, encoded as an integer list where the ordinal indicates the output order and the value, the backing channel that to be used. Given the input {a,b,c,d}, project {a,d,a} is encoded as {0,3,0}.
      Parameters:
      projection - list of blocks to keep and their order.
  • Method Details