Package mondrian.calc

Class CalcWriter


  • public class CalcWriter
    extends java.lang.Object
    Visitor which serializes an expression to text.
    Since:
    Dec 23, 2005
    Author:
    jhyde
    • Constructor Summary

      Constructors 
      Constructor Description
      CalcWriter​(java.io.PrintWriter writer, boolean profiling)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean enableProfiling()
      Whether to print out attributes relating to how a statement was actually executed.
      java.io.PrintWriter getWriter()  
      void indent()
      Increases the indentation level.
      void outdent()
      Decreases the indentation level.
      void setParentArgs​(Calc calc, java.util.Map<java.lang.String,​java.lang.Object> argumentMap)  
      void visitCalc​(Calc calc, java.lang.String name, java.util.Map<java.lang.String,​java.lang.Object> arguments, Calc[] childCalcs)  
      void visitChild​(int ordinal, Calc calc)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CalcWriter

        public CalcWriter​(java.io.PrintWriter writer,
                          boolean profiling)
    • Method Detail

      • getWriter

        public java.io.PrintWriter getWriter()
      • visitChild

        public void visitChild​(int ordinal,
                               Calc calc)
      • visitCalc

        public void visitCalc​(Calc calc,
                              java.lang.String name,
                              java.util.Map<java.lang.String,​java.lang.Object> arguments,
                              Calc[] childCalcs)
      • indent

        public void indent()
        Increases the indentation level.
      • outdent

        public void outdent()
        Decreases the indentation level.
      • setParentArgs

        public void setParentArgs​(Calc calc,
                                  java.util.Map<java.lang.String,​java.lang.Object> argumentMap)
      • enableProfiling

        public boolean enableProfiling()
        Whether to print out attributes relating to how a statement was actually executed. If false, client should only send attributes relating to the plan.
        Returns:
        Whether client should send attributes about profiling