public abstract class DrillTable extends Object implements org.apache.calcite.schema.Table
| Constructor and Description |
|---|
DrillTable(String storageEngineName,
StoragePlugin plugin,
Object selection)
TODO: Same purpose as other constructor except the impersonation user is the user who is running the Drillbit
process.
|
DrillTable(String storageEngineName,
StoragePlugin plugin,
org.apache.calcite.schema.Schema.TableType tableType,
String userName,
Object selection)
Creates a DrillTable instance.
|
DrillTable(String storageEngineName,
StoragePlugin plugin,
String userName,
Object selection)
Creates a DrillTable instance for a @{code TableType#Table} table.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
GroupScan |
getGroupScan() |
org.apache.calcite.schema.Schema.TableType |
getJdbcTableType() |
StoragePlugin |
getPlugin() |
Object |
getSelection() |
org.apache.calcite.schema.Statistic |
getStatistic() |
StoragePluginConfig |
getStorageEngineConfig() |
String |
getStorageEngineName() |
String |
getUserName() |
int |
hashCode() |
org.apache.calcite.rel.RelNode |
toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context,
org.apache.calcite.plan.RelOptTable table) |
public DrillTable(String storageEngineName, StoragePlugin plugin, String userName, Object selection)
storageEngineName - StorageEngine name.plugin - Reference to StoragePlugin.userName - Whom to impersonate while reading the contents of the table.selection - Table contents (type and contents depend on type of StoragePlugin).public DrillTable(String storageEngineName, StoragePlugin plugin, org.apache.calcite.schema.Schema.TableType tableType, String userName, Object selection)
storageEngineName - StorageEngine name.plugin - Reference to StoragePlugin.tableType - the JDBC table typeuserName - Whom to impersonate while reading the contents of the table.selection - Table contents (type and contents depend on type of StoragePlugin).public DrillTable(String storageEngineName, StoragePlugin plugin, Object selection)
public GroupScan getGroupScan() throws IOException
IOExceptionpublic StoragePluginConfig getStorageEngineConfig()
public StoragePlugin getPlugin()
public Object getSelection()
public String getStorageEngineName()
public String getUserName()
public org.apache.calcite.schema.Statistic getStatistic()
getStatistic in interface org.apache.calcite.schema.Tablepublic org.apache.calcite.rel.RelNode toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context,
org.apache.calcite.plan.RelOptTable table)
public org.apache.calcite.schema.Schema.TableType getJdbcTableType()
getJdbcTableType in interface org.apache.calcite.schema.TableCopyright © 2017 The Apache Software Foundation. All rights reserved.