com.yandex.ydb.table.description.TableColumn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
JDBC client implementation over Table client, single jar
package com.yandex.ydb.table.description;
import javax.annotation.Nullable;
import com.yandex.ydb.table.values.Type;
/**
* @author Sergey Polovko
*/
public class TableColumn {
private final String name;
private final Type type;
@Nullable
private final String family;
public TableColumn(String name, Type type, String family) {
this.name = name;
this.type = type;
this.family = family;
}
public TableColumn(String name, Type type) {
this(name, type, null);
}
public String getName() {
return name;
}
public Type getType() {
return type;
}
@Nullable
public String getFamily() {
return family;
}
@Override
public String toString() {
return name + ' ' + type;
}
}