Class ExporterRecordProcessorCSVJSON

    • Field Detail

      • LOG

        protected static final org.apache.logging.log4j.Logger LOG
      • _type

        protected int _type
      • _CSVHeader

        protected boolean _CSVHeader
    • Constructor Detail

      • ExporterRecordProcessorCSVJSON

        public ExporterRecordProcessorCSVJSON​(Connection C,
                                              java.io.Writer out,
                                              java.lang.String outName,
                                              long logFreq,
                                              TableViewMeta tvm,
                                              java.lang.String type,
                                              boolean CSVHeader)
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • ExporterRecordProcessorCSVJSON

        public ExporterRecordProcessorCSVJSON​(Connection C,
                                              java.lang.String outFile,
                                              long logFreq,
                                              TableMeta tvm,
                                              java.lang.String type,
                                              boolean CSVHeader)
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • init

        protected void init​(Connection C,
                            TableViewMeta tvm,
                            java.lang.String type,
                            boolean CSVHeader)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • process

        public boolean process​(int count,
                               java.sql.ResultSet RS)
                        throws java.lang.Exception
        Description copied from interface: RecordProcessor
        Called for each record
        Parameters:
        count - 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