Package org.apache.calcite.adapter.spark
Class SparkHandlerImpl
java.lang.Object
org.apache.calcite.adapter.spark.SparkHandlerImpl
- All Implemented Interfaces:
CalcitePrepare.SparkHandler
Implementation of
CalcitePrepare.SparkHandler
. Gives the core
Calcite engine access to rules that only exist in the Spark module.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.jdbc.CalcitePrepare.SparkHandler
CalcitePrepare.SparkHandler.RuleSetBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncompile
(ClassDeclaration expr, String s) boolean
enabled()
flattenTypes
(RelOptPlanner planner, RelNode rootRel, boolean restructure) static CalcitePrepare.SparkHandler
instance()
Creates a SparkHandlerImpl, initializing on first call.void
-
Method Details
-
instance
Creates a SparkHandlerImpl, initializing on first call. Calcite-core calls this via reflection. -
flattenTypes
- Specified by:
flattenTypes
in interfaceCalcitePrepare.SparkHandler
-
registerRules
- Specified by:
registerRules
in interfaceCalcitePrepare.SparkHandler
-
sparkContext
- Specified by:
sparkContext
in interfaceCalcitePrepare.SparkHandler
-
enabled
public boolean enabled()- Specified by:
enabled
in interfaceCalcitePrepare.SparkHandler
-
compile
- Specified by:
compile
in interfaceCalcitePrepare.SparkHandler
-