可以使用getTableSchema方法来确定一个指定的输入表的表模式。
HCatalog Data Type |
Java Class in MapReduce |
Values |
---|---|---|
ARRAY |
java.util.List |
values of one data type |
BIGINT |
java.lang.Long |
-(2^63) to (2^63)-1, which is -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 |
BINARY |
byte[] |
binary data |
BOOLEAN |
java.lang.Boolean |
true or false |
DECIMAL |
java.math.BigDecimal |
exact floating-point value with 38-digit precision |
DOUBLE |
java.lang.Double |
double-precision floating-point value |
FLOAT |
java.lang.Float |
single-precision floating-point value |
INT |
java.lang.Integer |
-(2^31) to (2^31)-1, which is -2,147,483,648 to 2,147,483,647 |
MAP |
java.util.Map |
key-value pairs |
SMALLINT |
java.lang.Short |
-(2^15) to (2^15)-1, which is -32,768 to 32,767 |
STRING |
java.lang.String |
character string |
STRUCT |
java.util.List |
structured data |
TINYINT |
java.lang.Byte |
-128 to 127 |