kafka.etl
Class KafkaETLKey

java.lang.Object
  extended by kafka.etl.KafkaETLKey
All Implemented Interfaces:
java.lang.Comparable<KafkaETLKey>, org.apache.hadoop.io.Writable, org.apache.hadoop.io.WritableComparable<KafkaETLKey>

public class KafkaETLKey
extends java.lang.Object
implements org.apache.hadoop.io.WritableComparable<KafkaETLKey>


Field Summary
protected  long _checksum
           
protected  int _inputIndex
           
protected  long _offset
           
 
Constructor Summary
KafkaETLKey()
          dummy empty constructor
KafkaETLKey(int index, long offset)
           
KafkaETLKey(int index, long offset, long checksum)
           
 
Method Summary
 int compareTo(KafkaETLKey o)
           
 long getChecksum()
           
 int getIndex()
           
 long getOffset()
           
 void readFields(java.io.DataInput in)
           
 void set(int index, long offset, long checksum)
           
 java.lang.String toString()
           
 void write(java.io.DataOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_inputIndex

protected int _inputIndex

_offset

protected long _offset

_checksum

protected long _checksum
Constructor Detail

KafkaETLKey

public KafkaETLKey()
dummy empty constructor


KafkaETLKey

public KafkaETLKey(int index,
                   long offset)

KafkaETLKey

public KafkaETLKey(int index,
                   long offset,
                   long checksum)
Method Detail

set

public void set(int index,
                long offset,
                long checksum)

getIndex

public int getIndex()

getOffset

public long getOffset()

getChecksum

public long getChecksum()

readFields

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

write

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

compareTo

public int compareTo(KafkaETLKey o)
Specified by:
compareTo in interface java.lang.Comparable<KafkaETLKey>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object