org.apache.hadoop.hbase.io
Class RowResult

java.lang.Object
  extended by org.apache.hadoop.hbase.io.RowResult
All Implemented Interfaces:
Comparable<RowResult>, Map<byte[],Cell>, SortedMap<byte[],Cell>, ISerializable, org.apache.hadoop.io.Writable

Deprecated. As of hbase 0.20.0, replaced by new Get/Put/Delete/Result-based API.

public class RowResult
extends Object
implements org.apache.hadoop.io.Writable, SortedMap<byte[],Cell>, Comparable<RowResult>, ISerializable

Holds row name and then a map of columns to cells.


Nested Class Summary
 class RowResult.Entry
          Deprecated. Row entry.
 
Constructor Summary
RowResult()
          Deprecated. default constructor for writable
RowResult(byte[] row, HbaseMapWritable<byte[],Cell> m)
          Deprecated. Create a RowResult from a row and Cell map
 
Method Summary
 void clear()
          Deprecated.  
 Comparator<? super byte[]> comparator()
          Deprecated.  
 int compareTo(RowResult o)
          Deprecated. Comparing this RowResult with another one by comparing the row in it.
 boolean containsKey(Object key)
          Deprecated.  
 boolean containsKey(String key)
          Deprecated. Check if the key can be found in this RowResult
 boolean containsValue(Object value)
          Deprecated.  
static RowResult createRowResult(List<KeyValue> results)
          Deprecated.  
static RowResult[] createRowResultArray(List<List<KeyValue>> l)
          Deprecated.  
 Set<Map.Entry<byte[],Cell>> entrySet()
          Deprecated.  
 byte[] firstKey()
          Deprecated.  
 Cell get(byte[] column)
          Deprecated. Get the Cell that corresponds to column
 Cell get(byte[] family, byte[] columnQualifier)
          Deprecated. Get a cell using seperate family, columnQualifier arguments.
 Cell get(Object key)
          Deprecated.  
 Cell get(String key)
          Deprecated. Get the Cell that corresponds to column, using a String key
 RestCell[] getCells()
          Deprecated. This method used solely for the REST serialization
 byte[] getRow()
          Deprecated. Get the row for this RowResult
 SortedMap<byte[],Cell> headMap(byte[] toKey)
          Deprecated.  
 boolean isEmpty()
          Deprecated.  
 Set<byte[]> keySet()
          Deprecated.  
 byte[] lastKey()
          Deprecated.  
 Cell put(byte[] key, Cell value)
          Deprecated.  
 void putAll(Map map)
          Deprecated.  
 void readFields(DataInput in)
          Deprecated.  
 Cell remove(Object key)
          Deprecated.  
 void restSerialize(IRestSerializer serializer)
          Deprecated. visitor pattern method where the object implementing this interface will call back on the IRestSerializer with the correct method to run to serialize the output of the object to the stream.
 int size()
          Deprecated.  
 SortedMap<byte[],Cell> subMap(byte[] fromKey, byte[] toKey)
          Deprecated.  
 SortedMap<byte[],Cell> tailMap(byte[] fromKey)
          Deprecated.  
 String toString()
          Deprecated.  
 Collection<Cell> values()
          Deprecated.  
 void write(DataOutput out)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

RowResult

public RowResult()
Deprecated. 
default constructor for writable


RowResult

public RowResult(byte[] row,
                 HbaseMapWritable<byte[],Cell> m)
Deprecated. 
Create a RowResult from a row and Cell map

Parameters:
row -
m -
Method Detail

getRow

public byte[] getRow()
Deprecated. 
Get the row for this RowResult

Returns:
the row

put

public Cell put(byte[] key,
                Cell value)
Deprecated. 
Specified by:
put in interface Map<byte[],Cell>

putAll

public void putAll(Map map)
Deprecated. 
Specified by:
putAll in interface Map<byte[],Cell>

get

public Cell get(Object key)
Deprecated. 
Specified by:
get in interface Map<byte[],Cell>

remove

public Cell remove(Object key)
Deprecated. 
Specified by:
remove in interface Map<byte[],Cell>

containsKey

public boolean containsKey(Object key)
Deprecated. 
Specified by:
containsKey in interface Map<byte[],Cell>

containsKey

public boolean containsKey(String key)
Deprecated. 
Check if the key can be found in this RowResult

Parameters:
key -
Returns:
true if key id found, false if not

containsValue

public boolean containsValue(Object value)
Deprecated. 
Specified by:
containsValue in interface Map<byte[],Cell>

isEmpty

public boolean isEmpty()
Deprecated. 
Specified by:
isEmpty in interface Map<byte[],Cell>

size

public int size()
Deprecated. 
Specified by:
size in interface Map<byte[],Cell>

clear

public void clear()
Deprecated. 
Specified by:
clear in interface Map<byte[],Cell>

keySet

public Set<byte[]> keySet()
Deprecated. 
Specified by:
keySet in interface Map<byte[],Cell>
Specified by:
keySet in interface SortedMap<byte[],Cell>

entrySet

public Set<Map.Entry<byte[],Cell>> entrySet()
Deprecated. 
Specified by:
entrySet in interface Map<byte[],Cell>
Specified by:
entrySet in interface SortedMap<byte[],Cell>

getCells

public RestCell[] getCells()
Deprecated. 
This method used solely for the REST serialization

Returns:
Cells

values

public Collection<Cell> values()
Deprecated. 
Specified by:
values in interface Map<byte[],Cell>
Specified by:
values in interface SortedMap<byte[],Cell>

get

public Cell get(byte[] column)
Deprecated. 
Get the Cell that corresponds to column

Parameters:
column -
Returns:
the Cell

get

public Cell get(String key)
Deprecated. 
Get the Cell that corresponds to column, using a String key

Parameters:
key -
Returns:
the Cell

get

public Cell get(byte[] family,
                byte[] columnQualifier)
Deprecated. 
Get a cell using seperate family, columnQualifier arguments.

Parameters:
family -
columnQualifier -
Returns:
The cell.

comparator

public Comparator<? super byte[]> comparator()
Deprecated. 
Specified by:
comparator in interface SortedMap<byte[],Cell>

firstKey

public byte[] firstKey()
Deprecated. 
Specified by:
firstKey in interface SortedMap<byte[],Cell>

headMap

public SortedMap<byte[],Cell> headMap(byte[] toKey)
Deprecated. 
Specified by:
headMap in interface SortedMap<byte[],Cell>

lastKey

public byte[] lastKey()
Deprecated. 
Specified by:
lastKey in interface SortedMap<byte[],Cell>

subMap

public SortedMap<byte[],Cell> subMap(byte[] fromKey,
                                     byte[] toKey)
Deprecated. 
Specified by:
subMap in interface SortedMap<byte[],Cell>

tailMap

public SortedMap<byte[],Cell> tailMap(byte[] fromKey)
Deprecated. 
Specified by:
tailMap in interface SortedMap<byte[],Cell>

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

restSerialize

public void restSerialize(IRestSerializer serializer)
                   throws HBaseRestException
Deprecated. 
Description copied from interface: ISerializable
visitor pattern method where the object implementing this interface will call back on the IRestSerializer with the correct method to run to serialize the output of the object to the stream.

Specified by:
restSerialize in interface ISerializable
Throws:
HBaseRestException

createRowResultArray

public static RowResult[] createRowResultArray(List<List<KeyValue>> l)
Deprecated. 
Parameters:
l -
Returns:
TODO: This is the glue between old way of doing things and the new. Herein we are converting our clean KeyValues to old RowResult.

createRowResult

public static RowResult createRowResult(List<KeyValue> results)
Deprecated. 
Parameters:
results -
Returns:
TODO: This is the glue between old way of doing things and the new. Herein we are converting our clean KeyValues to old RowResult.

readFields

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

write

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

compareTo

public int compareTo(RowResult o)
Deprecated. 
Comparing this RowResult with another one by comparing the row in it.

Specified by:
compareTo in interface Comparable<RowResult>
Parameters:
o - the RowResult Object to compare to
Returns:
the compare number


Copyright © 2009 The Apache Software Foundation