Package org.apache.calcite.tools
Class Frameworks.PrepareAction<R>
- java.lang.Object
-
- org.apache.calcite.tools.Frameworks.PrepareAction<R>
-
- Type Parameters:
R
- result type
- Enclosing class:
- Frameworks
public abstract static class Frameworks.PrepareAction<R> extends java.lang.Object
Piece of code to be run in a context where a planner and statement are available. The planner is accessible from thecluster
parameter, as are several other useful objects. The connection andDataContext
are accessible from the statement.
-
-
Field Summary
Fields Modifier and Type Field Description private FrameworkConfig
config
-
Constructor Summary
Constructors Constructor Description PrepareAction()
PrepareAction(FrameworkConfig config)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract R
apply(RelOptCluster cluster, RelOptSchema relOptSchema, SchemaPlus rootSchema, CalciteServerStatement statement)
FrameworkConfig
getConfig()
-
-
-
Field Detail
-
config
private final FrameworkConfig config
-
-
Constructor Detail
-
PrepareAction
public PrepareAction()
-
PrepareAction
public PrepareAction(FrameworkConfig config)
-
-
Method Detail
-
getConfig
public FrameworkConfig getConfig()
-
apply
public abstract R apply(RelOptCluster cluster, RelOptSchema relOptSchema, SchemaPlus rootSchema, CalciteServerStatement statement)
-
-