org.elasticsearch.compute.operator.SourceOperator 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.Describable;
import org.elasticsearch.compute.data.Page;
/**
* A source operator - produces output, accepts no input.
*/
public abstract class SourceOperator implements Operator {
/**
* A source operator needs no input - unconditionally returns false.
* @return false
*/
public final boolean needsInput() {
return false;
}
/**
* A source operator does not accept input - unconditionally throws UnsupportedOperationException.
* @param page a page
*/
@Override
public final void addInput(Page page) {
throw new UnsupportedOperationException();
}
/**
* A factory for creating source operators.
*/
public interface SourceOperatorFactory extends OperatorFactory, Describable {
/** Creates a new source operator. */
@Override
SourceOperator get(DriverContext driverContext);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy