org.apache.hadoop.hive.ql.io
Class RCFile.KeyBuffer

java.lang.Object
  extended by org.apache.hadoop.hive.ql.io.RCFile.KeyBuffer
All Implemented Interfaces:
Comparable, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable
Enclosing class:
RCFile

public static class RCFile.KeyBuffer
extends Object
implements org.apache.hadoop.io.WritableComparable

KeyBuffer is the key of each record in RCFile. Its on-disk layout is as below:


Constructor Summary
RCFile.KeyBuffer()
          Deprecated. 
 
Method Summary
 int compareTo(Object arg0)
           
 int getColumnNumber()
           
 int[] getEachColumnUncompressedValueLen()
           
 int[] getEachColumnValueLen()
           
 int getNumberRows()
           
 int getSize()
          get number of bytes to store the keyBuffer.
 void nullColumn(int columnIndex)
           
 void readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RCFile.KeyBuffer

@Deprecated
public RCFile.KeyBuffer()
Deprecated. 

Method Detail

getColumnNumber

public int getColumnNumber()

nullColumn

public void nullColumn(int columnIndex)

readFields

public void readFields(DataInput in)
                throws IOException
Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

getSize

public int getSize()
            throws IOException
get number of bytes to store the keyBuffer.

Returns:
number of bytes used to store this KeyBuffer on disk
Throws:
IOException

compareTo

public int compareTo(Object arg0)
Specified by:
compareTo in interface Comparable

getEachColumnUncompressedValueLen

public int[] getEachColumnUncompressedValueLen()

getEachColumnValueLen

public int[] getEachColumnValueLen()

getNumberRows

public int getNumberRows()
Returns:
the numberRows


Copyright © 2014 The Apache Software Foundation. All rights reserved.