org.apache.sqoop.lib

## クラス SqoopRecord

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

- すべての実装されたインタフェース:
    java.lang.Cloneable, org.apache.hadoop.io.Writable, FieldMappable, org.apache.sqoop.mapreduce.DBWritable
  直系の既知のサブクラス:
    SqoopRecord

      public abstract class SqoopRecord
      extends java.lang.Object
      implements java.lang.Cloneable, org.apache.sqoop.mapreduce.DBWritable, FieldMappable, org.apache.hadoop.io.Writable

  Interface implemented by the classes generated by sqoop's orm.ClassWriter.

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

    コンストラクタ
    コンストラクタと説明
    `SqoopRecord()`

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

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

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

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

    - ### インタフェースから継承されたメソッド org.apache.sqoop.mapreduce.DBWritable

      `readFields, write`

    - ### インタフェースから継承されたメソッド org.apache.hadoop.io.Writable

      `readFields, write`

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

    - #### SqoopRecord

          public SqoopRecord()

  - ### メソッドの詳細

    - #### parse

          public abstract void parse(java.lang.CharSequence s)
                              throws RecordParser.ParseError

      例外:
        `RecordParser.ParseError`

    - #### parse

          public abstract void parse(org.apache.hadoop.io.Text s)
                              throws RecordParser.ParseError

      例外:
        `RecordParser.ParseError`

    - #### parse

          public abstract void parse(byte[] s)
                              throws RecordParser.ParseError

      例外:
        `RecordParser.ParseError`

    - #### parse

          public abstract void parse(char[] s)
                              throws RecordParser.ParseError

      例外:
        `RecordParser.ParseError`

    - #### parse

          public abstract void parse(java.nio.ByteBuffer s)
                              throws RecordParser.ParseError

      例外:
        `RecordParser.ParseError`

    - #### parse

          public abstract void parse(java.nio.CharBuffer s)
                              throws RecordParser.ParseError

      例外:
        `RecordParser.ParseError`

    - #### loadLargeObjects

          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`

    - #### write

          public abstract int write(java.sql.PreparedStatement stmt,
                  int offset)
                             throws java.sql.SQLException

      Inserts the data in this object into the PreparedStatement, starting at parameter 'offset'.
      戻り値:
        the number of fields written to the statement.
      例外:
        `java.sql.SQLException`

    - #### toString

          public abstract java.lang.String toString(DelimiterSet delimiters)

      Format output data according to the specified delimiters.

    - #### toString

          public java.lang.String toString(boolean useRecordDelim)

      Use the default delimiters, but only append an end-of-record delimiter if useRecordDelim is true.

    - #### toString

          public java.lang.String toString(DelimiterSet delimiters,
                                  boolean useRecordDelim)

      Format the record according to the specified delimiters. An end-of-record delimiter is optional, and only used if useRecordDelim is true. For use with TextOutputFormat, calling this with useRecordDelim=false may make more sense.

    - #### clone

          public java.lang.Object clone()
                                 throws java.lang.CloneNotSupportedException

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

    - #### getClassFormatVersion

          public abstract int getClassFormatVersion()

      Returns an integer specifying which API format version the generated class conforms to. Used by internal APIs for backwards compatibility.
      戻り値:
        the API version this class was generated against.

    - #### delegate

          public void delegate(FieldMapProcessor processor)
                        throws java.io.IOException,
                               ProcessingException

      Use the delegate pattern to allow arbitrary processing of the fields of this record.
      パラメータ:
        `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.

    - #### getFieldMap

          public java.util.Map<java.lang.String,java.lang.Object> getFieldMap()

      インタフェースからコピーされた説明: `FieldMappable`
      Returns a map containing all fields of this record.
      定義:
        `getFieldMap` インタフェース内 `FieldMappable`
      戻り値:
        a map from column names to the object-based values for this record. The map may not be null, though it may be empty.

    - #### setField

          public void setField(java.lang.String fieldName,
                      java.lang.Object fieldVal)

      Allows an arbitrary field to be set programmatically to the specified value object. The value object must match the type expected for the particular field or a RuntimeException will result.
      例外:
        `java.lang.RuntimeException` - if the specified field name does not exist.

Copyright © 2015 The Apache Software Foundation