brickhouse.udf.json
Class InspectorHandle.StructHandle

java.lang.Object
  extended by brickhouse.udf.json.InspectorHandle.StructHandle
All Implemented Interfaces:
InspectorHandle
Enclosing interface:
InspectorHandle

public static class InspectorHandle.StructHandle
extends Object
implements InspectorHandle

If one passes a named-struct in, then one can parse arbitrary structures


Nested Class Summary
 
Nested classes/interfaces inherited from interface brickhouse.udf.json.InspectorHandle
InspectorHandle.InspectorHandleFactory, InspectorHandle.ListHandle, InspectorHandle.MapHandle, InspectorHandle.PrimitiveHandle, InspectorHandle.StructHandle
 
Constructor Summary
InspectorHandle.StructHandle(org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector structInspector)
           
 
Method Summary
 org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getReturnType()
           
 Object parseJson(org.codehaus.jackson.JsonNode jsonNode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InspectorHandle.StructHandle

public InspectorHandle.StructHandle(org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector structInspector)
                             throws org.apache.hadoop.hive.ql.exec.UDFArgumentException
Throws:
org.apache.hadoop.hive.ql.exec.UDFArgumentException
Method Detail

parseJson

public Object parseJson(org.codehaus.jackson.JsonNode jsonNode)
Specified by:
parseJson in interface InspectorHandle

getReturnType

public org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector getReturnType()
Specified by:
getReturnType in interface InspectorHandle


Copyright © 2013. All rights reserved.