Skip to content

Commit d2fc035

Browse files
committed
OMID-275 Expose backing HBase Table from TTable
1 parent edc79fc commit d2fc035

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

  • hbase-client/src/main/java/org/apache/omid/transaction

hbase-client/src/main/java/org/apache/omid/transaction/TTable.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,17 @@ public ResultScanner getScanner(Transaction tx, Scan scan) throws IOException {
499499
return snapshotFilter.getScanner(tsscan, transaction);
500500
}
501501

502+
/**
503+
* Return the raw HBase table
504+
*
505+
* This is needed to resolve API incompatibilities between HBase 2 and 3 in Phoenix.
506+
*
507+
* @return the backing table
508+
*/
509+
public Table getHBaseTable() {
510+
return table;
511+
}
512+
502513
/**
503514
*
504515
* @return array of byte

0 commit comments

Comments
 (0)