public class TextTableProvider extends java.lang.Object implements TableProvider
A sample of text table is:
 CREATE TABLE ORDERS(
   ID INT PRIMARY KEY COMMENT 'this is the primary key',
   NAME VARCHAR(127) COMMENT 'this is the name'
 )
 TYPE 'text'
 COMMENT 'this is the table orders'
 LOCATION 'text://home/admin/orders'
 TBLPROPERTIES '{"format": "Excel"}' -- format of each text line(csv format)
 | Constructor and Description | 
|---|
| TextTableProvider() | 
| Modifier and Type | Method and Description | 
|---|---|
| BeamSqlTable | buildBeamSqlTable(Table table)Build a  BeamSqlTableusing the given table meta info. | 
| void | close()Close the provider. | 
| void | createTable(Table table)Creates a table. | 
| java.lang.String | getTableType()Gets the table type this provider handles. | 
| void | init()Init the provider. | 
| java.util.List<Table> | listTables()List all tables from this provider. | 
public java.lang.String getTableType()
TableProvidergetTableType in interface TableProviderpublic BeamSqlTable buildBeamSqlTable(Table table)
TableProviderBeamSqlTable using the given table meta info.buildBeamSqlTable in interface TableProviderpublic void createTable(Table table)
TableProvidercreateTable in interface TableProviderpublic java.util.List<Table> listTables()
TableProviderlistTables in interface TableProviderpublic void init()
TableProviderinit in interface TableProviderpublic void close()
TableProviderclose in interface TableProvider