Class DistinctByOperator

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

public class DistinctByOperator extends AbstractPageMappingOperator
Operator that filters rows to keep only the first occurrence of each distinct key value. This is useful for deduplication by a key column (e.g., _tsid).

The operator maintains a hash of seen key values and only passes through rows where the key value hasn't been seen before.