public class LargeObjectLoader
extends java.lang.Object
implements java.io.Closeable
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_MAX_LOB_LENGTH |
static org.apache.commons.logging.Log |
LOG |
static java.lang.String |
MAX_INLINE_LOB_LEN_KEY |
Constructor and Description |
---|
LargeObjectLoader(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.fs.Path workPath)
Create a new LargeObjectLoader.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
BlobRef |
readBlobRef(int colNum,
java.sql.ResultSet r)
Actually read a BlobRef instance from the ResultSet and materialize
the data either inline or to a file.
|
ClobRef |
readClobRef(int colNum,
java.sql.ResultSet r)
Actually read a ClobRef instance from the ResultSet and materialize
the data either inline or to a file.
|
public static final org.apache.commons.logging.Log LOG
public static final long DEFAULT_MAX_LOB_LENGTH
public static final java.lang.String MAX_INLINE_LOB_LEN_KEY
public LargeObjectLoader(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path workPath) throws java.io.IOException
conf
- the Configuration to usejava.io.IOException
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public BlobRef readBlobRef(int colNum, java.sql.ResultSet r) throws java.io.IOException, java.lang.InterruptedException, java.sql.SQLException
colNum
- the column of the ResultSet's current row to read.r
- the ResultSet to read from.java.io.IOException
- if an error occurs writing to the FileSystem.java.sql.SQLException
- if an error occurs reading from the database.java.lang.InterruptedException
public ClobRef readClobRef(int colNum, java.sql.ResultSet r) throws java.io.IOException, java.lang.InterruptedException, java.sql.SQLException
colNum
- the column of the ResultSet's current row to read.r
- the ResultSet to read from.java.io.IOException
- if an error occurs writing to the FileSystem.java.sql.SQLException
- if an error occurs reading from the database.java.lang.InterruptedException
Copyright © 2019 The Apache Software Foundation