Class JSONRecordProcessor

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.io.Writer _Out  
      protected SelectQuery _Q  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void end​(boolean hasMore, int MaxIndex)
      Called after the last record has been processed successfully
      boolean process​(int Index, java.sql.ResultSet RS)
      Called for each record
      void start()
      Called before the first record is processed
      • Methods inherited from class java.lang.Object

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

      • _Out

        protected java.io.Writer _Out
    • Constructor Detail

      • JSONRecordProcessor

        public JSONRecordProcessor​(java.io.Writer Out,
                                   SelectQuery Q)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • start

        public void start()
        Description copied from interface: RecordProcessor
        Called before the first record is processed
        Specified by:
        start in interface RecordProcessor
      • process

        public boolean process​(int Index,
                               java.sql.ResultSet RS)
                        throws java.lang.Exception
        Description copied from interface: RecordProcessor
        Called for each record
        Specified by:
        process in interface RecordProcessor
        Parameters:
        Index - the count of the record being processed starting at 0 for the first record
        RS - the result set to be processed
        Returns:
        whether this was successful or not. If false is returned, the process will be aborted.
        Throws:
        java.lang.Exception
      • end

        public void end​(boolean hasMore,
                        int MaxIndex)
        Description copied from interface: RecordProcessor
        Called after the last record has been processed successfully
        Specified by:
        end in interface RecordProcessor
        Parameters:
        hasMore - whether there are more records to be processed
        MaxIndex - the max count originally supplied to the query handler