Added: sqoop/site/trunk/content/resources/docs/1.4.3/api/com/cloudera/sqoop/lib/FieldFormatter.html URL: http://svn.apache.org/viewvc/sqoop/site/trunk/content/resources/docs/1.4.3/api/com/cloudera/sqoop/lib/FieldFormatter.html?rev=1453973&view=auto ============================================================================== --- sqoop/site/trunk/content/resources/docs/1.4.3/api/com/cloudera/sqoop/lib/FieldFormatter.html (added) +++ sqoop/site/trunk/content/resources/docs/1.4.3/api/com/cloudera/sqoop/lib/FieldFormatter.html Thu Mar 7 17:26:54 2013 @@ -0,0 +1,300 @@ + + + +
+ +
+
+
|
++ + | +|||||||||
+ 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 | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object ++com.cloudera.sqoop.lib.JdbcWritableBridge +
+
public final class JdbcWritableBridge
+Contains a set of methods which can read db columns from a ResultSet into + Java types, and do serialization of these types to/from DataInput/DataOutput + for use with Hadoop's Writable implementation. This supports null values + for all types. +
+ +
+
JdbcWritableBridge
+Field Summary | +|
---|---|
+static long |
+MAX_BLOB_LENGTH
+
++ Deprecated. |
+
+static long |
+MAX_CLOB_LENGTH
+
++ Deprecated. |
+
+Method Summary | +|
---|---|
+static java.math.BigDecimal |
+readBigDecimal(int colNum,
+ java.sql.ResultSet r)
+
++ Deprecated. |
+
+static BlobRef |
+readBlobRef(int colNum,
+ java.sql.ResultSet r)
+
++ Deprecated. |
+
+static java.lang.Boolean |
+readBoolean(int colNum,
+ java.sql.ResultSet r)
+
++ Deprecated. |
+
+static org.apache.hadoop.io.BytesWritable |
+readBytesWritable(int colNum,
+ java.sql.ResultSet r)
+
++ Deprecated. |
+
+static ClobRef |
+readClobRef(int colNum,
+ java.sql.ResultSet r)
+
++ Deprecated. |
+
+static java.sql.Date |
+readDate(int colNum,
+ java.sql.ResultSet r)
+
++ Deprecated. |
+
+static java.lang.Double |
+readDouble(int colNum,
+ java.sql.ResultSet r)
+
++ Deprecated. |
+
+static java.lang.Float |
+readFloat(int colNum,
+ java.sql.ResultSet r)
+
++ Deprecated. |
+
+static java.lang.Integer |
+readInteger(int colNum,
+ java.sql.ResultSet r)
+
++ Deprecated. |
+
+static java.lang.Long |
+readLong(int colNum,
+ java.sql.ResultSet r)
+
++ Deprecated. |
+
+static java.lang.String |
+readString(int colNum,
+ java.sql.ResultSet r)
+
++ Deprecated. |
+
+static java.sql.Time |
+readTime(int colNum,
+ java.sql.ResultSet r)
+
++ Deprecated. |
+
+static java.sql.Timestamp |
+readTimestamp(int colNum,
+ java.sql.ResultSet r)
+
++ Deprecated. |
+
+static void |
+writeBigDecimal(java.math.BigDecimal val,
+ int paramIdx,
+ int sqlType,
+ java.sql.PreparedStatement s)
+
++ Deprecated. |
+
+static void |
+writeBlobRef(BlobRef val,
+ int paramIdx,
+ int sqlType,
+ java.sql.PreparedStatement s)
+
++ Deprecated. |
+
+static void |
+writeBoolean(java.lang.Boolean val,
+ int paramIdx,
+ int sqlType,
+ java.sql.PreparedStatement s)
+
++ Deprecated. |
+
+static void |
+writeBytesWritable(org.apache.hadoop.io.BytesWritable val,
+ int paramIdx,
+ int sqlType,
+ java.sql.PreparedStatement s)
+
++ Deprecated. |
+
+static void |
+writeClobRef(ClobRef val,
+ int paramIdx,
+ int sqlType,
+ java.sql.PreparedStatement s)
+
++ Deprecated. |
+
+static void |
+writeDate(java.sql.Date val,
+ int paramIdx,
+ int sqlType,
+ java.sql.PreparedStatement s)
+
++ Deprecated. |
+
+static void |
+writeDouble(java.lang.Double val,
+ int paramIdx,
+ int sqlType,
+ java.sql.PreparedStatement s)
+
++ Deprecated. |
+
+static void |
+writeFloat(java.lang.Float val,
+ int paramIdx,
+ int sqlType,
+ java.sql.PreparedStatement s)
+
++ Deprecated. |
+
+static void |
+writeInteger(java.lang.Integer val,
+ int paramIdx,
+ int sqlType,
+ java.sql.PreparedStatement s)
+
++ Deprecated. |
+
+static void |
+writeLong(java.lang.Long val,
+ int paramIdx,
+ int sqlType,
+ java.sql.PreparedStatement s)
+
++ Deprecated. |
+
+static void |
+writeString(java.lang.String val,
+ int paramIdx,
+ int sqlType,
+ java.sql.PreparedStatement s)
+
++ Deprecated. |
+
+static void |
+writeTime(java.sql.Time val,
+ int paramIdx,
+ int sqlType,
+ java.sql.PreparedStatement s)
+
++ Deprecated. |
+
+static void |
+writeTimestamp(java.sql.Timestamp val,
+ int paramIdx,
+ int sqlType,
+ java.sql.PreparedStatement s)
+
++ Deprecated. |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Field Detail | +
---|
+public static final long MAX_BLOB_LENGTH+
+public static final long MAX_CLOB_LENGTH+
+Method Detail | +
---|
+public static java.lang.Integer readInteger(int colNum, + java.sql.ResultSet r) + throws java.sql.SQLException+
java.sql.SQLException
+public static java.lang.Long readLong(int colNum, + java.sql.ResultSet r) + throws java.sql.SQLException+
java.sql.SQLException
+public static java.lang.String readString(int colNum, + java.sql.ResultSet r) + throws java.sql.SQLException+
java.sql.SQLException
+public static java.lang.Float readFloat(int colNum, + java.sql.ResultSet r) + throws java.sql.SQLException+
java.sql.SQLException
+public static java.lang.Double readDouble(int colNum, + java.sql.ResultSet r) + throws java.sql.SQLException+
java.sql.SQLException
+public static java.lang.Boolean readBoolean(int colNum, + java.sql.ResultSet r) + throws java.sql.SQLException+
java.sql.SQLException
+public static java.sql.Time readTime(int colNum, + java.sql.ResultSet r) + throws java.sql.SQLException+
java.sql.SQLException
+public static java.sql.Timestamp readTimestamp(int colNum, + java.sql.ResultSet r) + throws java.sql.SQLException+
java.sql.SQLException
+public static java.sql.Date readDate(int colNum, + java.sql.ResultSet r) + throws java.sql.SQLException+
java.sql.SQLException
+public static org.apache.hadoop.io.BytesWritable readBytesWritable(int colNum, + java.sql.ResultSet r) + throws java.sql.SQLException+
java.sql.SQLException
+public static java.math.BigDecimal readBigDecimal(int colNum, + java.sql.ResultSet r) + throws java.sql.SQLException+
java.sql.SQLException
+public static BlobRef readBlobRef(int colNum, + java.sql.ResultSet r) + throws java.sql.SQLException+
java.sql.SQLException
+public static ClobRef readClobRef(int colNum, + java.sql.ResultSet r) + throws java.sql.SQLException+
java.sql.SQLException
+public static void writeInteger(java.lang.Integer val, + int paramIdx, + int sqlType, + java.sql.PreparedStatement s) + throws java.sql.SQLException+
java.sql.SQLException
+public static void writeLong(java.lang.Long val, + int paramIdx, + int sqlType, + java.sql.PreparedStatement s) + throws java.sql.SQLException+
java.sql.SQLException
+public static void writeDouble(java.lang.Double val, + int paramIdx, + int sqlType, + java.sql.PreparedStatement s) + throws java.sql.SQLException+
java.sql.SQLException
+public static void writeBoolean(java.lang.Boolean val, + int paramIdx, + int sqlType, + java.sql.PreparedStatement s) + throws java.sql.SQLException+
java.sql.SQLException
+public static void writeFloat(java.lang.Float val, + int paramIdx, + int sqlType, + java.sql.PreparedStatement s) + throws java.sql.SQLException+
java.sql.SQLException
+public static void writeString(java.lang.String val, + int paramIdx, + int sqlType, + java.sql.PreparedStatement s) + throws java.sql.SQLException+
java.sql.SQLException
+public static void writeTimestamp(java.sql.Timestamp val, + int paramIdx, + int sqlType, + java.sql.PreparedStatement s) + throws java.sql.SQLException+
java.sql.SQLException
+public static void writeTime(java.sql.Time val, + int paramIdx, + int sqlType, + java.sql.PreparedStatement s) + throws java.sql.SQLException+
java.sql.SQLException
+public static void writeDate(java.sql.Date val, + int paramIdx, + int sqlType, + java.sql.PreparedStatement s) + throws java.sql.SQLException+
java.sql.SQLException
+public static void writeBytesWritable(org.apache.hadoop.io.BytesWritable val, + int paramIdx, + int sqlType, + java.sql.PreparedStatement s) + throws java.sql.SQLException+
java.sql.SQLException
+public static void writeBigDecimal(java.math.BigDecimal val, + int paramIdx, + int sqlType, + java.sql.PreparedStatement s) + throws java.sql.SQLException+
java.sql.SQLException
+public static void writeBlobRef(BlobRef val, + int paramIdx, + int sqlType, + java.sql.PreparedStatement s) + throws java.sql.SQLException+
java.sql.SQLException
+public static void writeClobRef(ClobRef val, + int paramIdx, + int sqlType, + java.sql.PreparedStatement s) + throws java.sql.SQLException+
java.sql.SQLException
+
+
|
++ + | +|||||||||
+ 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 ++org.apache.sqoop.lib.LargeObjectLoader +
com.cloudera.sqoop.lib.LargeObjectLoader +
+
public class LargeObjectLoader
+Contains a set of methods which can read db columns from a ResultSet into + Java types, and do serialization of these types to/from DataInput/DataOutput + for use with Hadoop's Writable implementation. This supports null values + for all types. + + This is a singleton instance class; only one may exist at a time. + However, its lifetime is limited to the current TaskInputOutputContext's + life. +
+ +
+
LargeObjectLoader
+Field Summary | +|
---|---|
+static long |
+DEFAULT_MAX_LOB_LENGTH
+
++ Deprecated. |
+
+static java.lang.String |
+MAX_INLINE_LOB_LEN_KEY
+
++ Deprecated. |
+
+Constructor Summary | +|
---|---|
LargeObjectLoader(org.apache.hadoop.conf.Configuration conf,
+ org.apache.hadoop.fs.Path workPath)
+
++ Deprecated. Create a new LargeObjectLoader. |
+
+Method Summary | +
---|
Methods inherited from class org.apache.sqoop.lib.LargeObjectLoader | +
---|
close, finalize, readBlobRef, readClobRef |
+
Methods inherited from class java.lang.Object | +
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Field Detail | +
---|
+public static final long DEFAULT_MAX_LOB_LENGTH+
+public static final java.lang.String MAX_INLINE_LOB_LEN_KEY+
+Constructor Detail | +
---|
+public LargeObjectLoader(org.apache.hadoop.conf.Configuration conf, + org.apache.hadoop.fs.Path workPath) + throws java.io.IOException+
+
conf
- the Configuration to useworkPath
- the HDFS working directory for this task.
+java.io.IOException
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +