Class CellModel

java.lang.Object
org.apache.hadoop.hbase.rest.model.CellModel
All Implemented Interfaces:
Serializable, ProtobufMessageHandler

@Private public class CellModel extends Object implements ProtobufMessageHandler, Serializable
Representation of a cell. A cell is a single value associated a column and optional qualifier, and either the timestamp when it was stored or the user- provided timestamp if one was explicitly supplied.
 <complexType name="Cell">
   <sequence>
     <element name="value" maxOccurs="1" minOccurs="1">
       <simpleType>
         <restriction base="base64Binary"/>
       </simpleType>
     </element>
   </sequence>
   <attribute name="column" type="base64Binary" />
   <attribute name="timestamp" type="int" />
 </complexType>
 
See Also:
  • Field Details

  • Constructor Details

    • CellModel

      public CellModel()
      Default constructor
    • CellModel

      public CellModel(byte[] column, byte[] value)
      Constructor
    • CellModel

      public CellModel(byte[] column, byte[] qualifier, byte[] value)
      Constructor
    • CellModel

      public CellModel(Cell cell)
      Constructor from KeyValue This avoids copying the value from the cell, and tries to optimize generating the column value.
    • CellModel

      public CellModel(byte[] column, long timestamp, byte[] value)
      Constructor
    • CellModel

      public CellModel(byte[] family, byte[] qualifier, long timestamp, byte[] value)
      Constructor
  • Method Details