Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-1929

Sqoop2: Track number of records written in Loader

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.99.5
    • None
    • None

    Description

      Mirror the functionality in Extractor that has API for rows read. It will be a new counter.

        /**
         * Return the number of rows read by the last call to
         * {@linkplain Extractor#extract(org.apache.sqoop.job.etl.ExtractorContext, java.lang.Object, java.lang.Object, Partition) }
         * method. This method returns only the number of rows read in the last call,
         * and not a cumulative total of the number of rows read by this Extractor
         * since its creation. If no calls were made to the run method, this method's
         * behavior is undefined.
         *
         * @return the number of rows read by the last call to
         * {@linkplain Extractor#extract(org.apache.sqoop.job.etl.ExtractorContext, java.lang.Object, java.lang.Object, Partition) }
         */
        public abstract long getRowsRead();
      
      

      Attachments

        1. SQOOP-1929-v1.patch
          27 kB
          Veena Basavaraj
        2. SQOOP-1929-v3.patch
          27 kB
          Veena Basavaraj

        Issue Links

          Activity

            People

              vybs Veena Basavaraj
              vybs Veena Basavaraj
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: