All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alibaba.ververica.connectors.odps.schema.ODPSColumn Maven / Gradle / Ivy

There is a newer version: 1.17-vvr-8.0.8
Show newest version
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 +
				'}';
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy