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 5CB62200D45 for ; Wed, 18 Oct 2017 17:16:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5B53A1609EE; Wed, 18 Oct 2017 15:16:02 +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 20895160BEB for ; Wed, 18 Oct 2017 17:15:59 +0200 (CEST) Received: (qmail 53940 invoked by uid 500); 18 Oct 2017 15:15:51 -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 50640 invoked by uid 99); 18 Oct 2017 15:15:49 -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; Wed, 18 Oct 2017 15:15:49 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0A570E0310; Wed, 18 Oct 2017 15:15:48 +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: Wed, 18 Oct 2017 15:16:35 -0000 Message-Id: <71bd3979586942eb9bc493031729d11c@git.apache.org> In-Reply-To: <017d86329de44177b278877b0bb2fa7a@git.apache.org> References: <017d86329de44177b278877b0bb2fa7a@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [50/51] [partial] hbase-site git commit: Published site at . archived-at: Wed, 18 Oct 2017 15:16:02 -0000 http://git-wip-us.apache.org/repos/asf/hbase-site/blob/ed0004f8/apidocs/org/apache/hadoop/hbase/CellUtil.html ---------------------------------------------------------------------- diff --git a/apidocs/org/apache/hadoop/hbase/CellUtil.html b/apidocs/org/apache/hadoop/hbase/CellUtil.html index 730b130..7c9ad66 100644 --- a/apidocs/org/apache/hadoop/hbase/CellUtil.html +++ b/apidocs/org/apache/hadoop/hbase/CellUtil.html @@ -18,7 +18,7 @@ catch(err) { } //--> -var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":41,"i17":41,"i18":41,"i19":41,"i20":41,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9,"i46":9,"i47":9,"i48":9,"i49":9,"i50":9,"i51":9,"i52":9,"i53":9,"i54":9,"i55":9,"i56":9,"i57":41,"i58":9,"i59":9,"i60":9,"i61":9,"i62":9,"i63":9,"i64":9,"i65":9,"i66":9,"i67":9,"i68":9,"i69":9,"i70":9,"i71":9,"i72":9,"i73":9,"i74":9,"i75":9,"i76":9,"i77":9,"i78":9,"i79":9,"i80":9,"i81":9,"i82":9,"i83":9,"i84":9,"i85":9,"i86":9,"i87":41,"i88":9,"i89":9,"i90":9,"i91":9,"i92":9,"i93":9,"i94":9,"i95":9,"i96":9,"i97":9,"i98":9,"i99":41,"i100":9,"i101":9,"i102":9,"i103":9,"i104":9,"i105":9,"i106":9,"i107":9,"i108":9,"i109":9,"i110":9,"i111":9,"i112":9,"i113":9,"i114":9,"i115":9}; +var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":41,"i22":41,"i23":41,"i24":41,"i25":41,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9,"i34":9,"i35":9,"i36":9,"i37":9,"i38":9,"i39":9,"i40":9,"i41":9,"i42":9,"i43":9,"i44":9,"i45":9,"i46":9,"i47":9,"i48":9,"i49":9,"i50":9,"i51":9,"i52":9,"i53":9,"i54":9,"i55":9,"i56":9,"i57":9,"i58":9,"i59":9,"i60":9,"i61":9,"i62":41,"i63":9,"i64":9,"i65":9,"i66":9,"i67":9,"i68":9,"i69":9,"i70":9,"i71":9,"i72":9,"i73":9,"i74":9,"i75":9,"i76":9,"i77":9,"i78":9,"i79":9,"i80":9,"i81":9,"i82":9,"i83":9,"i84":9,"i85":9,"i86":9,"i87":9,"i88":9,"i89":9,"i90":9,"i91":9,"i92":41,"i93":9,"i94":9,"i95":9,"i96":9,"i97":9,"i98":9,"i99":9,"i100":9,"i101":9,"i102":9,"i103":9,"i104":41,"i105":9,"i106":9,"i107":9,"i108":9,"i109":9,"i110":9,"i111":9,"i112":9,"i113":9,"i114":9,"i115":9,"i116":9,"i117":9,"i118":9,"i119":9,"i12 0":9}; var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -110,7 +110,7 @@ var activeTableTab = "activeTableTab";

@InterfaceAudience.Public
-public final class CellUtil
+public final class CellUtil
 extends Object
Utility methods helpful slinging Cell instances. Some methods below are for internal use only and are marked InterfaceAudience.Private at the @@ -157,35 +157,85 @@ extends static int +compare(org.apache.hadoop.hbase.CellComparator comparator, + Cell left, + byte[] key, + int offset, + int length) +
Used when a cell needs to be compared with a key byte[] such as cases of + finding the index from the index block, bloom keys from the bloom blocks + This byte[] is expected to be serialized in the KeyValue serialization format + If the KeyValue (Cell's) serialization format changes this method cannot be used.
+ + + +static int +compareColumns(Cell left, + byte[] right, + int rfoffset, + int rflength, + int rqoffset, + int rqlength) +
Compares the cell's column (family and qualifier) with the given byte[]
+ + + +static int +compareFamilies(Cell left, + byte[] right, + int roffset, + int rlength) +
Compares the cell's family with the given byte[]
+ + + +static int +compareKeyIgnoresMvcc(org.apache.hadoop.hbase.CellComparator comparator, + Cell left, + Cell right) +
Compares only the key portion of a cell.
+ + + +static int +compareQualifiers(Cell left, + byte[] right, + int rOffset, + int rLength) +
Compares the cell's qualifier with the given byte[]
+ + + +static int copyFamilyTo(Cell cell, byte[] destination, int destinationOffset)  - + static int copyFamilyTo(Cell cell, ByteBuffer destination, int destinationOffset)  - + static int copyQualifierTo(Cell cell, byte[] destination, int destinationOffset)  - + static int copyQualifierTo(Cell cell, ByteBuffer destination, int destinationOffset)  - + static byte[] copyRow(Cell cell)
Copies the row to a new byte[]
- + static int copyRowTo(Cell cell, byte[] destination, @@ -193,13 +243,13 @@ extends copyTo
- + static int copyRowTo(Cell cell, ByteBuffer destination, int destinationOffset)  - + static int copyTagTo(Cell cell, byte[] destination, @@ -207,25 +257,25 @@ extends Copies the tags info into the tag portion of the cell - + static int copyTagTo(Cell cell, ByteBuffer destination, int destinationOffset)  - + static int copyValueTo(Cell cell, byte[] destination, int destinationOffset)  - + static int copyValueTo(Cell cell, ByteBuffer destination, int destinationOffset)  - + static Cell createCell(byte[] row)
Deprecated.  @@ -234,7 +284,7 @@ extends + static Cell createCell(byte[] row, byte[] value) @@ -244,7 +294,7 @@ extends + static Cell createCell(byte[] row, byte[] family, @@ -255,7 +305,7 @@ extends + static Cell createCell(byte[] row, byte[] family, @@ -269,7 +319,7 @@ extends + static Cell createCell(byte[] rowArray, int rowOffset, @@ -286,45 +336,45 @@ extends + static Cell createCell(Cell cell, byte[] tags)  - + static Cell createCell(Cell cell, byte[] value, byte[] tags)  - + static Cell createCell(Cell cell, List<org.apache.hadoop.hbase.Tag> tags)  - + static org.apache.hadoop.hbase.CellScanner createCellScanner(Cell[] cellArray)  - + static org.apache.hadoop.hbase.CellScanner createCellScanner(Iterable<Cell> cellIterable)  - + static org.apache.hadoop.hbase.CellScanner createCellScanner(Iterator<Cell> cells)  - + static org.apache.hadoop.hbase.CellScanner createCellScanner(List<? extends org.apache.hadoop.hbase.CellScannable> cellScannerables)  - + static org.apache.hadoop.hbase.CellScanner createCellScanner(NavigableMap<byte[],List<Cell>> map)
Flatten the map of cells out under the CellScanner
- + static Cell createFirstDeleteFamilyCellOnRow(byte[] row, byte[] fam) @@ -333,29 +383,29 @@ extends + static Cell createFirstOnNextRow(Cell cell)
Create a Cell that is smaller than all other possible Cells for the given Cell row's next row.
- + static Cell createFirstOnRow(byte[] row)  - + static Cell createFirstOnRow(byte[] row, byte[] family, byte[] col)  - + static Cell createFirstOnRow(byte[] row, int roffset, short rlength)  - + static Cell createFirstOnRow(byte[] row, int roffset, @@ -367,19 +417,19 @@ extends + static Cell createFirstOnRow(Cell cell)
Create a Cell that is smaller than all other possible Cells for the given Cell's row.
- + static Cell createFirstOnRowCol(Cell cell)
Create a Cell that is smaller than all other possible Cells for the given Cell's row.
- + static Cell createFirstOnRowCol(Cell cell, byte[] qArray, @@ -389,102 +439,102 @@ extends + static Cell createFirstOnRowColTS(Cell cell, long ts)
Creates the first cell with the row/family/qualifier of this cell and the given timestamp.
- + static Cell createFirstOnRowFamily(Cell cell, byte[] fArray, int foff, int flen)  - + static Cell createLastOnRow(byte[] row)  - + static Cell createLastOnRow(Cell cell)
Create a Cell that is larger than all other possible Cells for the given Cell's row.
- + static Cell createLastOnRowCol(Cell cell)
Create a Cell that is larger than all other possible Cells for the given Cell's rk:cf:q.
- + static Cell deepClone(Cell cell)
Deep clones the given cell if the cell supports deep cloning
- + static boolean equals(Cell a, Cell b)
equals
- + static boolean equalsIgnoreMvccVersion(Cell a, Cell b)
special case for Cell.equals
- + static long estimatedHeapSizeOf(Cell cell)
This is an estimate of the heap space occupied by a cell.
- + static int estimatedSerializedSizeOf(Cell cell)
Estimate based on keyvalue's serialization format in the RPC layer.
- + static int estimatedSerializedSizeOfKey(Cell cell)
Calculates the serialized key size.
- + static ByteRange fillFamilyRange(Cell cell, ByteRange range)  - + static ByteRange fillQualifierRange(Cell cell, ByteRange range)  - + static ByteRange fillRowRange(Cell cell, ByteRange range)
ByteRange
- + static ByteRange fillTagRange(Cell cell, ByteRange range)  - + static ByteRange fillValueRange(Cell cell, ByteRange range)  - + static int findCommonPrefixInFlatKey(Cell c1, Cell c2, @@ -494,17 +544,17 @@ extends + static String getCellKeyAsString(Cell cell)  - + static byte[] getCellKeySerializedAsKeyValueKey(Cell cell)
This method exists just to encapsulate how we serialize keys.
- + static ByteBuffer getQualifierBufferShallowCopy(Cell cell)
Deprecated.  @@ -512,103 +562,103 @@ extends + static int getRowAsInt(Cell cell)
Converts the rowkey bytes of the given cell into an int value
- + static org.apache.hadoop.hbase.Tag getTag(Cell cell, byte type)
Retrieve Cell's first tag, matching the passed in type
- + static byte[] getTagArray(Cell cell)
Returns tag value in a new byte array.
- + static List<org.apache.hadoop.hbase.Tag> getTags(Cell cell)  - + static BigDecimal getValueAsBigDecimal(Cell cell)
Converts the value bytes of the given cell into a BigDecimal
- + static double getValueAsDouble(Cell cell)
Converts the value bytes of the given cell into a double value
- + static int getValueAsInt(Cell cell)
Converts the value bytes of the given cell into a int value
- + static long getValueAsLong(Cell cell)
Converts the value bytes of the given cell into a long value
- + static ByteBuffer getValueBufferShallowCopy(Cell cell)  - + static boolean isDelete(byte type)  - + static boolean isDelete(Cell cell)  - + static boolean isDeleteColumnOrFamily(Cell cell)  - + static boolean isDeleteColumns(Cell cell)  - + static boolean isDeleteColumnVersion(Cell cell)  - + static boolean isDeleteFamily(Cell cell)  - + static boolean isDeleteFamilyVersion(Cell cell)  - + static boolean isDeleteType(Cell cell)  - + static byte[] makeColumn(byte[] family, byte[] qualifier)
Makes a column in family:qualifier form from separate byte arrays.
- + static boolean matchingColumn(Cell left, byte[] fam, byte[] qual)  - + static boolean matchingColumn(Cell left, byte[] fam, @@ -618,29 +668,29 @@ extends + static boolean matchingColumn(Cell left, Cell right)  - + static boolean matchingFamily(Cell left, byte[] buf)  - + static boolean matchingFamily(Cell left, byte[] buf, int offset, int length)  - + static boolean matchingFamily(Cell left, Cell right)  - + static boolean matchingQualifier(Cell left, byte[] buf) @@ -648,7 +698,7 @@ extends + static boolean matchingQualifier(Cell left, byte[] buf, @@ -658,24 +708,24 @@ extends + static boolean matchingQualifier(Cell left, Cell right)  - + static boolean matchingRow(Cell left, byte[] buf)  - + static boolean matchingRow(Cell left, byte[] buf, int offset, int length)  - + static boolean matchingRow(Cell left, Cell right) @@ -685,48 +735,48 @@ extends + static boolean matchingRowColumn(Cell left, Cell right)
Compares the row and column of two keyvalues for equality
- + static boolean matchingRows(Cell left, Cell right)
Compares the row of two keyvalues for equality
- + static boolean matchingTimestamp(Cell a, Cell b)  - + static boolean matchingType(Cell a, Cell b)  - + static boolean matchingValue(Cell left, byte[] buf)  - + static boolean matchingValue(Cell left, Cell right)  - + static boolean matchingValue(Cell left, Cell right, int lvlength, int rvlength)  - + static boolean overlappingKeys(byte[] start1, byte[] end1, @@ -736,13 +786,13 @@ extends + static byte[][] parseColumn(byte[] c)
Splits a column in family:qualifier form into separate byte arrays.
- + static void setTimestamp(Cell cell, byte[] ts, @@ -750,14 +800,14 @@ extends Sets the given timestamp to the cell.
- + static void setTimestamp(Cell cell, long ts)
Sets the given timestamp to the cell.
- + static Iterator<org.apache.hadoop.hbase.Tag> tagsIterator(byte[] tags, int offset, @@ -768,20 +818,20 @@ extends + static Iterator<org.apache.hadoop.hbase.Tag> tagsIterator(Cell cell)
Util method to iterate through the tags in the given cell.
- + static String toString(Cell cell, boolean verbose)
Returns a string representation of the cell
- + static boolean updateLatestStamp(Cell cell, byte[] ts, @@ -790,7 +840,7 @@ extends HConstants.LATEST_TIMESTAMP.
- + static boolean updateLatestStamp(Cell cell, long ts) @@ -798,7 +848,7 @@ extends HConstants.LATEST_TIMESTAMP. - + static int writeCell(Cell cell, OutputStream out, @@ -806,7 +856,7 @@ extends Writes the cell to the given OutputStream - + static void writeCellToBuffer(Cell cell, ByteBuffer buf, @@ -814,7 +864,7 @@ extends Writes a cell to the buffer at the given offset - + static void writeFamily(OutputStream out, Cell cell, @@ -822,19 +872,19 @@ extends Writes the family from the given cell to the output stream - + static void writeFlatKey(Cell cell, DataOutput out)
Writes the Cell's key part as it would have serialized in a KeyValue.
- + static int writeFlatKey(Cell cell, OutputStream out)  - + static void writeQualifier(OutputStream out, Cell cell, @@ -842,7 +892,7 @@ extends Writes the qualifier from the given cell to the output stream - + static void writeQualifierSkippingBytes(DataOutputStream out, Cell cell, @@ -851,7 +901,7 @@ extends Writes the qualifier from the given cell to the output stream excluding the common prefix - + static void writeRow(OutputStream out, Cell cell, @@ -859,7 +909,7 @@ extends Writes the row from the given cell to the output stream - + static void writeRowKeyExcludingCommon(Cell cell, short rLen, @@ -868,7 +918,7 @@ extends Write rowkey excluding the common part. - + static void writeRowSkippingBytes(DataOutputStream out, Cell cell, @@ -877,7 +927,7 @@ extends Writes the row from the given cell to the output stream excluding the common prefix - + static void writeTags(OutputStream out, Cell cell, @@ -885,7 +935,7 @@ extends Writes the tag from the given cell to the output stream - + static void writeValue(OutputStream out, Cell cell, @@ -921,7 +971,7 @@ extends
  • fillRowRange

    -
    public static ByteRange fillRowRange(Cell cell,
    +
    public static ByteRange fillRowRange(Cell cell,
                                          ByteRange range)
    ByteRange
  • @@ -932,7 +982,7 @@ extends
  • fillFamilyRange

    -
    public static ByteRange fillFamilyRange(Cell cell,
    +
    public static ByteRange fillFamilyRange(Cell cell,
                                             ByteRange range)
  • @@ -942,7 +992,7 @@ extends
  • fillQualifierRange

    -
    public static ByteRange fillQualifierRange(Cell cell,
    +
    public static ByteRange fillQualifierRange(Cell cell,
                                                ByteRange range)
  • @@ -952,7 +1002,7 @@ extends
  • fillValueRange

    -
    public static ByteRange fillValueRange(Cell cell,
    +
    public static ByteRange fillValueRange(Cell cell,
                                            ByteRange range)
  • @@ -962,7 +1012,7 @@ extends
  • fillTagRange

    -
    public static ByteRange fillTagRange(Cell cell,
    +
    public static ByteRange fillTagRange(Cell cell,
                                          ByteRange range)
  • @@ -972,7 +1022,7 @@ extends
  • cloneRow

    -
    public static byte[] cloneRow(Cell cell)
    +
    public static byte[] cloneRow(Cell cell)
    get individual arrays for tests
  • @@ -982,7 +1032,7 @@ extends
  • cloneFamily

    -
    public static byte[] cloneFamily(Cell cell)
    +
    public static byte[] cloneFamily(Cell cell)
  • @@ -991,7 +1041,7 @@ extends
  • cloneQualifier

    -
    public static byte[] cloneQualifier(Cell cell)
    +
    public static byte[] cloneQualifier(Cell cell)
  • @@ -1000,7 +1050,7 @@ extends
  • cloneValue

    -
    public static byte[] cloneValue(Cell cell)
    +
    public static byte[] cloneValue(Cell cell)
  • @@ -1009,7 +1059,7 @@ extends
  • cloneTags

    -
    public static byte[] cloneTags(Cell cell)
    +
    public static byte[] cloneTags(Cell cell)
  • @@ -1018,7 +1068,7 @@ extends
  • getTagArray

    -
    public static byte[] getTagArray(Cell cell)
    +
    public static byte[] getTagArray(Cell cell)
    Returns tag value in a new byte array. If server-side, use Tag.getValueArray() with appropriate Tag.getValueOffset() and Tag.getValueLength() instead to save on allocations.
    @@ -1036,7 +1086,7 @@ extends
  • makeColumn

    -
    public static byte[] makeColumn(byte[] family,
    +
    public static byte[] makeColumn(byte[] family,
                                     byte[] qualifier)
    Makes a column in family:qualifier form from separate byte arrays.

    @@ -1056,7 +1106,7 @@ extends

  • parseColumn

    -
    public static byte[][] parseColumn(byte[] c)
    +
    public static byte[][] parseColumn(byte[] c)
    Splits a column in family:qualifier form into separate byte arrays. An empty qualifier (ie, fam:) is parsed as { fam, EMPTY_BYTE_ARRAY } while no delimiter (ie, fam) is parsed as an array of one element, { fam }. @@ -1080,7 +1130,7 @@ extends
  • copyRowTo

    -
    public static int copyRowTo(Cell cell,
    +
    public static int copyRowTo(Cell cell,
                                 byte[] destination,
                                 int destinationOffset)
    copyTo
    @@ -1092,7 +1142,7 @@ extends
  • copyRowTo

    -
    public static int copyRowTo(Cell cell,
    +
    public static&nb