public abstract class DrillTable extends Object implements org.apache.calcite.schema.Table
Constructor and Description |
---|
DrillTable(String storageEngineName,
StoragePlugin plugin,
DrillTableSelection 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,
DrillTableSelection selection)
Creates a DrillTable instance.
|
DrillTable(String storageEngineName,
StoragePlugin plugin,
org.apache.calcite.schema.Schema.TableType tableType,
String userName,
DrillTableSelection selection,
MetadataProviderManager metadataProviderManager) |
DrillTable(String storageEngineName,
StoragePlugin plugin,
String userName,
DrillTableSelection 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() |
MetadataProviderManager |
getMetadataProviderManager()
Returns manager for
TableMetadataProvider which may provide null for the case when scan wasn't created. |
StoragePlugin |
getPlugin() |
Object |
getSelection() |
org.apache.calcite.schema.Statistic |
getStatistic() |
StoragePluginConfig |
getStorageEngineConfig() |
String |
getStorageEngineName() |
String |
getUserName() |
int |
hashCode() |
boolean |
isRolledUp(String column) |
boolean |
rolledUpColumnValidInsideAgg(String column,
org.apache.calcite.sql.SqlCall call,
org.apache.calcite.sql.SqlNode parent,
org.apache.calcite.config.CalciteConnectionConfig config) |
void |
setGroupScan(GroupScan scan) |
void |
setOptions(SessionOptionManager options) |
void |
setTableMetadataProviderManager(MetadataProviderManager metadataProviderManager) |
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, DrillTableSelection 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, DrillTableSelection 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, org.apache.calcite.schema.Schema.TableType tableType, String userName, DrillTableSelection selection, MetadataProviderManager metadataProviderManager)
public DrillTable(String storageEngineName, StoragePlugin plugin, DrillTableSelection selection)
public void setOptions(SessionOptionManager options)
public void setGroupScan(GroupScan scan)
public void setTableMetadataProviderManager(MetadataProviderManager metadataProviderManager)
public GroupScan getGroupScan() throws IOException
IOException
public MetadataProviderManager getMetadataProviderManager()
TableMetadataProvider
which may provide null for the case when scan wasn't created.
This method should be used only for the case when it is possible to obtain TableMetadataProvider
when supplier returns null
or TableMetadataProvider
usage may be omitted.TableMetadataProvider
public 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.Table
public 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.Table
public boolean rolledUpColumnValidInsideAgg(String column, org.apache.calcite.sql.SqlCall call, org.apache.calcite.sql.SqlNode parent, org.apache.calcite.config.CalciteConnectionConfig config)
rolledUpColumnValidInsideAgg
in interface org.apache.calcite.schema.Table
public boolean isRolledUp(String column)
isRolledUp
in interface org.apache.calcite.schema.Table
Copyright © 1970 The Apache Software Foundation. All rights reserved.