public class TopProjectVisitor extends BasePrelVisitor<Prel,Void,RuntimeException>
logger
Constructor and Description |
---|
TopProjectVisitor(org.apache.calcite.rel.type.RelDataType validatedRowType) |
Modifier and Type | Method and Description |
---|---|
static Prel |
insertTopProject(Prel prel,
org.apache.calcite.rel.type.RelDataType validatedRowType)
Traverses passed physical relational node and its children and checks if top project
should be added under screen or writer to preserve final output fields names.
|
Prel |
visitPrel(Prel prel,
Void value) |
Prel |
visitScreen(ScreenPrel prel,
Void value) |
Prel |
visitWriter(WriterPrel prel,
Void value) |
visitExchange, visitJoin, visitLateral, visitLeaf, visitProject, visitScan, visitScan, visitUnnest
public TopProjectVisitor(org.apache.calcite.rel.type.RelDataType validatedRowType)
public static Prel insertTopProject(Prel prel, org.apache.calcite.rel.type.RelDataType validatedRowType)
prel
- physical relational nodevalidatedRowType
- final output row typepublic Prel visitPrel(Prel prel, Void value) throws RuntimeException
visitPrel
in interface PrelVisitor<Prel,Void,RuntimeException>
visitPrel
in class BasePrelVisitor<Prel,Void,RuntimeException>
RuntimeException
public Prel visitScreen(ScreenPrel prel, Void value)
visitScreen
in interface PrelVisitor<Prel,Void,RuntimeException>
visitScreen
in class BasePrelVisitor<Prel,Void,RuntimeException>
public Prel visitWriter(WriterPrel prel, Void value)
visitWriter
in interface PrelVisitor<Prel,Void,RuntimeException>
visitWriter
in class BasePrelVisitor<Prel,Void,RuntimeException>
Copyright © 1970 The Apache Software Foundation. All rights reserved.