public class MapRDBFormatPlugin extends TableFormatPlugin
Constructor and Description |
---|
MapRDBFormatPlugin(String name,
DrillbitContext context,
org.apache.hadoop.conf.Configuration fsConf,
StoragePluginConfig storageConfig,
MapRDBFormatPluginConfig formatConfig) |
Modifier and Type | Method and Description |
---|---|
MapRDBFormatPluginConfig |
getConfig() |
org.apache.hadoop.hbase.client.Connection |
getConnection() |
AbstractGroupScan |
getGroupScan(String userName,
FileSelection selection,
List<SchemaPath> columns) |
AbstractGroupScan |
getGroupScan(String userName,
FileSelection selection,
List<SchemaPath> columns,
com.mapr.db.index.IndexDesc indexDesc,
MetadataProviderManager metadataProviderManager) |
org.apache.hadoop.conf.Configuration |
getHBaseConf() |
MapRDBTableCache |
getJsonTableCache() |
FormatMatcher |
getMatcher() |
Set<StoragePluginOptimizerRule> |
getOptimizerRules() |
MapRDBCost |
getPluginCostModel() |
int |
getRestrictedScanRangeSizeMB() |
int |
getScanRangeSizeMB() |
String |
getTableName(FileSelection selection)
Allows to get a table name from FileSelection object
|
DrillStatsTable.TableStatistics |
readStatistics(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path statsTablePath) |
boolean |
supportsStatistics() |
void |
writeStatistics(DrillStatsTable.TableStatistics statistics,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path statsTablePath) |
getContext, getFsConf, getMaprFS, getName, getStorageConfig, getStoragePlugin, getWriter, supportsAutoPartitioning, supportsRead, supportsWrite
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getGroupScan, getGroupScan, getGroupScan, getOptimizerRules
public MapRDBFormatPlugin(String name, DrillbitContext context, org.apache.hadoop.conf.Configuration fsConf, StoragePluginConfig storageConfig, MapRDBFormatPluginConfig formatConfig) throws IOException
IOException
public FormatMatcher getMatcher()
public MapRDBFormatPluginConfig getConfig()
getConfig
in interface FormatPlugin
getConfig
in class TableFormatPlugin
public MapRDBTableCache getJsonTableCache()
public Set<StoragePluginOptimizerRule> getOptimizerRules()
getOptimizerRules
in interface FormatPlugin
getOptimizerRules
in class TableFormatPlugin
public AbstractGroupScan getGroupScan(String userName, FileSelection selection, List<SchemaPath> columns, com.mapr.db.index.IndexDesc indexDesc, MetadataProviderManager metadataProviderManager) throws IOException
IOException
public AbstractGroupScan getGroupScan(String userName, FileSelection selection, List<SchemaPath> columns) throws IOException
IOException
public boolean supportsStatistics()
public DrillStatsTable.TableStatistics readStatistics(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path statsTablePath)
public void writeStatistics(DrillStatsTable.TableStatistics statistics, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path statsTablePath) throws IOException
IOException
public org.apache.hadoop.conf.Configuration getHBaseConf()
public org.apache.hadoop.hbase.client.Connection getConnection()
public int getScanRangeSizeMB()
public int getRestrictedScanRangeSizeMB()
public MapRDBCost getPluginCostModel()
public String getTableName(FileSelection selection)
selection
- File selection objectCopyright © 1970 The Apache Software Foundation. All rights reserved.