hydra.ext.com.microsoft.kusto.kql.Projection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hydra-ext Show documentation
Show all versions of hydra-ext Show documentation
Hydra language extensions in Java; models, coders, and utilities
// Note: this is an automatically generated file. Do not edit.
package hydra.ext.com.microsoft.kusto.kql;
import java.io.Serializable;
public class Projection implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/com/microsoft/kusto/kql.Projection");
public static final hydra.core.Name FIELD_NAME_EXPRESSION = new hydra.core.Name("expression");
public static final hydra.core.Name FIELD_NAME_ALIAS = new hydra.core.Name("alias");
public final hydra.ext.com.microsoft.kusto.kql.Expression expression;
public final hydra.util.Opt alias;
public Projection (hydra.ext.com.microsoft.kusto.kql.Expression expression, hydra.util.Opt alias) {
java.util.Objects.requireNonNull((expression));
java.util.Objects.requireNonNull((alias));
this.expression = expression;
this.alias = alias;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Projection)) {
return false;
}
Projection o = (Projection) (other);
return expression.equals(o.expression) && alias.equals(o.alias);
}
@Override
public int hashCode() {
return 2 * expression.hashCode() + 3 * alias.hashCode();
}
public Projection withExpression(hydra.ext.com.microsoft.kusto.kql.Expression expression) {
java.util.Objects.requireNonNull((expression));
return new Projection(expression, alias);
}
public Projection withAlias(hydra.util.Opt alias) {
java.util.Objects.requireNonNull((alias));
return new Projection(expression, alias);
}
}