| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sqoop.lib.SqoopRecord
public abstract class SqoopRecord
Interface implemented by the classes generated by sqoop's orm.ClassWriter.
| Constructor Summary | |
|---|---|
| SqoopRecord() | |
| Method Summary | |
|---|---|
|  java.lang.Object | clone() | 
|  void | delegate(FieldMapProcessor processor)Use the delegate pattern to allow arbitrary processing of the fields of this record. | 
| abstract  int | getClassFormatVersion()Returns an integer specifying which API format version the generated class conforms to. | 
|  java.util.Map<java.lang.String,java.lang.Object> | getFieldMap()Returns a map containing all fields of this record. | 
| 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) | 
|  void | setField(java.lang.String fieldName,
         java.lang.Object fieldVal)Allows an arbitrary field to be set programmatically to the specified value object. | 
|  java.lang.String | toString(boolean useRecordDelim)Use the default delimiters, but only append an end-of-record delimiter if useRecordDelim is true. | 
| abstract  java.lang.String | toString(DelimiterSet delimiters)Format output data according to the specified delimiters. | 
|  java.lang.String | toString(DelimiterSet delimiters,
         boolean useRecordDelim)Format the record according to the specified 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.sqoop.mapreduce.DBWritable | 
|---|
| readFields, write | 
| Methods inherited from interface org.apache.hadoop.io.Writable | 
|---|
| readFields, write | 
| Constructor Detail | 
|---|
public SqoopRecord()
| Method Detail | 
|---|
public abstract void parse(java.lang.CharSequence s)
                    throws RecordParser.ParseError
RecordParser.ParseError
public abstract void parse(org.apache.hadoop.io.Text s)
                    throws RecordParser.ParseError
RecordParser.ParseError
public abstract void parse(byte[] s)
                    throws RecordParser.ParseError
RecordParser.ParseError
public abstract void parse(char[] s)
                    throws RecordParser.ParseError
RecordParser.ParseError
public abstract void parse(java.nio.ByteBuffer s)
                    throws RecordParser.ParseError
RecordParser.ParseError
public abstract void parse(java.nio.CharBuffer s)
                    throws RecordParser.ParseError
RecordParser.ParseError
public abstract void loadLargeObjects(LargeObjectLoader objLoader)
                               throws java.sql.SQLException,
                                      java.io.IOException,
                                      java.lang.InterruptedException
java.sql.SQLException
java.io.IOException
java.lang.InterruptedException
public abstract int write(java.sql.PreparedStatement stmt,
                          int offset)
                   throws java.sql.SQLException
java.sql.SQLExceptionpublic abstract java.lang.String toString(DelimiterSet delimiters)
public java.lang.String toString(boolean useRecordDelim)
public java.lang.String toString(DelimiterSet delimiters,
                                 boolean useRecordDelim)
public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic abstract int getClassFormatVersion()
public void delegate(FieldMapProcessor processor)
              throws java.io.IOException,
                     ProcessingException
processor - A delegate that operates on this object.
java.io.IOException - if the processor encounters an IO error when
 operating on this object.
ProcessingException - if the FieldMapProcessor
 encounters a general processing error when operating on this object.public java.util.Map<java.lang.String,java.lang.Object> getFieldMap()
FieldMappable
getFieldMap in interface FieldMappable
public void setField(java.lang.String fieldName,
                     java.lang.Object fieldVal)
java.lang.RuntimeException - if the specified field name does not exist.| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||