org.elasticsearch.hadoop.hive
Class HiveValueWriter
java.lang.Object
org.elasticsearch.hadoop.hive.HiveValueWriter
- All Implemented Interfaces:
- org.elasticsearch.hadoop.serialization.builder.ValueWriter<HiveType>, org.elasticsearch.hadoop.serialization.SettingsAware
public class HiveValueWriter
- extends Object
- implements org.elasticsearch.hadoop.serialization.SettingsAware, org.elasticsearch.hadoop.serialization.builder.ValueWriter<HiveType>
Main value writer for hive. However since Hive expects a Writable type to be passed to the record reader,
the raw JSON data needs to be wrapped (and unwrapped by HiveBytesArrayWritable
).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HiveValueWriter
public HiveValueWriter()
write
public boolean write(HiveType type,
org.elasticsearch.hadoop.serialization.Generator generator)
- Specified by:
write
in interface org.elasticsearch.hadoop.serialization.builder.ValueWriter<HiveType>
handleUnknown
protected boolean handleUnknown(Object value,
ObjectInspector oi,
org.elasticsearch.hadoop.serialization.Generator generator)
setSettings
public void setSettings(Settings settings)
- Specified by:
setSettings
in interface org.elasticsearch.hadoop.serialization.SettingsAware