You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Yechao Chen (JIRA)" <ji...@apache.org> on 2017/02/24 06:42:44 UTC
[jira] [Comment Edited] (HBASE-17689) hbase thrift2 THBaseservice
support table.existsAll
[ https://issues.apache.org/jira/browse/HBASE-17689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15882066#comment-15882066 ]
Yechao Chen edited comment on HBASE-17689 at 2/24/17 6:42 AM:
--------------------------------------------------------------
ThriftHBaseServiceHandler.java need add a method like
@Override
public List<Boolean> existsAll(ByteBuffer table, List<TGet> gets) throws TIOError, TException {
Table htable = getTable(table);
try {
boolean[] exists = htable.existsAll(getsFromThrift(gets));
List<Boolean> result = new ArrayList<>();
for (boolean exist : exists) {
result.add(exist);
}
return result;
} catch (IOException e) {
throw getTIOError(e);
} finally {
closeTable(htable);
}
}
was (Author: chenyechao):
ThriftHBaseServiceHandler.java add a method
@Override
public List<Boolean> existsAll(ByteBuffer table, List<TGet> gets) throws TIOError, TException {
Table htable = getTable(table);
try {
boolean[] exists = htable.existsAll(getsFromThrift(gets));
List<Boolean> result = new ArrayList<>();
for (boolean exist : exists) {
result.add(exist);
}
return result;
} catch (IOException e) {
throw getTIOError(e);
} finally {
closeTable(htable);
}
}
> hbase thrift2 THBaseservice support table.existsAll
> ---------------------------------------------------
>
> Key: HBASE-17689
> URL: https://issues.apache.org/jira/browse/HBASE-17689
> Project: HBase
> Issue Type: Improvement
> Components: Thrift
> Reporter: Yechao Chen
>
> hbase thrift2 support existsAll(List<Get> gets) throws IOException;
> hbase.thrift add a method to service THBaseService like this
> list<bool> existsAll(
> 1: required binary table,
> 2: required list<TGet> tgets
> ) throws (1:TIOError io)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)