public class ClobRef extends LobRef<java.lang.String,java.lang.String,java.io.Reader>
EXTERNAL_MATCHER, LOG
Constructor and Description |
---|
ClobRef() |
ClobRef(java.lang.String chars) |
ClobRef(java.lang.String file,
long offset,
long length)
Initialize a clobref to an external CLOB.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
deepCopyData(java.lang.String data)
Make a copy of the materialized data.
|
protected java.io.Reader |
getExternalSource(org.apache.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.
|
clone, close, finalize, getData, getDataObj, getDataStream, getDataStream, isExternal, readFields, setDataObj, toString, write
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.protected java.io.Reader getExternalSource(org.apache.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.IOException
protected 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.IOException
public static ClobRef parse(java.lang.String inputString)
inputString
- the text-based input data to parse.Copyright © 2019 The Apache Software Foundation