org.apache.sqoop.lib

## クラス LargeObjectLoader

- java.lang.Object
- - org.apache.sqoop.lib.LargeObjectLoader

- すべての実装されたインタフェース:
    java.io.Closeable, java.lang.AutoCloseable
  直系の既知のサブクラス:
    LargeObjectLoader

      public class LargeObjectLoader
      extends java.lang.Object
      implements java.io.Closeable

  Contains a set of methods which can read db columns from a ResultSet into Java types, and do serialization of these types to/from DataInput/DataOutput for use with Hadoop's Writable implementation. This supports null values for all types. This is a singleton instance class; only one may exist at a time. However, its lifetime is limited to the current TaskInputOutputContext's life.

- - ### フィールドのサマリー

    フィールド
    修飾子とタイプ | フィールドと説明
    --- | ---
    `static long` | `DEFAULT_MAX_LOB_LENGTH`
    `static java.lang.String` | `MAX_INLINE_LOB_LEN_KEY`

  - ### コンストラクタのサマリー

    コンストラクタ
    コンストラクタと説明
    `LargeObjectLoader(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.Path workPath)` Create a new LargeObjectLoader.

  - ### メソッドのサマリー

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `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.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### フィールドの詳細

    - #### DEFAULT_MAX_LOB_LENGTH

          public static final long DEFAULT_MAX_LOB_LENGTH

      関連項目:
        定数フィールド値

    - #### MAX_INLINE_LOB_LEN_KEY

          public static final java.lang.String MAX_INLINE_LOB_LEN_KEY

      関連項目:
        定数フィールド値

  - ### コンストラクタの詳細

    - #### LargeObjectLoader

          public LargeObjectLoader(org.apache.hadoop.conf.Configuration conf,
                           org.apache.hadoop.fs.Path workPath)
                            throws java.io.IOException

      Create a new LargeObjectLoader.
      パラメータ:
        `conf` - the Configuration to use
        `workPath` - the HDFS working directory for this task.
      例外:
        `java.io.IOException`

  - ### メソッドの詳細

    - #### finalize

          protected void finalize()
                           throws java.lang.Throwable

      オーバーライド:
        `finalize` クラス内 `java.lang.Object`
      例外:
        `java.lang.Throwable`

    - #### close

          public void close()
                     throws java.io.IOException

      定義:
        `close` インタフェース内 `java.io.Closeable`
      定義:
        `close` インタフェース内 `java.lang.AutoCloseable`
      例外:
        `java.io.IOException`

    - #### readBlobRef

          public BlobRef readBlobRef(int colNum,
                            java.sql.ResultSet r)
                              throws java.io.IOException,
                                     java.lang.InterruptedException,
                                     java.sql.SQLException

      Actually read a BlobRef instance from the ResultSet and materialize the data either inline or to a file.
      パラメータ:
        `colNum` - the column of the ResultSet's current row to read.
        `r` - the ResultSet to read from.
      戻り値:
        a BlobRef encapsulating the data in this field.
      例外:
        `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`

    - #### readClobRef

          public ClobRef readClobRef(int colNum,
                            java.sql.ResultSet r)
                              throws java.io.IOException,
                                     java.lang.InterruptedException,
                                     java.sql.SQLException

      Actually read a ClobRef instance from the ResultSet and materialize the data either inline or to a file.
      パラメータ:
        `colNum` - the column of the ResultSet's current row to read.
        `r` - the ResultSet to read from.
      戻り値:
        a ClobRef encapsulating the data in this field.
      例外:
        `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 © 2015 The Apache Software Foundation