org.apache.hadoop.hbase.io
Class RowResult

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

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

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


Nested Class Summary
 class RowResult.Entry
          Row entry.
 
Constructor Summary
RowResult()
           
RowResult(byte[] row, HbaseMapWritable<byte[],Cell> m)
          Create a RowResult from a row and Cell map
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<byte[],Cell>> entrySet()
           
 Cell get(byte[] column)
          Get the Cell that corresponds to column
 Cell get(Object key)
           
 Cell get(String key)
          Get the Cell that corresponds to column, using a String key
 byte[] getRow()
          Get the row for this RowResult
 boolean isEmpty()
           
 Set<byte[]> keySet()
           
 Cell put(byte[] key, Cell value)
           
 void putAll(Map map)
           
 void readFields(DataInput in)
           
 Cell remove(Object key)
           
 int size()
           
 String toString()
           
 Collection<Cell> values()
           
 void write(DataOutput out)
           
 
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()

RowResult

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

Method Detail

getRow

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


put

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

putAll

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

get

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

remove

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

containsKey

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

containsValue

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

isEmpty

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

size

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

clear

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

keySet

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

entrySet

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

values

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

get

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


get

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


toString

public String toString()
Overrides:
toString in class Object

readFields

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

write

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


Copyright © 2008 The Apache Software Foundation