Represents a Hypertable table.

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

Syntax

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

Members

         
 All Members  Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
BeginScan(AsyncResult)
Creates a new asynchronous scanner on this table and attach it to the specified asynchronous result instance.
BeginScan(AsyncResult, AsyncScannerCallback)
Creates a new asynchronous scanner on this table and attach it to the specified asynchronous result instance.
BeginScan(AsyncResult, ScanSpec)
Creates a new asynchronous scanner on this table using the specified scanner specification and attach it to the specified asynchronous result instance.
BeginScan(AsyncResult, ScanSpec, AsyncScannerCallback)
Creates a new asynchronous scanner on this table using the specified scanner specification and attach it to the specified asynchronous result instance.
BeginScan(AsyncResult, ScanSpec, Object)
Creates a new asynchronous scanner on this table using the specified scanner specification and attach to the specified asynchronous result instance.
BeginScan(AsyncResult, ScanSpec, Object, AsyncScannerCallback)
Creates a new asynchronous scanner on this table using the specified scanner specification and attach to the specified asynchronous result instance.
CreateAsyncMutator(AsyncResult, MutatorSpec)
Creates a new asynchronous table mutator on this table using the specified mutator specification.
CreateMutator()()()()
Creates a new table mutator on this table.
CreateMutator(MutatorSpec)
Creates a new table mutator on this table using the specified mutator specification.
CreateScanner()()()()
Creates a new table scanner on this table.
CreateScanner(ScanSpec)
Creates a new table scanner on this table using the specified scanner specification.
Dispose()()()()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
GetTableSchema()()()()
Gets a table schema instance.
IsDisposed
Gets a value indicating whether the object has been disposed.
Name
Gets the table name.
Schema
Gets the table xml schema.

Examples

The following example shows how to create an asynchronous table mutator.
CopyC#
using( var mutator = table.CreateMutator(MutatorSpec.CreateAsync()) ) {
  // use mutator
}
The following example shows how to scan a few individual rows.
CopyC#
var scanSpec = new ScanSpec()
                   .AddRow("r1")
                   .AddRow("r2")
                   .AddRow("r3");

using( var scanner = table.CreateScanner(scanSpec) ) {
   foreach( var cell in scanner ) {
      // process cell
   }
}
The following example shows how to scan a single table asynchronously.
CopyC#
using( var asynResult = table.BeginScan(param,
   delegate( AsyncScannerContext asyncScannerContext, IList<Cell> cells ) {
      // process cells
      return true; // continue, return false to cancel
   }) ) {
   asynResult.Join();
}
The following example shows how to scan a multiple tables asynchronously.
CopyC#
using( var asynResult = new AsyncResult(
   delegate( AsyncScannerContext asyncScannerContext, IList<Cell> cells ) {
      // process cells
      return true; // continue, return false to cancel
   }) ) {
   tableA.BeginScan(new ScanSpec().AddColumn("a"), asynResult);
   tableB.BeginScan(new ScanSpec().AddColumn("b"), asynResult);
   asynResult.Join();
 }
The following example shows how to scan a multiple tables asynchronously using a blocking asynchronous result.
CopyC#
using( var asynResult = new BlockingAsyncResult() ) {
   tableA.BeginScan(asynResult);
   tableB.BeginScan(asynResult);
   AsyncScannerContext asyncScannerContext;
   IList<Cell> cells;
   while( asynResult.TryGetCells(out asyncScannerContext, out cells) ) {
      foreach( Cell cell in cells ) {
         // process cell
      }
   }
}

See Also