org.elasticsearch.compute.operator.ShowOperator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of x-pack-esql-compute Show documentation
Show all versions of x-pack-esql-compute Show documentation
Elasticsearch subproject :x-pack:plugin:esql:compute
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.compute.operator;
import org.elasticsearch.compute.data.BlockFactory;
import java.util.List;
import java.util.Objects;
import static java.util.stream.Collectors.joining;
public class ShowOperator extends LocalSourceOperator {
public record ShowOperatorFactory(List> objects) implements SourceOperatorFactory {
@Override
public String describe() {
return "ShowOperator[objects = " + objects.stream().map(Objects::toString).collect(joining(",")) + "]";
}
@Override
public SourceOperator get(DriverContext driverContext) {
return new ShowOperator(driverContext.blockFactory(), () -> objects);
}
}
public ShowOperator(BlockFactory blockFactory, ListSupplier listSupplier) {
super(blockFactory, listSupplier);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy