public class DruidRels extends Object
| Constructor and Description |
|---|
DruidRels() |
| Modifier and Type | Method and Description |
|---|---|
static Optional<DruidTable> |
druidTableIfLeafRel(DruidRel<?> druidRel)
Returns the DataSource involved in a leaf query of class
DruidQueryRel. |
static boolean |
isScanOrMapping(DruidRel<?> druidRel,
boolean canBeJoinOrUnion)
Check if a druidRel is a simple table scan, or a projection that merely remaps columns without transforming them.
|
public static Optional<DruidTable> druidTableIfLeafRel(DruidRel<?> druidRel)
DruidQueryRel.public static boolean isScanOrMapping(DruidRel<?> druidRel, boolean canBeJoinOrUnion)
isScanOrProject(org.apache.druid.sql.calcite.rel.DruidRel<?>, boolean) but more restrictive: only remappings are allowed.druidRel - the rel to checkcanBeJoinOrUnion - consider a DruidJoinQueryRel or DruidUnionDataSourceRel as possible
scans-and-mappings too.Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.