Class DatasourceTable
java.lang.Object
org.apache.druid.sql.calcite.table.DruidTable
org.apache.druid.sql.calcite.table.DatasourceTable
- All Implemented Interfaces:
org.apache.calcite.schema.Table,org.apache.calcite.schema.TranslatableTable
Represents a SQL table that models a Druid datasource.
Once the catalog code is merged, this class will combine physical information
from the segment cache with logical information from the catalog to produce
the SQL-user's view of the table. The resulting merged view is used to plan
queries and is the source of table information in the INFORMATION_SCHEMA.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classThe physical metadata for a datasource, derived from the list of segments published in the Coordinator. -
Constructor Summary
ConstructorsConstructorDescriptionDatasourceTable(RowSignature rowSignature, DatasourceMetadata physicalMetadata, DatasourceTable.EffectiveMetadata effectiveMetadata) DatasourceTable(DatasourceTable.PhysicalDatasourceMetadata physicalMetadata) -
Method Summary
Methods inherited from class org.apache.druid.sql.calcite.table.DruidTable
getJdbcTableType, getRowSignature, getRowType, getStatistic, isRolledUp, rolledUpColumnValidInsideAgg
-
Constructor Details
-
DatasourceTable
-
DatasourceTable
public DatasourceTable(RowSignature rowSignature, DatasourceMetadata physicalMetadata, DatasourceTable.EffectiveMetadata effectiveMetadata)
-
-
Method Details
-
getDataSource
- Specified by:
getDataSourcein classDruidTable
-
isJoinable
public boolean isJoinable()- Specified by:
isJoinablein classDruidTable
-
isBroadcast
public boolean isBroadcast()- Specified by:
isBroadcastin classDruidTable
-
effectiveMetadata
-
toRel
public org.apache.calcite.rel.RelNode toRel(org.apache.calcite.plan.RelOptTable.ToRelContext context, org.apache.calcite.plan.RelOptTable table) -
equals
- Overrides:
equalsin classDruidTable
-
hashCode
public int hashCode()- Overrides:
hashCodein classDruidTable
-
toString
- Overrides:
toStringin classDruidTable
-