@AutoService(value=TableProvider.class) public class MongoDbTableProvider extends InMemoryMetaTableProvider
TableProvider for MongoDbTable.
A sample of MongoDb table is:
CREATE TABLE ORDERS(
name VARCHAR,
favorite_color VARCHAR,
favorite_numbers ARRAY<INTEGER>
)
TYPE 'mongodb'
LOCATION 'mongodb://username:password@localhost:27017/database/collection'
| Constructor and Description |
|---|
MongoDbTableProvider() |
| 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, getTablesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSubProvider, getSubProviders, getTablepublic java.lang.String getTableType()
TableProviderpublic BeamSqlTable buildBeamSqlTable(Table table)
TableProviderBeamSqlTable using the given table meta info.