public class TableDef extends Object
| Constructor and Description | 
|---|
TableDef(String name,
        String acl,
        String type)  | 
| Modifier and Type | Method and Description | 
|---|---|
TableColumn | 
addColumn(String name,
         TableColumn.Type type)
Adds a non primary column to this table. 
 | 
TableColumn | 
addColumn(String name,
         TableColumn.Type type,
         boolean primary)
Adds a column to this table. 
 | 
TableDef | 
addColumn(TableColumn col)  | 
String | 
getAcl()  | 
Iterable<TableColumn> | 
getColumns()  | 
String | 
getName()  | 
String | 
getType()  | 
public TableDef addColumn(TableColumn col)
col - the column to addpublic TableColumn addColumn(String name, TableColumn.Type type, boolean primary)
name - the name of the columntype - the type of the columnprimary - boolean flag for primarypublic TableColumn addColumn(String name, TableColumn.Type type)
name - column nametype - column typepublic Iterable<TableColumn> getColumns()
public String getAcl()
public String getName()
public String getType()
Copyright © 2016–2017. All rights reserved.