Defines a generalized table scanner.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public interface ITableScanner : IEnumerable<Cell>, 
	IDisposable
Public Interface ITableScanner _
	Inherits IEnumerable(Of Cell), IDisposable
public interface class ITableScanner : IEnumerable<Cell^>, 
	IDisposable

Members

         
 All Members  Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Dispose()()()()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable.)
GetEnumerator()()()()
Returns an enumerator that iterates through the collection.
(Inherited from IEnumerable<(Of <(<'Cell>)>)>.)
IsDisposed
Gets a value indicating whether the object has been disposed.
Move(Cell)
Gets the next available cell using the specified cell instance.
Next(Cell%)
Gets the next available cell, creating a new cell instance.
ScanSpec
Gets the scan specification associated with this table scanner.

Examples

The following example shows how to scan all cells of a table.
CopyC#
using( var scanner = table.CreateScanner() ) {
   foreach( cell cell in scanner ) {
      // process cell
   }
}
// or
using( var scanner = table.CreateScanner() ) {
   Cell cell;
   while( scanner.Next(out cell) ) {
      // process cell
   }
}
The following example shows how to scan all cells of a table using a single cell instance.
CopyC#
using( var scanner = table.CreateScanner() ) {
   Cell cell = new Cell();
   while( scanner.Move(cell) ) {
      // process cell
   }
}

See Also