Class AbstractReportProcessor

    • Method Detail

      • fireStateUpdate

        protected void fireStateUpdate​(ReportProgressEvent state)
        Sends a repagination update to all registered listeners.
        Parameters:
        state - the state.
      • fireProcessingStarted

        protected void fireProcessingStarted​(ReportProgressEvent state)
        Sends a repagination update to all registered listeners.
        Parameters:
        state - the state.
      • fireProcessingFinished

        protected void fireProcessingFinished​(ReportProgressEvent state)
        Sends a repagination update to all registered listeners.
        Parameters:
        state - the state.
      • isHandleInterruptedState

        public boolean isHandleInterruptedState()
        Returns whether the processor should check the threads interrupted state. If this is set to true and the thread was interrupted, then the report processing is aborted.
        Specified by:
        isHandleInterruptedState in interface ReportProcessor
        Returns:
        true, if the processor should check the current thread state, false otherwise.
      • setHandleInterruptedState

        public void setHandleInterruptedState​(boolean handleInterruptedState)
        Defines, whether the processor should check the threads interrupted state. If this is set to true and the thread was interrupted, then the report processing is aborted.
        Specified by:
        setHandleInterruptedState in interface ReportProcessor
        Parameters:
        handleInterruptedState - true, if the processor should check the current thread state, false otherwise.
      • cancel

        public void cancel()
      • getConfiguration

        public org.pentaho.reporting.libraries.base.config.Configuration getConfiguration()
        Specified by:
        getConfiguration in interface ReportProcessor
      • processPrepareLevels

        protected ProcessState processPrepareLevels​(ProcessState state,
                                                    int maxRows)
                                             throws ReportProcessingException
        Processes all prepare levels to compute the function values.
        Parameters:
        state - the state state with which we beginn the processing.
        maxRows - the number of rows in the table model.
        Returns:
        the finish state for the current level.
        Throws:
        ReportProcessingException - if processing failed or if there are exceptions during the function execution.
      • createLayoutManager

        protected abstract OutputFunction createLayoutManager()
      • setFullStreamingProcessor

        public void setFullStreamingProcessor​(boolean fullStreamingProcessor)
      • isFullStreamingProcessor

        public boolean isFullStreamingProcessor()
      • calculatePageCount

        protected int calculatePageCount​(ProcessState state)
      • isPaginated

        public boolean isPaginated()
      • getLogicalPageState

        protected PageState getLogicalPageState​(int page)
      • getPhysicalPageState

        protected PageState getPhysicalPageState​(int page)
      • isStrictErrorHandling

        protected static boolean isStrictErrorHandling​(org.pentaho.reporting.libraries.base.config.Configuration config)
        Checks whether report processing should be aborted when an exception occurs.
        Parameters:
        config - the configuration.
        Returns:
        if strict error handling is enabled.
      • getLogicalPageCount

        public int getLogicalPageCount()
      • getPhysicalPageCount

        public int getPhysicalPageCount()
      • isQueryLimitReached

        public boolean isQueryLimitReached()
      • setQueryLimitReached

        public void setQueryLimitReached​(boolean queryLimitReached)