org.elasticsearch.xpack.esql.plan.logical.Keep Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of x-pack-esql Show documentation
Show all versions of x-pack-esql Show documentation
The plugin that powers ESQL for Elasticsearch
/*
* 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.xpack.esql.plan.logical;
import org.elasticsearch.xpack.esql.core.expression.NamedExpression;
import org.elasticsearch.xpack.esql.core.plan.logical.LogicalPlan;
import org.elasticsearch.xpack.esql.core.tree.NodeInfo;
import org.elasticsearch.xpack.esql.core.tree.Source;
import java.util.List;
import java.util.Objects;
public class Keep extends Project {
public Keep(Source source, LogicalPlan child, List extends NamedExpression> projections) {
super(source, child, projections);
}
@Override
protected NodeInfo info() {
return NodeInfo.create(this, Keep::new, child(), projections());
}
@Override
public Project replaceChild(LogicalPlan newChild) {
return new Keep(source(), newChild, projections());
}
@Override
public boolean expressionsResolved() {
return super.expressionsResolved();
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode());
}
@Override
public boolean equals(Object obj) {
return super.equals(obj);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy