tech.ydb.table.description.TableIndex Maven / Gradle / Ivy
package tech.ydb.table.description;
import java.util.List;
import static java.util.Collections.emptyList;
/**
* @author Sergey Polovko
* @author Kirill Kurdyukov
*/
public class TableIndex {
public enum Type {
GLOBAL,
GLOBAL_ASYNC,
}
/**
* Name of the index.
*/
private final String name;
/**
* List of indexed columns.
*/
private final List columns;
/**
* List of columns content to be copied in to index table.
*/
private final List dataColumns;
/**
* Index type.
*/
private final Type type;
public TableIndex(
String name,
List columns,
Type type
) {
this(name, columns, emptyList(), type);
}
public TableIndex(
String name,
List columns,
List dataColumns,
Type type
) {
this.name = name;
this.columns = columns;
this.dataColumns = dataColumns;
this.type = type;
}
public String getName() {
return name;
}
public List getColumns() {
return columns;
}
public List getDataColumns() {
return dataColumns;
}
public Type getType() {
return type;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy