|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.sqoop.lib.DelimiterSet com.cloudera.sqoop.lib.DelimiterSet
public class DelimiterSet
Encapsulates a set of delimiters used to encode a record.
DelimiterSet
Field Summary | |
---|---|
static DelimiterSet |
DEFAULT_DELIMITERS
Deprecated. |
static DelimiterSet |
HIVE_DELIMITERS
Deprecated. |
static DelimiterSet |
MYSQL_DELIMITERS
Deprecated. |
static char |
NULL_CHAR
Deprecated. |
Fields inherited from class org.apache.sqoop.lib.DelimiterSet |
---|
INPUT_ENCLOSE_REQUIRED_KEY, INPUT_ENCLOSED_BY_KEY, INPUT_ESCAPED_BY_KEY, INPUT_FIELD_DELIM_KEY, INPUT_RECORD_DELIM_KEY, OUTPUT_ENCLOSE_REQUIRED_KEY, OUTPUT_ENCLOSED_BY_KEY, OUTPUT_ESCAPED_BY_KEY, OUTPUT_FIELD_DELIM_KEY, OUTPUT_RECORD_DELIM_KEY |
Constructor Summary | |
---|---|
DelimiterSet()
Deprecated. Create a delimiter set with the default delimiters (comma for fields, newline for records). |
|
DelimiterSet(char field,
char record,
char enclose,
char escape,
boolean isEncloseRequired)
Deprecated. Create a delimiter set with the specified delimiters. |
Method Summary | |
---|---|
DelimiterSet |
copy()
Deprecated. Identical to clone() but does not throw spurious exceptions. |
Methods inherited from class org.apache.sqoop.lib.DelimiterSet |
---|
clone, equals, formatConstructor, getEnclosedBy, getEscapedBy, getFieldsTerminatedBy, getLinesTerminatedBy, hashCode, isEncloseRequired, setEnclosedBy, setEncloseRequired, setEscapedBy, setFieldsTerminatedBy, setLinesTerminatedBy, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final char NULL_CHAR
public static final DelimiterSet DEFAULT_DELIMITERS
public static final DelimiterSet HIVE_DELIMITERS
public static final DelimiterSet MYSQL_DELIMITERS
Constructor Detail |
---|
public DelimiterSet()
public DelimiterSet(char field, char record, char enclose, char escape, boolean isEncloseRequired)
field
- the fields-terminated-by delimiterrecord
- the lines-terminated-by delimiterenclose
- the enclosed-by characterescape
- the escaped-by characterisEncloseRequired
- If true, enclosed-by is applied to all
fields. If false, only applied to fields that embed delimiters.Method Detail |
---|
public DelimiterSet copy()
copy
in class DelimiterSet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |