|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sqoop.lib.LobRef<DATATYPE,CONTAINERTYPE,ACCESSORTYPE>
com.cloudera.sqoop.lib.LobRef<java.lang.String,java.lang.String,java.io.Reader>
org.apache.sqoop.lib.ClobRef
public class ClobRef
ClobRef is a wrapper that holds a CLOB either directly, or a reference to a file that holds the CLOB data.
| Field Summary |
|---|
| Fields inherited from class com.cloudera.sqoop.lib.LobRef |
|---|
EXTERNAL_MATCHER, LOG |
| Constructor Summary | |
|---|---|
ClobRef()
|
|
ClobRef(java.lang.String chars)
|
|
ClobRef(java.lang.String file,
long offset,
long length)
Initialize a clobref to an external CLOB. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
deepCopyData(java.lang.String data)
Make a copy of the materialized data. |
protected java.io.Reader |
getExternalSource(com.cloudera.sqoop.io.LobFile.Reader reader)
Using the LobFile reader, get an accessor InputStream or Reader to the underlying data. |
protected java.lang.String |
getInternalData(java.lang.String data)
|
protected java.io.Reader |
getInternalSource(java.lang.String data)
Wrap the materialized data in an InputStream or Reader. |
static ClobRef |
parse(java.lang.String inputString)
Create a ClobRef based on parsed data from a line of text. |
void |
readFieldsInternal(java.io.DataInput in)
Perform the readFields() operation on a fully-materializable record. |
void |
writeInternal(java.io.DataOutput out)
Perform the write() operation on a fully-materializable record. |
| Methods inherited from class org.apache.sqoop.lib.LobRef |
|---|
clone, close, finalize, getData, getDataObj, getDataStream, getDataStream, isExternal, readFields, setDataObj, toString, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClobRef()
public ClobRef(java.lang.String chars)
public ClobRef(java.lang.String file,
long offset,
long length)
file - the filename to the CLOB. May be relative to the job dir.offset - the offset (in bytes) into the LobFile for this record.length - the length of the record in characters.| Method Detail |
|---|
protected java.io.Reader getExternalSource(com.cloudera.sqoop.io.LobFile.Reader reader)
throws java.io.IOException
LobRef
getExternalSource in class LobRef<java.lang.String,java.lang.String,java.io.Reader>java.io.IOExceptionprotected java.io.Reader getInternalSource(java.lang.String data)
LobRef
getInternalSource in class LobRef<java.lang.String,java.lang.String,java.io.Reader>protected java.lang.String deepCopyData(java.lang.String data)
LobRef
deepCopyData in class LobRef<java.lang.String,java.lang.String,java.io.Reader>protected java.lang.String getInternalData(java.lang.String data)
getInternalData in class LobRef<java.lang.String,java.lang.String,java.io.Reader>
public void readFieldsInternal(java.io.DataInput in)
throws java.io.IOException
LobRef
readFieldsInternal in class LobRef<java.lang.String,java.lang.String,java.io.Reader>in - the DataInput to deserialize from.
java.io.IOException
public void writeInternal(java.io.DataOutput out)
throws java.io.IOException
LobRef
writeInternal in class LobRef<java.lang.String,java.lang.String,java.io.Reader>out - the DataOutput to deserialize to.
java.io.IOExceptionpublic static ClobRef parse(java.lang.String inputString)
inputString - the text-based input data to parse.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||