public class TableSchema extends Object
Constructor and Description |
---|
TableSchema() |
TableSchema(int numColumns) |
TableSchema(List<FieldSchema> fieldSchemas) |
TableSchema(Schema schema) |
TableSchema(TTableSchema tTableSchema) |
Modifier and Type | Method and Description |
---|---|
TableSchema |
addPrimitiveColumn(String columnName,
Type columnType,
String columnComment) |
TableSchema |
addStringColumn(String columnName,
String columnComment) |
void |
clear() |
ColumnDescriptor |
getColumnDescriptorAt(int pos) |
List<ColumnDescriptor> |
getColumnDescriptors() |
int |
getSize() |
TTableSchema |
toTTableSchema() |
Type[] |
toTypes() |
public TableSchema()
public TableSchema(int numColumns)
public TableSchema(TTableSchema tTableSchema)
public TableSchema(List<FieldSchema> fieldSchemas)
public TableSchema(Schema schema)
public List<ColumnDescriptor> getColumnDescriptors()
public ColumnDescriptor getColumnDescriptorAt(int pos)
public int getSize()
public void clear()
public TTableSchema toTTableSchema()
public Type[] toTypes()
public TableSchema addPrimitiveColumn(String columnName, Type columnType, String columnComment)
public TableSchema addStringColumn(String columnName, String columnComment)
Copyright © 2017 The Apache Software Foundation. All rights reserved.