|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
public class LazySimpleSerDe
LazySimpleSerDe can be used to read the same data format as MetadataTypedColumnsetSerDe and TCTLSeparatedProtocol. However, LazySimpleSerDe creates Objects in a lazy way, to provide better performance. Also LazySimpleSerDe outputs typed columns instead of treating all columns as String like MetadataTypedColumnsetSerDe.
Field Summary | |
---|---|
static byte[] |
DefaultSeparators
|
static org.apache.commons.logging.Log |
LOG
|
Constructor Summary | |
---|---|
LazySimpleSerDe()
|
Method Summary | |
---|---|
Object |
deserialize(org.apache.hadoop.io.Writable field)
Deserialize a row from the Writable to a LazyObject. |
ObjectInspector |
getObjectInspector()
Returns the ObjectInspector for the row. |
Class<? extends org.apache.hadoop.io.Writable> |
getSerializedClass()
Returns the Writable Class after serialization. |
void |
initialize(org.apache.hadoop.conf.Configuration job,
Properties tbl)
Initialize the SerDe given the parameters. |
org.apache.hadoop.io.Writable |
serialize(Object obj,
ObjectInspector objInspector)
Serialize a row of data. |
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 byte[] DefaultSeparators
Constructor Detail |
---|
public LazySimpleSerDe() 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
initialize
in interface Deserializer
initialize
in interface Serializer
job
- System propertiestbl
- table properties
SerDeException
Deserializer.initialize(Configuration, Properties)
public Object deserialize(org.apache.hadoop.io.Writable field) throws SerDeException
deserialize
in interface Deserializer
field
- the Writable that contains the data
SerDeException
Deserializer.deserialize(Writable)
public ObjectInspector getObjectInspector() throws SerDeException
getObjectInspector
in interface Deserializer
SerDeException
public Class<? extends org.apache.hadoop.io.Writable> getSerializedClass()
getSerializedClass
in interface Serializer
Serializer.getSerializedClass()
public org.apache.hadoop.io.Writable serialize(Object obj, ObjectInspector objInspector) throws SerDeException
serialize
in interface Serializer
obj
- The row objectobjInspector
- The ObjectInspector for the row object
SerDeException
Serializer.serialize(Object, ObjectInspector)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |