org.apache.hadoop.hbase.io
Class KeyedDataArrayWritable

java.lang.Object
  extended by org.apache.hadoop.hbase.io.KeyedDataArrayWritable
All Implemented Interfaces:
Writable

public class KeyedDataArrayWritable
extends Object
implements Writable

Wraps an array of KeyedData items as a Writable. The array elements may be null.


Constructor Summary
KeyedDataArrayWritable()
          Make a record of length 0
 
Method Summary
 KeyedData[] get()
           
 void readFields(DataInput in)
          Reads the fields of this object from in.
 void set(KeyedData[] data)
          Sets the KeyedData array
 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

KeyedDataArrayWritable

public KeyedDataArrayWritable()
Make a record of length 0

Method Detail

get

public KeyedData[] get()
Returns:
the array of KeyedData

set

public void set(KeyedData[] data)
Sets the KeyedData array

Parameters:
data - array of KeyedData

readFields

public void readFields(DataInput in)
                throws IOException
Description copied from interface: Writable
Reads the fields of this object from in. For efficiency, implementations should attempt to re-use storage in the existing object where possible.

Specified by:
readFields in interface Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Description copied from interface: Writable
Writes the fields of this object to out.

Specified by:
write in interface Writable
Throws:
IOException


Copyright © 2006 The Apache Software Foundation