org.apache.hadoop.hive.ql.io.parquet.writable
Class BinaryWritable

java.lang.Object
  extended by 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


Nested Class Summary
static class BinaryWritable.DicBinaryWritable
           
 
Constructor Summary
BinaryWritable(parquet.io.api.Binary binary)
           
 
Method Summary
 boolean equals(Object obj)
           
 parquet.io.api.Binary getBinary()
           
 byte[] getBytes()
           
 String getString()
           
 int hashCode()
           
 void readFields(DataInput input)
           
 void write(DataOutput output)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryWritable

public BinaryWritable(parquet.io.api.Binary binary)
Method Detail

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.