Represents a Hypertable cell, provide accessors to the cell attributes.

Namespace: Hypertable
Assembly: ht4n (in ht4n.dll) Version: 0.9.8.11 (0.9.8.11)

Syntax

         
 C#  Visual Basic  Visual C++ 
[SerializableAttribute]
public sealed class Cell
<SerializableAttribute> _
Public NotInheritable Class Cell
[SerializableAttribute]
public ref class Cell sealed

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Cell()()()()
Initializes a new instance of the Cell class.
Cell(Key)
Initializes a new instance of the Cell class using the specified cell key.
Cell(Key, CellFlag)
Initializes a new instance of the Cell class using the specified cell key and cell flag.
Cell(Key, array<Byte>[]()[][])
Initializes a new instance of the Cell class using the specified cell key and cell value.
Cell(Key, CellFlag, Boolean)
Initializes a new instance of the Cell class using the specified cell key and cell flag.
Cell(Key, array<Byte>[]()[][], CellFlag)
Initializes a new instance of the Cell class using the specified cell key, cell value and cell flag.
Cell(Key, array<Byte>[]()[][], Boolean)
Initializes a new instance of the Cell class using the specified cell key and cell value.
Cell(Key, array<Byte>[]()[][], CellFlag, Boolean)
Initializes a new instance of the Cell class using the specified cell key, cell value and cell flag.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Flag
Gets or sets the cell flag.
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
Key
Gets or sets the cell key.
ToString()()()()
Returns a string that represents the current object.
(Overrides Object..::..ToString()()()().)
Value
Gets or sets the cell value, might be null.

Remarks

Encapsulates cell key and cell value. The cell key identifies the location of the cell in a multi-dimensional table. See also architectural overview.

Examples

The following example shows how to iterate through all cells of a table using only one Cell instance.
CopyC#
using( var scanner = table.CreateScanner() ) {
   Cell cell = new Cell();
   while( scanner.Move(cell) ) {
      // process cell
   }
}
The following example shows how to use the cloneKey parameter.
CopyC#
Key key = new Key() { ColumnFamily = "cf" };
IList<Cell> cells = new List<Cell>();
for( int n = 0; n < 10; ++n ) {
   key.Row = Guid.NewGuid().ToString();
   cells.Add(new Cell(key, Encoding.UTF8.GetBytes(key.Row), true)); // creates a key clone
}

Inheritance Hierarchy

System..::..Object
  Hypertable..::..Cell

See Also