com.cloudera.sqoop.lib

## クラス FieldFormatter

- java.lang.Object
- - com.cloudera.sqoop.lib.FieldFormatter

- 非推奨です。
  use org.apache.sqoop.lib.FieldFormatter instead.

      public final class FieldFormatter
      extends java.lang.Object

  Static helper class that will help format data with quotes and escape chars.
  関連項目:
    `FieldFormatter`

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

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `static java.lang.String` | `escapeAndEnclose(java.lang.String str, DelimiterSet delimiters)` 非推奨です。 Takes an input string representing the value of a field, encloses it in enclosing chars, and escapes any occurrences of such characters in the middle.
    `static java.lang.String` | `hiveStringDropDelims(java.lang.String str, DelimiterSet delimiters)` 非推奨です。 only pass fields that are strings when --hive-drop-delims option is on.
    `static java.lang.String` | `hiveStringReplaceDelims(java.lang.String str, java.lang.String replacement, DelimiterSet delimiters)` 非推奨です。 replace hive delimiters with a user-defined string passed to the --hive-delims-replacement option.

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

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

- - ### メソッドの詳細

    - #### hiveStringDropDelims

          public static java.lang.String hiveStringDropDelims(java.lang.String str,
                                              DelimiterSet delimiters)

      非推奨です。
      only pass fields that are strings when --hive-drop-delims option is on.
      パラメータ:
        `str` -
        `delimiters` -
      戻り値:

    - #### hiveStringReplaceDelims

          public static java.lang.String hiveStringReplaceDelims(java.lang.String str,
                                                 java.lang.String replacement,
                                                 DelimiterSet delimiters)

      非推奨です。
      replace hive delimiters with a user-defined string passed to the --hive-delims-replacement option.
      パラメータ:
        `str` -
        `delimiters` -
      戻り値:

    - #### escapeAndEnclose

          public static java.lang.String escapeAndEnclose(java.lang.String str,
                                          DelimiterSet delimiters)

      非推奨です。
      Takes an input string representing the value of a field, encloses it in enclosing chars, and escapes any occurrences of such characters in the middle. The escape character itself is also escaped if it appears in the text of the field. If there is no enclosing character, then any delimiters present in the field body are escaped instead. The field is enclosed only if: enclose != '\000', and: encloseRequired is true, or one of the fields-terminated-by or lines-terminated-by characters is present in the string. Escaping is not performed if the escape char is '\000'.
      パラメータ:
        `str` - - The user's string to escape and enclose
        `delimiters` - - The DelimiterSet to use identifying the escape and enclose semantics. If the specified escape or enclose characters are '\000', those operations are not performed.
      戻り値:
        the escaped, enclosed version of 'str'.

Copyright © 2015 The Apache Software Foundation