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 3F716200C7A for ; Wed, 12 Apr 2017 01:15:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3D306160B9E; Tue, 11 Apr 2017 23:15:07 +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 8DCB4160BAC for ; Wed, 12 Apr 2017 01:15:05 +0200 (CEST) Received: (qmail 70347 invoked by uid 500); 11 Apr 2017 23:15:03 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 69752 invoked by uid 99); 11 Apr 2017 23:15:03 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Apr 2017 23:15:03 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id EB4D8DFFD7; Tue, 11 Apr 2017 23:15:02 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: git-site-role@apache.org To: commits@hbase.apache.org Date: Tue, 11 Apr 2017 23:15:14 -0000 Message-Id: <21e376cbaab94101b61127b02f32770c@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [13/51] [partial] hbase-site git commit: Published site at 0b5bd78d6e7c51a5c1b6b30a1f385eafcdba8f7b. archived-at: Tue, 11 Apr 2017 23:15:07 -0000 http://git-wip-us.apache.org/repos/asf/hbase-site/blob/2dbdc486/apidocs/org/apache/hadoop/hbase/client/Append.html ---------------------------------------------------------------------- diff --git a/apidocs/org/apache/hadoop/hbase/client/Append.html b/apidocs/org/apache/hadoop/hbase/client/Append.html new file mode 100644 index 0000000..6a8918a --- /dev/null +++ b/apidocs/org/apache/hadoop/hbase/client/Append.html @@ -0,0 +1,683 @@ + + + + + + +Append (Apache HBase 2.0.0-SNAPSHOT API) + + + + + + + + + + + +
+
org.apache.hadoop.hbase.client
+

Class Append

+
+
+ +
+
    +
  • +
    +
    All Implemented Interfaces:
    +
    Comparable<Row>, org.apache.hadoop.hbase.CellScannable, Attributes, Row, org.apache.hadoop.hbase.io.HeapSize
    +
    +
    +
    +
    @InterfaceAudience.Public
    +public class Append
    +extends Mutation
    +
    Performs Append operations on a single row. +

    + Note that this operation does not appear atomic to readers. Appends are done + under a single row lock, so write operations to a row are synchronized, but + readers do not take row locks so get and scan operations can see this + operation partially completed. +

    + To append to a set of columns of a row, instantiate an Append object with the + row to append to. At least one column to append must be specified using the + add(byte[], byte[], byte[]) method.

    +
  • +
+
+
+ +
+
+
    +
  • + +
      +
    • + + +

      Constructor Detail

      + + + +
        +
      • +

        Append

        +
        public Append(byte[] row)
        +
        Create a Append operation for the specified row. +

        + At least one column must be appended to.

        +
        +
        Parameters:
        +
        row - row key; makes a local copy of passed in array.
        +
        +
      • +
      + + + +
        +
      • +

        Append

        +
        public Append(Append a)
        +
        Copy constructor
        +
        +
        Parameters:
        +
        a -
        +
        +
      • +
      + + + +
        +
      • +

        Append

        +
        public Append(byte[] rowArray,
        +              int rowOffset,
        +              int rowLength)
        +
        Create a Append operation for the specified row. +

        + At least one column must be appended to.

        +
        +
        Parameters:
        +
        rowArray - Makes a copy out of this buffer.
        +
        rowOffset -
        +
        rowLength -
        +
        +
      • +
      +
    • +
    + +
      +
    • + + +

      Method Detail

      + + + +
        +
      • +

        setReturnResults

        +
        public Append setReturnResults(boolean returnResults)
        +
        +
        Parameters:
        +
        returnResults - True (default) if the append operation should return the results. + A client that is not interested in the result can save network + bandwidth setting this to false.
        +
        +
      • +
      + + + +
        +
      • +

        isReturnResults

        +
        public boolean isReturnResults()
        +
        +
        Returns:
        +
        current setting for returnResults
        +
        +
      • +
      + + + +
        +
      • +

        add

        +
        public Append add(byte[] family,
        +                  byte[] qualifier,
        +                  byte[] value)
        +
        Add the specified column and value to this Append operation.
        +
        +
        Parameters:
        +
        family - family name
        +
        qualifier - column qualifier
        +
        value - value to append to specified column
        +
        Returns:
        +
        this
        +
        +
      • +
      + + + +
        +
      • +

        add

        +
        public Append add(Cell cell)
        +
        Add column and value to this Append operation.
        +
        +
        Parameters:
        +
        cell -
        +
        Returns:
        +
        This instance
        +
        +
      • +
      + + + +
        +
      • +

        setAttribute

        +
        public Append setAttribute(String name,
        +                           byte[] value)
        +
        Description copied from interface: Attributes
        +
        Sets an attribute. + In case value = null attribute is removed from the attributes map. + Attribute names starting with _ indicate system attributes.
        +
        +
        Specified by:
        +
        setAttribute in interface Attributes
        +
        Overrides:
        +
        setAttribute in class OperationWithAttributes
        +
        Parameters:
        +
        name - attribute name
        +
        value - attribute value
        +
        +
      • +
      + + + +
        +
      • +

        setId

        +
        public Append setId(String id)
        +
        Description copied from class: OperationWithAttributes
        +
        This method allows you to set an identifier on an operation. The original + motivation for this was to allow the identifier to be used in slow query + logging, but this could obviously be useful in other places. One use of + this could be to put a class.method identifier in here to see where the + slow query is coming from.
        +
        +
        Overrides:
        +
        setId in class OperationWithAttributes
        +
        Parameters:
        +
        id - id to set for the scan
        +
        +
      • +
      + + + + + + + + + + + +
        +
      • +

        setClusterIds

        +
        public Append setClusterIds(List<UUID> clusterIds)
        +
        Description copied from class: Mutation
        +
        Marks that the clusters with the given clusterIds have consumed the mutation
        +
        +
        Overrides:
        +
        setClusterIds in class Mutation
        +
        Parameters:
        +
        clusterIds - of the clusters that have consumed the mutation
        +
        +
      • +
      + + + +
        +
      • +

        setCellVisibility

        +
        public Append setCellVisibility(org.apache.hadoop.hbase.security.visibility.CellVisibility expression)
        +
        Description copied from class: Mutation
        +
        Sets the visibility expression associated with cells in this Mutation. + It is illegal to set CellVisibility on Delete mutation.
        +
        +
        Overrides:
        +
        setCellVisibility in class Mutation
        +
        +
      • +
      + + + +
        +
      • +

        setACL

        +
        public Append setACL(String user,
        +                     org.apache.hadoop.hbase.security.access.Permission perms)
        +
        +
        Overrides:
        +
        setACL in class Mutation
        +
        Parameters:
        +
        user - User short name
        +
        perms - Permissions for the user
        +
        +
      • +
      + + + +
        +
      • +

        setACL

        +
        public Append setACL(Map<String,org.apache.hadoop.hbase.security.access.Permission> perms)
        +
        +
        Overrides:
        +
        setACL in class Mutation
        +
        Parameters:
        +
        perms - A map of permissions for a user or users
        +
        +
      • +
      + + + +
        +
      • +

        setTTL

        +
        public Append setTTL(long ttl)
        +
        Description copied from class: Mutation
        +
        Set the TTL desired for the result of the mutation, in milliseconds.
        +
        +
        Overrides:
        +
        setTTL in class Mutation
        +
        Parameters:
        +
        ttl - the TTL desired for the result of the mutation, in milliseconds
        +
        Returns:
        +
        this
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + + + + +

Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.

+ +