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

com.yandex.ydb.table.description.TableColumn Maven / Gradle / Ivy

There is a newer version: 1.45.6
Show newest version
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy