com.cloudera.sqoop.lib
Class SqoopRecord

java.lang.Object
  extended by com.cloudera.sqoop.lib.SqoopRecord
All Implemented Interfaces:
java.lang.Cloneable, org.apache.hadoop.io.Writable, org.apache.hadoop.mapreduce.lib.db.DBWritable

public abstract class SqoopRecord
extends java.lang.Object
implements java.lang.Cloneable, org.apache.hadoop.mapreduce.lib.db.DBWritable, org.apache.hadoop.io.Writable

Interface implemented by the classes generated by sqoop's orm.ClassWriter.


Constructor Summary
SqoopRecord()
           
 
Method Summary
 java.lang.Object clone()
           
abstract  int getClassFormatVersion()
          Returns an integer specifying which API format version the generated class conforms to.
abstract  void loadLargeObjects(LargeObjectLoader objLoader)
           
abstract  void parse(byte[] s)
           
abstract  void parse(java.nio.ByteBuffer s)
           
abstract  void parse(char[] s)
           
abstract  void parse(java.nio.CharBuffer s)
           
abstract  void parse(java.lang.CharSequence s)
           
abstract  void parse(org.apache.hadoop.io.Text s)
           
abstract  java.lang.String toString(DelimiterSet delimiters)
           
abstract  int write(java.sql.PreparedStatement stmt, int offset)
          Inserts the data in this object into the PreparedStatement, starting at parameter 'offset'.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.mapreduce.lib.db.DBWritable
readFields, write
 
Methods inherited from interface org.apache.hadoop.io.Writable
readFields, write
 

Constructor Detail

SqoopRecord

public SqoopRecord()
Method Detail

parse

public abstract void parse(java.lang.CharSequence s)
                    throws RecordParser.ParseError
Throws:
RecordParser.ParseError

parse

public abstract void parse(org.apache.hadoop.io.Text s)
                    throws RecordParser.ParseError
Throws:
RecordParser.ParseError

parse

public abstract void parse(byte[] s)
                    throws RecordParser.ParseError
Throws:
RecordParser.ParseError

parse

public abstract void parse(char[] s)
                    throws RecordParser.ParseError
Throws:
RecordParser.ParseError

parse

public abstract void parse(java.nio.ByteBuffer s)
                    throws RecordParser.ParseError
Throws:
RecordParser.ParseError

parse

public abstract void parse(java.nio.CharBuffer s)
                    throws RecordParser.ParseError
Throws:
RecordParser.ParseError

loadLargeObjects

public abstract void loadLargeObjects(LargeObjectLoader objLoader)
                               throws java.sql.SQLException,
                                      java.io.IOException,
                                      java.lang.InterruptedException
Throws:
java.sql.SQLException
java.io.IOException
java.lang.InterruptedException

write

public abstract int write(java.sql.PreparedStatement stmt,
                          int offset)
                   throws java.sql.SQLException
Inserts the data in this object into the PreparedStatement, starting at parameter 'offset'.

Returns:
the number of fields written to the statement.
Throws:
java.sql.SQLException

toString

public abstract java.lang.String toString(DelimiterSet delimiters)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

getClassFormatVersion

public abstract int getClassFormatVersion()
Returns an integer specifying which API format version the generated class conforms to. Used by internal APIs for backwards compatibility.

Returns:
the API version this class was generated against.


Copyright © 2010 Cloudera, Inc.