com.alibaba.ververica.connectors.odps.schema.ODPSColumn Maven / Gradle / Ivy
package com.alibaba.ververica.connectors.odps.schema;
import com.aliyun.odps.OdpsType;
import java.io.Serializable;
/**
* column information including name, type, isPartition trait.
*/
public class ODPSColumn implements Serializable {
private static final long serialVersionUID = 3385061492593160182L;
private final String name;
private final OdpsType type;
private final boolean isPartition;
public ODPSColumn(String name, OdpsType type) {
this(name, type, false);
}
public ODPSColumn(String name, OdpsType type, boolean isPartition) {
this.name = name;
this.type = type;
this.isPartition = isPartition;
}
public String getName() {
return name;
}
public OdpsType getType() {
return type;
}
public boolean isPartition() {
return isPartition;
}
@Override
public String toString() {
return "ODPSColumn{" +
"name='" + name + '\'' +
", type=" + type +
", isPartition=" + isPartition +
'}';
}
}