Added: incubator/sqoop/site/src/site/resources/docs/1.4.0-incubating/api/com/cloudera/sqoop/lib/DelimiterSet.html URL: http://svn.apache.org/viewvc/incubator/sqoop/site/src/site/resources/docs/1.4.0-incubating/api/com/cloudera/sqoop/lib/DelimiterSet.html?rev=1211189&view=auto ============================================================================== --- incubator/sqoop/site/src/site/resources/docs/1.4.0-incubating/api/com/cloudera/sqoop/lib/DelimiterSet.html (added) +++ incubator/sqoop/site/src/site/resources/docs/1.4.0-incubating/api/com/cloudera/sqoop/lib/DelimiterSet.html Tue Dec 6 21:53:27 2011 @@ -0,0 +1,400 @@ + + + +
+ +
+
+
|
++ + | +|||||||||
+ 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. |
+
+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<
/A>, 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 | +
+
+
|
++ + | +|||||||||
+ 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 | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
public interface FieldMapProcessor
+Interface implemented by classes that process FieldMappable objects. +
+ +
+
FieldMapProcessor
+Method Summary | +
---|
Methods inherited from interface org.apache.sqoop.lib.FieldMapProcessor | +
---|
accept |
+
+ +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
public interface FieldMappable
+Interface describing a class capable of returning a map of the fields + of the object to their values. +
+ +
+
FieldMappable
+Method Summary | +
---|
Methods inherited from interface org.apache.sqoop.lib.FieldMappable | +
---|
getFieldMap |
+
+ +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +