|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.MetadataTypedColumnsetSerDe
public class MetadataTypedColumnsetSerDe
Field Summary | |
---|---|
static String |
defaultNullString
|
static String |
DefaultSeparator
|
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary | |
---|---|
MetadataTypedColumnsetSerDe()
|
Method Summary | |
---|---|
static Object |
deserialize(ColumnSet c,
String row,
String sep,
String nullString,
int limit)
Split the row into columns. |
Object |
deserialize(org.apache.hadoop.io.Writable field)
Deserialize an object out of a Writable blob. |
ObjectInspector |
getObjectInspector()
Get the object inspector that can be used to navigate through the internal structure of the Object returned from deserialize(...). |
Class<? extends org.apache.hadoop.io.Writable> |
getSerializedClass()
Returns the Writable class that would be returned by the serialize method. |
void |
initialize(org.apache.hadoop.conf.Configuration job,
Properties tbl)
Initialize the HiveDeserializer. |
org.apache.hadoop.io.Writable |
serialize(Object obj,
ObjectInspector objInspector)
Serialize an object by navigating inside the Object with the ObjectInspector. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final org.apache.commons.logging.Log LOG
public static final String DefaultSeparator
public static final String defaultNullString
Constructor Detail |
---|
public MetadataTypedColumnsetSerDe() throws SerDeException
SerDeException
Method Detail |
---|
public String toString()
toString
in class Object
public void initialize(org.apache.hadoop.conf.Configuration job, Properties tbl) throws SerDeException
Deserializer
initialize
in interface Deserializer
initialize
in interface Serializer
job
- System propertiestbl
- table properties
SerDeException
public static Object deserialize(ColumnSet c, String row, String sep, String nullString, int limit) throws Exception
limit
- up to limit columns will be produced (the last column takes all the rest), -1 for unlimited.
Exception
public Object deserialize(org.apache.hadoop.io.Writable field) throws SerDeException
Deserializer
deserialize
in interface Deserializer
field
- The Writable object containing a serialized object
SerDeException
public ObjectInspector getObjectInspector() throws SerDeException
Deserializer
getObjectInspector
in interface Deserializer
SerDeException
public Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
Serializer
getSerializedClass
in interface Serializer
public org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
Serializer
serialize
in interface Serializer
SerDeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |