Defines a generalized table mutator.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public interface ITableMutator : IDisposable
Public Interface ITableMutator _
	Inherits IDisposable
public interface class ITableMutator : IDisposable

Members

         
 All Members  Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Delete(String)
Deletes an entire row.
Delete(IEnumerable<(Of <<'(Cell>)>>))
Deletes multiple cells.
Delete(Key)
Deletes an entire row, a column family in a particular row, or a specific cell within a row.
Delete(IEnumerable<(Of <<'(Key>)>>))
Deletes multiple cells.
Dispose()()()()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
Flush()()()()
Flushes the accumulated mutations to their respective range servers.
IsDisposed
Gets a value indicating whether the object has been disposed.
Set(Cell)
Inserts a new cell into a table or delete cells.
Set(IEnumerable<(Of <<'(Cell>)>>))
Inserts multiple cells into a table a table or delete cells.
Set(Cell, Boolean)
Inserts a new cell into a table, optionally create row key.
Set(IEnumerable<(Of <<'(Cell>)>>), Boolean)
Inserts multiple cells into a table, optionally create row keys.
Set(Key, array<Byte>[]()[][])
Inserts a new cell into a table.
Set(Key, array<Byte>[]()[][], Boolean)
Inserts a new cell into a table, optionally create row key.

Examples

The following example shows how to insert a cell.
CopyC#
byte[] value = ...;
using( var mutator = table.CreateMutator() ) {
   Key key = new Key(Guid.NewGuid().ToString(), "cf");
   mutator.Set( key, value );
}
The following example shows how to insert a cell and create a unique row key.
CopyC#
byte[] value = ...;
using( var mutator = table.CreateMutator() ) {
   Key key = new Key() { ColumnFamily = "cf" }; // w'out row key
   mutator.Set( key, value, true ); // create row key and assign to key
}
The following example shows how to delete an entire row.
CopyC#
string row = ...;
using( var mutator = table.CreateMutator() ) {
   mutator.Delete( row );
}
The following example shows how to delete all cells in row, column family:column qualifier.
CopyC#
string row = ...;
using( var mutator = table.CreateMutator() ) {
   mutator.Delete( new Key(row, "cf", "cq") );
}
// or
var key = new Key( row, "cf", "cq" );
using( var mutator = table.CreateMutator() ) {
   mutator.Set( new Cell(key, CellFlag::DeleteCell) );
}

See Also