Class MongoTables
java.lang.Object
org.apache.drill.metastore.mongo.components.tables.MongoTables
- All Implemented Interfaces:
Tables
,MongoMetastoreContext<TableMetadataUnit>
,Operations<TableMetadataUnit>
Metastore Tables component which stores tables metadata in mongo collection
Provides methods to read and modify tables metadata.
-
Constructor Summary
ConstructorDescriptionMongoTables
(com.mongodb.client.MongoCollection<org.bson.Document> tableCollection, com.mongodb.client.MongoClient client) -
Method Summary
Modifier and TypeMethodDescriptioncom.mongodb.client.MongoClient
client()
Returns Mongo client implementationcontext()
metadata()
modify()
read()
com.mongodb.client.MongoCollection<org.bson.Document>
table()
Returns Mongo collection implementation used as storage for Metastore component data.Returns transformer which allows various data, filters, operations transformation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.drill.metastore.components.tables.Tables
basicRequests
-
Constructor Details
-
MongoTables
public MongoTables(com.mongodb.client.MongoCollection<org.bson.Document> tableCollection, com.mongodb.client.MongoClient client)
-
-
Method Details
-
context
-
metadata
- Specified by:
metadata
in interfaceOperations<TableMetadataUnit>
- Returns:
- component metadata instance
-
read
- Specified by:
read
in interfaceOperations<TableMetadataUnit>
- Returns:
- component read mechanism implementation
-
modify
- Specified by:
modify
in interfaceOperations<TableMetadataUnit>
- Returns:
- component write mechanism implementation
-
table
public com.mongodb.client.MongoCollection<org.bson.Document> table()Description copied from interface:MongoMetastoreContext
Returns Mongo collection implementation used as storage for Metastore component data.- Specified by:
table
in interfaceMongoMetastoreContext<TableMetadataUnit>
- Returns:
- Mongo collection instance
-
client
public com.mongodb.client.MongoClient client()Description copied from interface:MongoMetastoreContext
Returns Mongo client implementation- Specified by:
client
in interfaceMongoMetastoreContext<TableMetadataUnit>
- Returns:
- Mongo client instance
-
transformer
Description copied from interface:MongoMetastoreContext
Returns transformer which allows various data, filters, operations transformation.- Specified by:
transformer
in interfaceMongoMetastoreContext<TableMetadataUnit>
- Returns:
- transformer instance
-