You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Jarek Jarcec Cecho (JIRA)" <ji...@apache.org> on 2014/12/14 20:36:13 UTC

[jira] [Commented] (SQOOP-1900) IDF API read/ write method

    [ https://issues.apache.org/jira/browse/SQOOP-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14246077#comment-14246077 ] 

Jarek Jarcec Cecho commented on SQOOP-1900:
-------------------------------------------

Once we will figure out our story with different IDF per on mapreduce job, we should use those methods in [{{SqoopWritable}}|https://github.com/apache/sqoop/blob/sqoop2/execution/mapreduce/src/main/java/org/apache/sqoop/job/io/SqoopWritable.java]. Right now we're serializing the text format (and hence doing conversion), but that is probably not necessary.

> IDF API read/ write method 
> ---------------------------
>
>                 Key: SQOOP-1900
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1900
>             Project: Sqoop
>          Issue Type: Sub-task
>          Components: sqoop2-framework
>            Reporter: Veena Basavaraj
>             Fix For: 1.99.5
>
>
> At this point I am not clear what the real use of the following 2 methods are in the IDF API. Can anyone explain? I have not seen it used anywhere in the code I might be missing something
> {code}
>   /**
>    * Serialize the fields of this object to <code>out</code>.
>    *
>    * @param out <code>DataOuput</code> to serialize this object into.
>    * @throws IOException
>    */
>   public abstract void write(DataOutput out) throws IOException;
>   /**
>    * Deserialize the fields of this object from <code>in</code>.
>    *
>    * <p>For efficiency, implementations should attempt to re-use storage in the
>    * existing object where possible.</p>
>    *
>    * @param in <code>DataInput</code> to deseriablize this object from.
>    * @throws IOException
>    */
>   public abstract void read(DataInput in) throws IOException;
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)