public abstract class SqoopRecord extends java.lang.Object implements java.lang.Cloneable, org.apache.sqoop.mapreduce.DBWritable, FieldMappable, org.apache.hadoop.io.Writable
Constructor and Description |
---|
SqoopRecord() |
Modifier and Type | Method and Description |
---|---|
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'.
|
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.SQLException
public 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.Object
java.lang.CloneNotSupportedException
public 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.Copyright © 2015 The Apache Software Foundation