Class RelJsonReader


  • public class RelJsonReader
    extends java.lang.Object
    Reads a JSON plan and converts it back to a tree of relational expressions.
    See Also:
    RelInput
    • Field Detail

      • TYPE_REF

        private static final com.fasterxml.jackson.core.type.TypeReference<java.util.LinkedHashMap<java.lang.String,​java.lang.Object>> TYPE_REF
      • relJson

        private final RelJson relJson
      • relMap

        private final java.util.Map<java.lang.String,​RelNode> relMap
    • Method Detail

      • read

        public RelNode read​(java.lang.String s)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • readRels

        private void readRels​(java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> jsonRels)
      • readRel

        private void readRel​(java.util.Map<java.lang.String,​java.lang.Object> jsonRel)
      • toAggCall

        private AggregateCall toAggCall​(RelInput relInput,
                                        java.util.Map<java.lang.String,​java.lang.Object> jsonAggCall)
      • lookupInput

        private RelNode lookupInput​(java.lang.String jsonInput)