Package org.apache.druid.sql.calcite.rel
Class DruidRels
java.lang.Object
org.apache.druid.sql.calcite.rel.DruidRels
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RowSignaturedataSourceSignature(DruidRel<?> druidRel) Returns the signature of the datasource of aDruidRel.static Optional<DruidTable>druidTableIfLeafRel(DruidRel<?> druidRel) Returns the DataSource involved in a leaf query of classDruidQueryRel.static booleanisScanOrMapping(DruidRel<?> druidRel, boolean canBeJoinOrUnion) Check if a druidRel is a simple table scan, or a projection that merely remaps columns without transforming them.static booleanisScanOrProject(DruidRel<?> druidRel, boolean canBeJoinOrUnion) Check if a druidRel is a simple table scan or a scan + projection.
-
Constructor Details
-
DruidRels
public DruidRels()
-
-
Method Details
-
druidTableIfLeafRel
Returns the DataSource involved in a leaf query of classDruidQueryRel. -
isScanOrMapping
Check if a druidRel is a simple table scan, or a projection that merely remaps columns without transforming them. LikeisScanOrProject(org.apache.druid.sql.calcite.rel.DruidRel<?>, boolean)but more restrictive: only remappings are allowed.- Parameters:
druidRel- the rel to checkcanBeJoinOrUnion- consider aDruidJoinQueryRelorDruidUnionDataSourceRelas possible scans-and-mappings too.
-
isScanOrProject
Check if a druidRel is a simple table scan or a scan + projection.- Parameters:
druidRel- the rel to checkcanBeJoinOrUnion- consider aDruidJoinQueryRelorDruidUnionDataSourceRelas possible scans-and-mappings too.
-
dataSourceSignature
-