hydra.ext.com.microsoft.kusto.kql.ColumnAssignment 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 ColumnAssignment implements Serializable {
public static final hydra.core.Name TYPE_NAME = new hydra.core.Name("hydra/ext/com/microsoft/kusto/kql.ColumnAssignment");
public static final hydra.core.Name FIELD_NAME_COLUMN = new hydra.core.Name("column");
public static final hydra.core.Name FIELD_NAME_EXPRESSION = new hydra.core.Name("expression");
public final hydra.ext.com.microsoft.kusto.kql.ColumnName column;
public final hydra.ext.com.microsoft.kusto.kql.Expression expression;
public ColumnAssignment (hydra.ext.com.microsoft.kusto.kql.ColumnName column, hydra.ext.com.microsoft.kusto.kql.Expression expression) {
java.util.Objects.requireNonNull((column));
java.util.Objects.requireNonNull((expression));
this.column = column;
this.expression = expression;
}
@Override
public boolean equals(Object other) {
if (!(other instanceof ColumnAssignment)) {
return false;
}
ColumnAssignment o = (ColumnAssignment) (other);
return column.equals(o.column) && expression.equals(o.expression);
}
@Override
public int hashCode() {
return 2 * column.hashCode() + 3 * expression.hashCode();
}
public ColumnAssignment withColumn(hydra.ext.com.microsoft.kusto.kql.ColumnName column) {
java.util.Objects.requireNonNull((column));
return new ColumnAssignment(column, expression);
}
public ColumnAssignment withExpression(hydra.ext.com.microsoft.kusto.kql.Expression expression) {
java.util.Objects.requireNonNull((expression));
return new ColumnAssignment(column, expression);
}
}