[
https://issues.apache.org/jira/browse/HBASE-1758?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
hongbin ma updated HBASE-1758:
------------------------------
Description:
As per discussions in Hackathon, we have extracted interface out of HTable and
named it as HTableInterface. This will make unit testing client code easier and
simplify client API.
It opens other possibilities such as creating a HTable that does not do any RPC
calls, MockHTable etc.
HTablePool still returns HTable instances. But we haxxve added a setter method
for HTableInterfaceFactory on it. Thus developers can write their own
HTableInterfaceFactory impl to return their own HTableInterface implementation.
I have assigned this issue to 0.21 but you may consider it to move it to 0.20
if possible.
was:
As per discussions in Hackathon, we have extracted interface out of HTable and
named it as HTableInterface. This will make unit testing client code easier and
simplify client API.
It opens other possibilities such as creating a HTable that does not do any RPC
calls, MockHTable etc.
HTablePool still returns HTable instances. But we have added a setter method
for HTableInterfaceFactory on it. Thus developers can write their own
HTableInterfaceFactory impl to return their own HTableInterface implementation.
I have assigned this issue to 0.21 but you may consider it to move it to 0.20
if possible.
> Extract interface out of HTable
> -------------------------------
>
> Key: HBASE-1758
> URL: https://issues.apache.org/jira/browse/HBASE-1758
> Project: HBase
> Issue Type: Improvement
> Components: Client
> Reporter: Vaibhav Puranik
> Fix For: 0.90.0
>
> Attachments: HTableInterface.patch, HTableInterface.patch,
> HTableinterface-deletes.patch, HTableinterface.patch
>
>
> As per discussions in Hackathon, we have extracted interface out of HTable
> and named it as HTableInterface. This will make unit testing client code
> easier and simplify client API.
> It opens other possibilities such as creating a HTable that does not do any
> RPC calls, MockHTable etc.
> HTablePool still returns HTable instances. But we haxxve added a setter
> method for HTableInterfaceFactory on it. Thus developers can write their own
> HTableInterfaceFactory impl to return their own HTableInterface
> implementation.
> I have assigned this issue to 0.21 but you may consider it to move it to 0.20
> if possible.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)