org.apache.hadoop.hive.ql.io.parquet.writable
Class BinaryWritable
java.lang.Object
org.apache.hadoop.hive.ql.io.parquet.writable.BinaryWritable
- All Implemented Interfaces:
- org.apache.hadoop.io.Writable
- Direct Known Subclasses:
- BinaryWritable.DicBinaryWritable
public class BinaryWritable
- extends Object
- implements org.apache.hadoop.io.Writable
A Wrapper to support constructor with Binary and String
TODO : remove it, and call BytesWritable with the getBytes() in HIVE-6366
BinaryWritable
public BinaryWritable(parquet.io.api.Binary binary)
getBinary
public parquet.io.api.Binary getBinary()
getBytes
public byte[] getBytes()
getString
public String getString()
readFields
public void readFields(DataInput input)
throws IOException
- Specified by:
readFields
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
write
public void write(DataOutput output)
throws IOException
- Specified by:
write
in interface org.apache.hadoop.io.Writable
- Throws:
IOException
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2014 The Apache Software Foundation. All rights reserved.