Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 942F8200CB1 for ; Fri, 9 Jun 2017 19:33:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 92E23160BB6; Fri, 9 Jun 2017 17:33:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DC7AB160BCA for ; Fri, 9 Jun 2017 19:33:21 +0200 (CEST) Received: (qmail 69642 invoked by uid 500); 9 Jun 2017 17:33:20 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 69470 invoked by uid 99); 9 Jun 2017 17:33:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jun 2017 17:33:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 86195C0E4F for ; Fri, 9 Jun 2017 17:33:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 1OI2xoDWhPHK for ; Fri, 9 Jun 2017 17:33:19 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 757B15FC1C for ; Fri, 9 Jun 2017 17:33:19 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id D2A46E0D63 for ; Fri, 9 Jun 2017 17:33:18 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3878321E13 for ; Fri, 9 Jun 2017 17:33:18 +0000 (UTC) Date: Fri, 9 Jun 2017 17:33:18 +0000 (UTC) From: "Enis Soztutar (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-18174) Implement Table#checkAndPut() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 09 Jun 2017 17:33:22 -0000 [ https://issues.apache.org/jira/browse/HBASE-18174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16044737#comment-16044737 ] Enis Soztutar commented on HBASE-18174: --------------------------------------- - Can we do the version of checkAndPut that takes the compareOp? This version just delegates to the one that uses equals. We can keep both overloaded versions. {code} + folly::Future CheckAndPut(const std::string &row, const std::string &family, + const std::string &qualifier, const std::string &value, const hbase::Put &put); {code} - This should be named {{CheckAndPutToMutateRequest}}, because we will also do CheckAndMutate, CheckAndDelete, etc. {code} RequestConverter::CheckToMutateRequest {code} - Maybe name this {{ProcessedFromMutateResponse}}. {code} BoolFromMutateResponse {code} - These lines: {code} auto pb_msg = std::static_pointer_cast(checkReq->req_msg()); + pb::RegionSpecifier *region_specifier = pb_msg->mutable_region(); + region_specifier->set_type( + pb::RegionSpecifier_RegionSpecifierType::RegionSpecifier_RegionSpecifierType_REGION_NAME); + region_specifier->set_value(region_name); {code} should go inside the CheckToMutateRequest, no? > Implement Table#checkAndPut() > ----------------------------- > > Key: HBASE-18174 > URL: https://issues.apache.org/jira/browse/HBASE-18174 > Project: HBase > Issue Type: Sub-task > Reporter: Ted Yu > Attachments: 18174.v1.txt, 18174.v7.lambda.txt, 18174.v9.txt > > > This task is to implement Table#checkAndPut() method -- This message was sent by Atlassian JIRA (v6.3.15#6346)