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

java.lang.Object
  extended by org.apache.hadoop.hive.ql.io.RCFile.KeyBuffer
Enclosing class:
RCFile

public static class RCFile.KeyBuffer
extends Object

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 readFields(DataInput in)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RCFile.KeyBuffer

@Deprecated
public RCFile.KeyBuffer()
Deprecated. 

Method Detail

getColumnNumber

public int getColumnNumber()

readFields

public void readFields(DataInput in)
                throws IOException
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
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)

getEachColumnUncompressedValueLen

public int[] getEachColumnUncompressedValueLen()

getEachColumnValueLen

public int[] getEachColumnValueLen()

getNumberRows

public int getNumberRows()
Returns:
the numberRows


Copyright © 2012 The Apache Software Foundation