Provides a simple way to create a table scanner specification.

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

Syntax

         
 C#  Visual Basic  Visual C++ 
public static class ScanSpecBuilder
Public NotInheritable Class ScanSpecBuilder
public ref class ScanSpecBuilder abstract sealed

Members

      
 All Members  Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
Create()()()()
Initializes a new scan specification.
CreateOrdered()()()()
Initializes a new ordered scan specification.

Examples

The following example creates a scan specification for SELECT * FROM <table> WHERE ROW="r1" OR ROW="r2" OR ROW="xyz"
CopyC#
ScanSpec scanSpec = ScanSpecBuilder
   .Create()
      .WithColumns()
      .WithRows("r1", "r2", "xyz")
   .Build();
or with the column family specified, like SELECT cf1, cf2 FROM <table> WHERE ROW="r1" OR ROW="r2" OR ROW="xyz".
CopyC#
ScanSpec scanSpec = ScanSpecBuilder
   .Create()
      .WithColumns("cf1", "cf")
      .WithRows("r1", "r2", "xyz")
   .Build();

Inheritance Hierarchy

System..::..Object
  Hypertable..::..ScanSpecBuilder

See Also