|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.SerDeUtils
public final class SerDeUtils
SerDeUtils.
Field Summary | |
---|---|
static char |
COLON
|
static char |
COMMA
|
static String |
LBRACE
|
static String |
LBRACKET
|
static org.apache.commons.logging.Log |
LOG
|
static char |
QUOTE
|
static String |
RBRACE
|
static String |
RBRACKET
|
Method Summary | |
---|---|
static String |
escapeString(String str)
Escape a String in JSON format. |
static String |
getJSONString(Object o,
ObjectInspector oi)
|
static String |
getJSONString(Object o,
ObjectInspector oi,
String nullStr)
Use this if you need to have custom representation of top level null . |
static boolean |
hasAnyNullObject(List o,
StructObjectInspector loi,
boolean[] nullSafes)
return false though element is null if nullsafe flag is true for that |
static boolean |
hasAnyNullObject(Object o,
ObjectInspector oi)
True if Object passed is representing null object. |
static String |
lightEscapeString(String str)
|
static Object |
toThriftPayload(Object val,
ObjectInspector valOI,
int version)
Convert a Object to a standard Java object in compliance with JDBC 3.0 (see JDBC 3.0 Specification, Table B-3: Mapping from JDBC Types to Java Object Types). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char QUOTE
public static final char COLON
public static final char COMMA
public static final String LBRACKET
public static final String RBRACKET
public static final String LBRACE
public static final String RBRACE
public static final org.apache.commons.logging.Log LOG
Method Detail |
---|
public static String escapeString(String str)
public static String lightEscapeString(String str)
public static Object toThriftPayload(Object val, ObjectInspector valOI, int version)
HiveResultSetMetaData#hiveTypeToSqlType
.
public static String getJSONString(Object o, ObjectInspector oi)
public static String getJSONString(Object o, ObjectInspector oi, String nullStr)
o
- Objectoi
- ObjectInspectornullStr
- The custom string used to represent null value
public static boolean hasAnyNullObject(List o, StructObjectInspector loi, boolean[] nullSafes)
public static boolean hasAnyNullObject(Object o, ObjectInspector oi)
o
- The objectoi
- The ObjectInspector
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |