public class TextTableProvider extends InMemoryMetaTableProvider
A sample of text table is:
CREATE TABLE ORDERS(
ID INT COMMENT 'this is the primary key',
NAME VARCHAR(127) COMMENT 'this is the name'
)
TYPE 'text'
COMMENT 'this is the table orders'
LOCATION '/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
BeamSqlTable using the given table meta info. |
java.lang.String |
getTableType()
Gets the table type this provider handles.
|
createTable, dropTable, getTables
public java.lang.String getTableType()
TableProvider
public BeamSqlTable buildBeamSqlTable(Table table)
TableProvider
BeamSqlTable
using the given table meta info.