溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

C#通過Thrift連接查詢HBase主要方法總結(jié)

發(fā)布時間:2020-07-22 08:37:40 來源:網(wǎng)絡(luò) 閱讀:842 作者:yc13515144207 欄目:關(guān)系型數(shù)據(jù)庫

1、get(byte[] tableName,byte[] row,byte[] column,Dictionary<byte[],byte[]> attribute)

   get方法可以查詢指定表名,行健以及列名對應(yīng)值的最新版本,方法返回值類型為List<TCell>


2、getRow(byte[] tableName,byte[] row,Dictionary<byte[],byte[]> attribute)

   getRow方法可以查詢指定表名,行健對應(yīng)所有列名的值的最新版本,方法返回值類型為         List<TRowresult>


3、getRows(byte[] tableName,List<byte[]> rows,Dictionary<byte[],byte[]> attribute)

   getRows方法可以查詢指定表名,多個行健對應(yīng)的所有列名的值的最新版本,方法返回值類型為     List<TRowresult>


4、getRowOrBefore(byte[] tableName,byte[] row,byte[] family)

   getRowOrBefore方法可以查詢指定表名,行健對應(yīng)所有列族中所有列的值的最新版本,方法返回值類型為   List<TCell>


5、getRowTs(byte[] tableName,byte[] row,long timestamp,Dictionary<byte[],byte[]> attribute)

   getRowTs方法可以查詢指定表名,行健以及指定時間戳之前版本對應(yīng)所有列名的值,方法返回值類型為List<TRowresult>


6、getRowsTs(byte[] tableName,byte[] row,long timestamp,Dictionary<byte[],byte[]> attribute)

   getRowsTs方法可以查詢指定表名,多個行健以及指定時間戳之前版本對應(yīng)所有列名的值,方法返回值類型為List<TRowresult>


7、getRowWithColumns(byte[] tableName,byte[] row,List<byte[]> columns,Dictionary<byte[],byte[]> attribute)

   getRowWithColumns方法可以查詢指定表名,行健以及多個列名對應(yīng)值的最新版本,方法返回值類型為List<TRowResult>


8、getRowsWithColumns(byte[] tableName,List<byte[]> rows,List<byte[]> columns,long timestamp,Dictionary<byte[],byte[]> attribute)

   getRowsWithColumns方法可以查詢指定表名,多個行健以及多個列名對應(yīng)值的最新版本,方法返回值類型為List<TRowResult>


9、getRowWithColumnsTs(byte[] tableName,byte[] row,List<byte[]> columns,Dictionary<byte[],byte[]> attribute)

   get方法可以查詢指定表名,行健、指定時間戳以及多個列名對應(yīng)的,方法返回值類型為List<TRowResult>


10、getRowsWithColumnsTs(byte[] tableName,List[byte] rows,List<byte[]> columns,Dictionary<byte[],byte[]> attribute)

   getRowsWithColumnsTs方法可以查詢指定表名,多個行健、指定時間戳以及多個列名對應(yīng)的,方法返回值類型為List<TRowResult>


11、getVer(byte[] tableName,byte[] row,byte[] column,int numVersions,Dictionary<byte[],byte[]> attribute)

   getVer方法可以查詢指定表名,行健、指定列名對應(yīng)的最新numVersions個版本的數(shù)據(jù),方法返回值類型為List<TCell>


12、getVer(byte[] tableName,byte[] row,byte[] column,long timestamp,int numVersions,Dictionary<byte[],byte[]> attribute)

   getVer方法可以查詢指定表名,行健、指定列名對應(yīng)的timestamp之前最近numVersions個版本的數(shù)據(jù),方法返回值類型為List<TCell>



向AI問一下細節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI