Package io.trino.plugin.accumulo.model
Class RowSchema
- java.lang.Object
-
- io.trino.plugin.accumulo.model.RowSchema
-
public class RowSchema extends Object
-
-
Constructor Summary
Constructors Constructor Description RowSchema()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RowSchemaaddColumn(String trinoName, Optional<String> family, Optional<String> qualifier, Type type)RowSchemaaddColumn(String trinoName, Optional<String> family, Optional<String> qualifier, Type type, boolean indexed)RowSchemaaddRowId(String name, Type type)static RowSchemafromColumns(List<AccumuloColumnHandle> columns)Creates a newRowSchemafrom a list ofAccumuloColumnHandleobjects.AccumuloColumnHandlegetColumn(int i)AccumuloColumnHandlegetColumn(String name)List<AccumuloColumnHandle>getColumns()intgetLength()StringtoString()
-
-
-
Method Detail
-
addColumn
public RowSchema addColumn(String trinoName, Optional<String> family, Optional<String> qualifier, Type type)
-
addColumn
public RowSchema addColumn(String trinoName, Optional<String> family, Optional<String> qualifier, Type type, boolean indexed)
-
getColumn
public AccumuloColumnHandle getColumn(int i)
-
getColumn
public AccumuloColumnHandle getColumn(String name)
-
getColumns
public List<AccumuloColumnHandle> getColumns()
-
getLength
public int getLength()
-
fromColumns
public static RowSchema fromColumns(List<AccumuloColumnHandle> columns)
Creates a newRowSchemafrom a list ofAccumuloColumnHandleobjects. Does not validate the schema.- Parameters:
columns- Column handles- Returns:
- Row schema
-
-