org.apache.hadoop.hive.ql.io.rcfile.merge
Class RCFileKeyBufferWrapper

java.lang.Object
  extended by org.apache.hadoop.hive.ql.io.rcfile.merge.RCFileKeyBufferWrapper
All Implemented Interfaces:
Comparable<RCFileKeyBufferWrapper>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<RCFileKeyBufferWrapper>

public class RCFileKeyBufferWrapper
extends Object
implements org.apache.hadoop.io.WritableComparable<RCFileKeyBufferWrapper>


Field Summary
protected  org.apache.hadoop.io.compress.CompressionCodec codec
           
protected  int compressedKeyLength
           
protected  org.apache.hadoop.fs.Path inputPath
           
protected  RCFile.KeyBuffer keyBuffer
           
protected  int keyLength
           
protected  int recordLength
           
 
Constructor Summary
RCFileKeyBufferWrapper()
           
 
Method Summary
 int compareTo(RCFileKeyBufferWrapper o)
           
static RCFileKeyBufferWrapper create(RCFile.KeyBuffer currentKeyBufferObj)
           
 org.apache.hadoop.io.compress.CompressionCodec getCodec()
           
 int getCompressedKeyLength()
           
 org.apache.hadoop.fs.Path getInputPath()
           
 RCFile.KeyBuffer getKeyBuffer()
           
 int getKeyLength()
           
 int getRecordLength()
           
 void readFields(DataInput in)
           
 void setCodec(org.apache.hadoop.io.compress.CompressionCodec codec)
           
 void setCompressedKeyLength(int compressedKeyLength)
           
 void setInputPath(org.apache.hadoop.fs.Path inputPath)
           
 void setKeyBuffer(RCFile.KeyBuffer keyBuffer)
           
 void setKeyLength(int keyLength)
           
 void setRecordLength(int recordLength)
           
 void write(DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyBuffer

protected RCFile.KeyBuffer keyBuffer

recordLength

protected int recordLength

keyLength

protected int keyLength

compressedKeyLength

protected int compressedKeyLength

inputPath

protected org.apache.hadoop.fs.Path inputPath

codec

protected org.apache.hadoop.io.compress.CompressionCodec codec
Constructor Detail

RCFileKeyBufferWrapper

public RCFileKeyBufferWrapper()
Method Detail

create

public static RCFileKeyBufferWrapper create(RCFile.KeyBuffer currentKeyBufferObj)

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

compareTo

public int compareTo(RCFileKeyBufferWrapper o)
Specified by:
compareTo in interface Comparable<RCFileKeyBufferWrapper>

getKeyBuffer

public RCFile.KeyBuffer getKeyBuffer()

setKeyBuffer

public void setKeyBuffer(RCFile.KeyBuffer keyBuffer)

getRecordLength

public int getRecordLength()

setRecordLength

public void setRecordLength(int recordLength)

getKeyLength

public int getKeyLength()

setKeyLength

public void setKeyLength(int keyLength)

getCompressedKeyLength

public int getCompressedKeyLength()

setCompressedKeyLength

public void setCompressedKeyLength(int compressedKeyLength)

getInputPath

public org.apache.hadoop.fs.Path getInputPath()

setInputPath

public void setInputPath(org.apache.hadoop.fs.Path inputPath)

getCodec

public org.apache.hadoop.io.compress.CompressionCodec getCodec()

setCodec

public void setCodec(org.apache.hadoop.io.compress.CompressionCodec codec)


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