[
https://issues.apache.org/jira/browse/SQOOP-1929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Abraham Elmahrek updated SQOOP-1929:
------------------------------------
Comment: was deleted
(was: [~vybs] can you attach a patch for this?)
> Add support to the Loader API to return number of records written
> -----------------------------------------------------------------
>
> Key: SQOOP-1929
> URL: https://issues.apache.org/jira/browse/SQOOP-1929
> Project: Sqoop
> Issue Type: Bug
> Reporter: Veena Basavaraj
> Assignee: Veena Basavaraj
> Fix For: 1.99.5
>
> Attachments: SQOOP-1929-v1.patch, SQOOP-1929-v3.patch
>
>
> Mirror the functionality in Extractor that has API for rows read. It will be
> a new counter.
> {code}
> /**
> * 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();
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)