kafka.etl
Class KafkaETLKey
java.lang.Object
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>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_inputIndex
protected int _inputIndex
_offset
protected long _offset
_checksum
protected long _checksum
KafkaETLKey
public KafkaETLKey()
- dummy empty constructor
KafkaETLKey
public KafkaETLKey(int index,
long offset)
KafkaETLKey
public KafkaETLKey(int index,
long offset,
long checksum)
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