Class OlapQueryExecution

  • All Implemented Interfaces:
    org.teiid.translator.Execution, org.teiid.translator.ProcedureExecution, org.teiid.translator.ResultSetExecution

    public class OlapQueryExecution
    extends Object
    implements org.teiid.translator.ProcedureExecution
    Executes the given MDX and packs the results into an array
    • Field Detail

      • command

        protected org.teiid.language.Command command
      • connection

        protected org.olap4j.OlapConnection connection
      • context

        protected org.teiid.translator.ExecutionContext context
    • Constructor Detail

      • OlapQueryExecution

        public OlapQueryExecution​(List<org.teiid.language.Argument> arguments,
                                  org.teiid.language.Command command,
                                  org.olap4j.OlapConnection connection,
                                  org.teiid.translator.ExecutionContext context,
                                  OlapExecutionFactory executionFactory,
                                  String mdxQuery,
                                  boolean returnsArray)
    • Method Detail

      • execute

        public void execute()
                     throws org.teiid.translator.TranslatorException
        Specified by:
        execute in interface org.teiid.translator.Execution
        Throws:
        org.teiid.translator.TranslatorException
      • cancel

        public void cancel()
                    throws org.teiid.translator.TranslatorException
        Specified by:
        cancel in interface org.teiid.translator.Execution
        Throws:
        org.teiid.translator.TranslatorException
      • close

        public void close()
        Specified by:
        close in interface org.teiid.translator.Execution
      • next

        public List<?> next()
                     throws org.teiid.translator.TranslatorException
        Specified by:
        next in interface org.teiid.translator.ResultSetExecution
        Throws:
        org.teiid.translator.TranslatorException
      • getOutputParameterValues

        public List<?> getOutputParameterValues()
                                         throws org.teiid.translator.TranslatorException
        Specified by:
        getOutputParameterValues in interface org.teiid.translator.ProcedureExecution
        Throws:
        org.teiid.translator.TranslatorException