|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.io.KeyedData
public class KeyedData
KeyedData is just a data pair. It includes an HStoreKey and some associated data.
Constructor Summary | |
---|---|
KeyedData()
Default constructor. |
|
KeyedData(HStoreKey key,
byte[] data)
Create a KeyedData object specifying the parts |
Method Summary | |
---|---|
byte[] |
getData()
|
HStoreKey |
getKey()
|
void |
readFields(DataInput in)
Reads the fields of this object from in . |
void |
write(DataOutput out)
Writes the fields of this object to out . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyedData()
public KeyedData(HStoreKey key, byte[] data)
key
- HStoreKeydata
- Method Detail |
---|
public HStoreKey getKey()
public byte[] getData()
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
IOException
public void readFields(DataInput in) throws IOException
Writable
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields
in interface Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |