|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils
public class ObjectInspectorUtils
ObjectInspectorFactory is the primary way to create new ObjectInspector instances. SerDe classes should call the static functions in this library to create an ObjectInspector to return to the caller of SerDe2.getObjectInspector().
Nested Class Summary | |
---|---|
static class |
ObjectInspectorUtils.ObjectInspectorCopyOption
This enum controls how we copy primitive objects. |
Constructor Summary | |
---|---|
ObjectInspectorUtils()
|
Method Summary | |
---|---|
static int |
compare(Object[] o1,
ObjectInspector[] oi1,
Object[] o2,
ObjectInspector[] oi2)
Compare two arrays of objects with their respective arrays of ObjectInspectors. |
static int |
compare(Object o1,
ObjectInspector oi1,
Object o2,
ObjectInspector oi2)
Compare two objects with their respective ObjectInspectors. |
static Object |
copyToStandardObject(Object o,
ObjectInspector oi)
Returns a deep copy of the Object o that can be scanned by a StandardObjectInspector returned by getStandardObjectInspector(oi). |
static Object |
copyToStandardObject(Object o,
ObjectInspector oi,
ObjectInspectorUtils.ObjectInspectorCopyOption objectInspectorOption)
|
static Field[] |
getDeclaredNonStaticFields(Class<?> c)
Get all the declared non-static fields of Class c |
static String |
getFieldNames(StructObjectInspector soi)
Get the list of field names as csv from a StructObjectInspector. |
static String |
getFieldTypes(StructObjectInspector soi)
Get the list of field type as csv from a StructObjectInspector. |
static String |
getObjectInspectorName(ObjectInspector oi)
Get the class names of the ObjectInspector hierarchy. |
static ObjectInspector |
getStandardObjectInspector(ObjectInspector oi)
Get the corresponding standard ObjectInspector for an ObjectInspector. |
static ObjectInspector |
getStandardObjectInspector(ObjectInspector oi,
ObjectInspectorUtils.ObjectInspectorCopyOption objectInspectorOption)
|
static StructField |
getStandardStructFieldRef(String fieldName,
List<? extends StructField> fields)
|
static String |
getStandardStructTypeName(StructObjectInspector soi)
|
static int |
hashCode(Object o,
ObjectInspector objIns)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectInspectorUtils()
Method Detail |
---|
public static ObjectInspector getStandardObjectInspector(ObjectInspector oi)
public static ObjectInspector getStandardObjectInspector(ObjectInspector oi, ObjectInspectorUtils.ObjectInspectorCopyOption objectInspectorOption)
public static Object copyToStandardObject(Object o, ObjectInspector oi)
public static Object copyToStandardObject(Object o, ObjectInspector oi, ObjectInspectorUtils.ObjectInspectorCopyOption objectInspectorOption)
public static String getStandardStructTypeName(StructObjectInspector soi)
public static StructField getStandardStructFieldRef(String fieldName, List<? extends StructField> fields)
public static Field[] getDeclaredNonStaticFields(Class<?> c)
public static String getObjectInspectorName(ObjectInspector oi)
public static int hashCode(Object o, ObjectInspector objIns)
public static int compare(Object[] o1, ObjectInspector[] oi1, Object[] o2, ObjectInspector[] oi2)
public static int compare(Object o1, ObjectInspector oi1, Object o2, ObjectInspector oi2)
public static String getFieldNames(StructObjectInspector soi)
public static String getFieldTypes(StructObjectInspector soi)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |