Class RelJsonReader
java.lang.Object
org.apache.calcite.rel.externalize.RelJsonReader
Reads a JSON plan and converts it back to a tree of relational expressions.
- See Also:
-
Constructor Summary
ConstructorDescriptionRelJsonReader
(RelOptCluster cluster, RelOptSchema relOptSchema, Schema schema) RelJsonReader
(RelOptCluster cluster, RelOptSchema relOptSchema, Schema schema, UnaryOperator<RelJson> relJsonTransform) -
Method Summary
Modifier and TypeMethodDescriptionstatic RexNode
readRex
(RelOptCluster typeFactory, String s) Converts a JSON string (such as that produced byRelJson.toJson(RexNode)
) into a Calcite expression.static RelDataType
readType
(RelDataTypeFactory typeFactory, String s) Converts a JSON string (such as that produced byRelJson.toJson(Object)
) into a Calcite type.
-
Constructor Details
-
RelJsonReader
-
RelJsonReader
public RelJsonReader(RelOptCluster cluster, RelOptSchema relOptSchema, Schema schema, UnaryOperator<RelJson> relJsonTransform)
-
-
Method Details
-
read
- Throws:
IOException
-
readType
Converts a JSON string (such as that produced byRelJson.toJson(Object)
) into a Calcite type.- Throws:
IOException
-
readRex
Converts a JSON string (such as that produced byRelJson.toJson(RexNode)
) into a Calcite expression.- Throws:
IOException
-