|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cloudera.sqoop.lib.FieldFormatter
public final class FieldFormatter
Static helper class that will help format data with quotes and escape chars.
FieldFormatter
Method Summary | |
---|---|
static java.lang.String |
escapeAndEnclose(java.lang.String str,
DelimiterSet delimiters)
Deprecated. 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)
Deprecated. 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)
Deprecated. replace hive delimiters with a user-defined string passed to the --hive-delims-replacement option. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String hiveStringDropDelims(java.lang.String str, DelimiterSet delimiters)
str
- delimiters
-
public static java.lang.String hiveStringReplaceDelims(java.lang.String str, java.lang.String replacement, DelimiterSet delimiters)
str
- delimiters
-
public static java.lang.String escapeAndEnclose(java.lang.String str, DelimiterSet delimiters)
str
- - The user's string to escape and enclosedelimiters
- - The DelimiterSet to use identifying the escape and
enclose semantics. If the specified escape or enclose characters are
'\000', those operations are not performed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |