public class OptimizedLazyBinaryColumnarSerde
extends org.apache.hadoop.hive.serde2.columnar.LazyBinaryColumnarSerDe
LazyBinaryColumnarSerDe that avoids a call to
StringObjectInspector.getPrimitiveJavaObject() in serialize()
to check whether the string is empty (it calls getPrimitiveWritableObject()
instead). This improves CPU efficiency by avoiding turning the underlying bytes into
a Java String.| Constructor and Description |
|---|
OptimizedLazyBinaryColumnarSerde() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.io.Writable |
serialize(java.lang.Object obj,
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector objInspector) |
initialize, toStringdeserialize, getObjectInspector, getSerDeStats, getSerializedClass, initializepublic org.apache.hadoop.io.Writable serialize(java.lang.Object obj,
org.apache.hadoop.hive.serde2.objectinspector.ObjectInspector objInspector)
throws org.apache.hadoop.hive.serde2.SerDeException
serialize in interface org.apache.hadoop.hive.serde2.Serializerserialize in class org.apache.hadoop.hive.serde2.columnar.LazyBinaryColumnarSerDeorg.apache.hadoop.hive.serde2.SerDeExceptionCopyright © 2013-2019. All Rights Reserved.