type is used to define the characteristics of a read operation. The characteristics of this read operation can be defined and modified by several WLanguage properties.
: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable
Connection is hbConnection
Connection.Server = "MyServer"
// Description of data to read
Reading is hbReading
Reading.Row = "post1"
Reading.Version = 2
// Column description
Col is hbColumn
Col.Family = "Post"
// Read data
MyResult is array of hbCells = hbRead(Connection, "blog", Reading)
// Display the data read
FOR EACH Cell OF MyResult DO
Trace("Column: " + Cell.Column.Qualifier + "; Value: " + ...
Cell.Value + "; timestamp: " + Cell.Timestamp)
Properties specific to hbReading variables
The following properties can be used to describe the read operation to perform:
|Property name||Type used||Effect|
|Column||Array of hbColumn||Description of columns to read. If the array is empty, the entire row is read.|
|EndTimestamp||DateTime||Maxmum date of versions to read (optional). Data with a date earlier than or equal to this date will be read.|
|Row||Buffer||Identifier of the row (record).|
|StartTimestamp||DateTime||Minimum date of versions to read (optional). If this property is specified, the EndTimestamp property must also be specified. Data with a date later than or equal to this date will be read.|
|Version||Integer||Minimum number of versions to read (optional).|
WLanguage functions that use the hbReading type
|hbRead||Reads cells (values of items) of a row (record) in an HBase table.|