Get the App
SLTechnology News&Howtos  ›  Database  › 

Summary of the main methods of C # querying HBase through Thrift connection

Shulou Source: shulou.com Published: 2022-06-01 10:23:23 09月10日 Update

1. Get (byte [] tableName,byte [] row,byte [] column,Dictionary attribute)

The get method can query the latest version of the value corresponding to the specified table name, row key, and column name. The method returns a value of type List.

2. GetRow (byte [] tableName,byte [] row,Dictionary attribute)

The getRow method can query the specified table name. The row key corresponds to the latest version of the value of all column names. The method returns a value of type List.

3. GetRows (byte [] tableName,List rows,Dictionary attribute)

The getRows method can query the specified table name, the latest version of the value of all column names corresponding to multiple row keys, and the return value type is List.

4. GetRowOrBefore (byte [] tableName,byte [] row,byte [] family)

The getRowOrBefore method can query the specified table name. The row key corresponds to the latest version of the values of all columns in all column families. The method returns a value of type List.

5. GetRowTs (byte [] tableName,byte [] row,long timestamp,Dictionary attribute)

The getRowTs method can query the values of all column names corresponding to the specified table name, row key and version before the specified timestamp. The return value type of the method is List.

6. GetRowsTs (byte [] tableName,byte [] row,long timestamp,Dictionary attribute)

The getRowsTs method can query the values of all column names corresponding to the specified table name, multiple row keys and versions before the specified timestamp. The return value type of the method is List.

7. GetRowWithColumns (byte [] tableName,byte [] row,List columns,Dictionary attribute)

The getRowWithColumns method can query the latest version of the value corresponding to the specified table name, row key and multiple column names. The return value type of the method is List.

8. GetRowsWithColumns (byte [] tableName,List rows,List columns,long timestamp,Dictionary attribute)

The getRowsWithColumns method can query the latest version of the value corresponding to the specified table name, multiple row keys and multiple column names. The return value type of the method is List.

9. GetRowWithColumnsTs (byte [] tableName,byte [] row,List columns,Dictionary attribute)

The get method can query the specified table name, row key, specified timestamp and multiple column names. The return value type of the method is List.

10. GetRowsWithColumnsTs (byte [] tableName,List [byte] rows,List columns,Dictionary attribute)

The getRowsWithColumnsTs method can query the specified table name, multiple row keys, specified timestamps, and multiple column names. The return value type of the method is List.

11. GetVer (byte [] tableName,byte [] row,byte [] column,int numVersions,Dictionary attribute)

The getVer method can query the data of the latest numVersions versions corresponding to the specified table name, row key and specified column name. The method returns a value of type List.

12. GetVer (byte [] tableName,byte [] row,byte [] column,long timestamp,int numVersions,Dictionary attribute)

The getVer method can query the data of the most recent version of timestamp before the specified table name, row key, and specified column name. The method returns a value of type List.

Tags: Method query type version multiple time data C # Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft vpn Apple OPPO Reno Xiaomi