com.databricks.sdk.service.sql.ResultSchema Maven / Gradle / Ivy
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.sql;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Collection;
import java.util.Objects;
/** The schema is an ordered list of column descriptions. */
@Generated
public class ResultSchema {
/** */
@JsonProperty("column_count")
private Long columnCount;
/** */
@JsonProperty("columns")
private Collection columns;
public ResultSchema setColumnCount(Long columnCount) {
this.columnCount = columnCount;
return this;
}
public Long getColumnCount() {
return columnCount;
}
public ResultSchema setColumns(Collection columns) {
this.columns = columns;
return this;
}
public Collection getColumns() {
return columns;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
ResultSchema that = (ResultSchema) o;
return Objects.equals(columnCount, that.columnCount) && Objects.equals(columns, that.columns);
}
@Override
public int hashCode() {
return Objects.hash(columnCount, columns);
}
@Override
public String toString() {
return new ToStringer(ResultSchema.class)
.add("columnCount", columnCount)
.add("columns", columns)
.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy