public final class FieldFormatter
extends java.lang.Object
FieldFormatter
Modifier and Type | Method and Description |
---|---|
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.
|
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.Copyright © 2015 The Apache Software Foundation