org.apache.sqoop.lib

## クラス RecordParser

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

- 直系の既知のサブクラス:
    RecordParser

      public class RecordParser
      extends java.lang.Object

  Parses a record containing one or more fields. Fields are separated by some FIELD_DELIMITER character, e.g. a comma or a ^A character. Records are terminated by a RECORD_DELIMITER character, e.g., a newline. Fields may be (optionally or mandatorily) enclosed by a quoting char e.g., '\"' Fields may contain escaped characters. An escape character may be, e.g., the '\\' character. Any character following an escape character is treated literally. e.g., '\n' is recorded as an 'n' character, not a newline. Unexpected results may occur if the enclosing character escapes itself. e.g., this cannot parse SQL SELECT statements where the single character ['] escapes to ['']. This class is not synchronized. Multiple threads must use separate instances of RecordParser. The fields parsed by RecordParser are backed by an internal buffer which is cleared when the next call to parseRecord() is made. If the buffer is required to be preserved, you must copy it yourself.

- - ### ネストされたクラスのサマリー

    ネストされたクラス
    修飾子とタイプ | クラスと説明
    --- | ---
    `static class` | `RecordParser.ParseError` An error thrown when parsing fails.

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

    フィールド
    修飾子とタイプ | フィールドと説明
    --- | ---
    `static org.apache.commons.logging.Log` | `LOG`

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

    コンストラクタ
    コンストラクタと説明
    `RecordParser(DelimiterSet delimitersIn)`

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

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `int` | `hashCode()`
    `boolean` | `isEnclosingRequired()`
    `java.util.List<java.lang.String>` | `parseRecord(byte[] input)` Return a list of strings representing the fields of the input line.
    `java.util.List<java.lang.String>` | `parseRecord(java.nio.ByteBuffer input)`
    `java.util.List<java.lang.String>` | `parseRecord(char[] input)` Return a list of strings representing the fields of the input line.
    `java.util.List<java.lang.String>` | `parseRecord(java.nio.CharBuffer input)` Return a list of strings representing the fields of the input line.
    `java.util.List<java.lang.String>` | `parseRecord(java.lang.CharSequence input)` Return a list of strings representing the fields of the input line.
    `java.util.List<java.lang.String>` | `parseRecord(org.apache.hadoop.io.Text input)` Return a list of strings representing the fields of the input line.
    `java.lang.String` | `toString()`

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

      `clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait`

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

    - #### LOG

          public static final org.apache.commons.logging.Log LOG

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

    - #### RecordParser

          public RecordParser(DelimiterSet delimitersIn)

  - ### メソッドの詳細

    - #### parseRecord

          public java.util.List<java.lang.String> parseRecord(java.lang.CharSequence input)
                                                       throws RecordParser.ParseError

      Return a list of strings representing the fields of the input line. This list is backed by an internal buffer which is cleared by the next call to parseRecord().
      例外:
        `RecordParser.ParseError`

    - #### parseRecord

          public java.util.List<java.lang.String> parseRecord(org.apache.hadoop.io.Text input)
                                                       throws RecordParser.ParseError

      Return a list of strings representing the fields of the input line. This list is backed by an internal buffer which is cleared by the next call to parseRecord().
      例外:
        `RecordParser.ParseError`

    - #### parseRecord

          public java.util.List<java.lang.String> parseRecord(byte[] input)
                                                       throws RecordParser.ParseError

      Return a list of strings representing the fields of the input line. This list is backed by an internal buffer which is cleared by the next call to parseRecord().
      例外:
        `RecordParser.ParseError`

    - #### parseRecord

          public java.util.List<java.lang.String> parseRecord(char[] input)
                                                       throws RecordParser.ParseError

      Return a list of strings representing the fields of the input line. This list is backed by an internal buffer which is cleared by the next call to parseRecord().
      例外:
        `RecordParser.ParseError`

    - #### parseRecord

          public java.util.List<java.lang.String> parseRecord(java.nio.ByteBuffer input)
                                                       throws RecordParser.ParseError

      例外:
        `RecordParser.ParseError`

    - #### parseRecord

          public java.util.List<java.lang.String> parseRecord(java.nio.CharBuffer input)
                                                       throws RecordParser.ParseError

      Return a list of strings representing the fields of the input line. This list is backed by an internal buffer which is cleared by the next call to parseRecord().
      例外:
        `RecordParser.ParseError`

    - #### isEnclosingRequired

          public boolean isEnclosingRequired()

    - #### toString

          public java.lang.String toString()

      オーバーライド:
        `toString` クラス内 `java.lang.Object`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

Copyright © 2015 The Apache Software Foundation