hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yechao Chen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-17689) hbase thrift2 THBaseservice support table.existsAll
Date Fri, 24 Feb 2017 06:38:44 GMT

    [ https://issues.apache.org/jira/browse/HBASE-17689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15882066#comment-15882066
] 

Yechao Chen commented on HBASE-17689:
-------------------------------------

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)

Mime
View raw message