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 5A5702004F5 for ; Fri, 1 Sep 2017 17:13:58 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 55A9B16D3C3; Fri, 1 Sep 2017 15:13:58 +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 A69C016D3BA for ; Fri, 1 Sep 2017 17:13:55 +0200 (CEST) Received: (qmail 9345 invoked by uid 500); 1 Sep 2017 15:13:54 -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 8679 invoked by uid 99); 1 Sep 2017 15:13:53 -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; Fri, 01 Sep 2017 15:13:53 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0863CF563D; Fri, 1 Sep 2017 15:13:52 +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: Fri, 01 Sep 2017 15:14:03 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [12/51] [partial] hbase-site git commit: Published site at . archived-at: Fri, 01 Sep 2017 15:13:58 -0000 http://git-wip-us.apache.org/repos/asf/hbase-site/blob/7ebe345d/devapidocs/org/apache/hadoop/hbase/util/Bytes.html ---------------------------------------------------------------------- diff --git a/devapidocs/org/apache/hadoop/hbase/util/Bytes.html b/devapidocs/org/apache/hadoop/hbase/util/Bytes.html index 3868644..b4d863b 100644 --- a/devapidocs/org/apache/hadoop/hbase/util/Bytes.html +++ b/devapidocs/org/apache/hadoop/hbase/util/Bytes.html @@ -1527,7 +1527,7 @@ implements
  • RNG

    -
    private static final SecureRandom RNG
    +
    private static final SecureRandom RNG
  • @@ -1536,7 +1536,7 @@ implements
  • HEX_CHARS

    -
    private static final char[] HEX_CHARS
    +
    private static final char[] HEX_CHARS
  • @@ -3095,7 +3095,7 @@ public static long 
  • equals

    -
    public static boolean equals(byte[] left,
    +
    public static boolean equals(byte[] left,
                                  byte[] right)
    Parameters:
    @@ -3112,7 +3112,7 @@ public static long 
  • equals

    -
    public static boolean equals(byte[] left,
    +
    public static boolean equals(byte[] left,
                                  int leftOffset,
                                  int leftLen,
                                  byte[] right,
    @@ -3126,7 +3126,7 @@ public static long 
     
  • equals

    -
    public static boolean equals(byte[] a,
    +
    public static boolean equals(byte[] a,
                                  ByteBuffer buf)
    Parameters:
    @@ -3143,7 +3143,7 @@ public static long 
  • startsWith

    -
    public static boolean startsWith(byte[] bytes,
    +
    public static boolean startsWith(byte[] bytes,
                                      byte[] prefix)
    Return true if the byte array on the right is a prefix of the byte array on the left.
    @@ -3155,7 +3155,7 @@ public static long 
  • hashCode

    -
    public static int hashCode(byte[] b)
    +
    public static int hashCode(byte[] b)
    Parameters:
    b - bytes to hash
    @@ -3172,7 +3172,7 @@ public static long 
  • hashCode

    -
    public static int hashCode(byte[] b,
    +
    public static int hashCode(byte[] b,
                                int length)
    Parameters:
    @@ -3191,7 +3191,7 @@ public static long 
  • mapKey

    -
    public static Integer mapKey(byte[] b)
    +
    public static Integer mapKey(byte[] b)
    Parameters:
    b - bytes to hash
    @@ -3207,7 +3207,7 @@ public static long 
  • mapKey

    -
    public static Integer mapKey(byte[] b,
    +
    public static Integer mapKey(byte[] b,
                                  int length)
    Parameters:
    @@ -3225,7 +3225,7 @@ public static long 
  • add

    -
    public static byte[] add(byte[] a,
    +
    public static byte[] add(byte[] a,
                              byte[] b)
    Parameters:
    @@ -3242,7 +3242,7 @@ public static long 
  • add

    -
    public static byte[] add(byte[] a,
    +
    public static byte[] add(byte[] a,
                              byte[] b,
                              byte[] c)
    @@ -3261,7 +3261,7 @@ public static long 
  • add

    -
    public static byte[] add(byte[][] arrays)
    +
    public static byte[] add(byte[][] arrays)
    Parameters:
    arrays - all the arrays to concatenate together.
    @@ -3276,7 +3276,7 @@ public static long 
  • head

    -
    public static byte[] head(byte[] a,
    +
    public static byte[] head(byte[] a,
                               int length)
    Parameters:
    @@ -3293,7 +3293,7 @@ public static long 
  • tail

    -
    public static byte[] tail(byte[] a,
    +
    public static byte[] tail(byte[] a,
                               int length)
    Parameters:
    @@ -3310,7 +3310,7 @@ public static long 
  • padHead

    -
    public static byte[] padHead(byte[] a,
    +
    public static byte[] padHead(byte[] a,
                                  int length)
    Parameters:
    @@ -3327,7 +3327,7 @@ public static long 
  • padTail

    -
    public static byte[] padTail(byte[] a,
    +
    public static byte[] padTail(byte[] a,
                                  int length)
    Parameters:
    @@ -3344,7 +3344,7 @@ public static long 
  • split

    -
    public static byte[][] split(byte[] a,
    +
    public static byte[][] split(byte[] a,
                                  byte[] b,
                                  int num)
    Split passed range. Expensive operation relatively. Uses BigInteger math. @@ -3366,7 +3366,7 @@ public static long 
  • split

    -
    public static byte[][] split(byte[] a,
    +
    public static byte[][] split(byte[] a,
                                  byte[] b,
                                  boolean inclusive,
                                  int num)
    @@ -3392,7 +3392,7 @@ public static long 
  • iterateOnSplits

    -
    public static Iterable<byte[]> iterateOnSplits(byte[] a,
    +
    public static Iterable<byte[]> iterateOnSplits(byte[] a,
                                                    byte[] b,
                                                    int num)
    Iterate over keys within the passed range, splitting at an [a,b) boundary.
    @@ -3404,7 +3404,7 @@ public static long 
  • iterateOnSplits

    -
    public static Iterable<byte[]> iterateOnSplits(byte[] a,
    +
    public static Iterable<byte[]> iterateOnSplits(byte[] a,
                                                    byte[] b,
                                                    boolean inclusive,
                                                    int num)
    @@ -3417,7 +3417,7 @@ public static long 
  • hashCode

    -
    public static int hashCode(byte[] bytes,
    +
    public static int hashCode(byte[] bytes,
                                int offset,
                                int length)
    @@ -3434,7 +3434,7 @@ public static long 
  • toByteArrays

    -
    public static byte[][] toByteArrays(String[] t)
    +
    public static byte[][] toByteArrays(String[] t)
    Parameters:
    t - operands
    @@ -3449,7 +3449,7 @@ public static long 
  • toBinaryByteArrays

    -
    public static byte[][] toBinaryByteArrays(String[] t)
    +
    public static byte[][] toBinaryByteArrays(String[] t)
    Parameters:
    t - operands
    @@ -3464,7 +3464,7 @@ public static long 
  • toByteArrays

    -
    public static byte[][] toByteArrays(String column)
    +
    public static byte[][] toByteArrays(String column)
    Parameters:
    column - operand
    @@ -3480,7 +3480,7 @@ public static long 
  • toByteArrays

    -
    public static byte[][] toByteArrays(byte[] column)
    +
    public static byte[][] toByteArrays(byte[] column)
    Parameters:
    column - operand
    @@ -3497,7 +3497,7 @@ public static long 

    binarySearch

    @Deprecated
    -public static int binarySearch(byte[][] arr,
    +public static int binarySearch(byte[][] arr,
                                                byte[] key,
                                                int offset,
                                                int length,
    @@ -3527,7 +3527,7 @@ public static int 
     
  • binarySearch

    -
    public static int binarySearch(byte[][] arr,
    +
    public static int binarySearch(byte[][] arr,
                                    byte[] key,
                                    int offset,
                                    int length)
    @@ -3555,7 +3555,7 @@ public static int 

    binarySearch

    @Deprecated
    -public static int binarySearch(byte[][] arr,
    +public static int binarySearch(byte[][] arr,
                                                Cell key,
                                                org.apache.hadoop.io.RawComparator<Cell> comparator)
    @@ -3581,7 +3581,7 @@ public static int 
  • binarySearch

    -
    public static int binarySearch(Cell[] arr,
    +
    public static int binarySearch(Cell[] arr,
                                    Cell key,
                                    CellComparator comparator)
    Binary search for keys in indexes.
    @@ -3606,7 +3606,7 @@ public static int 
  • incrementBytes

    -
    public static byte[] incrementBytes(byte[] value,
    +
    public static byte[] incrementBytes(byte[] value,
                                         long amount)
    Bytewise binary increment/deincrement of long contained in byte array on given amount.
    @@ -3625,7 +3625,7 @@ public static int 
  • binaryIncrementPos

    -
    private static byte[] binaryIncrementPos(byte[] value,
    +
    private static byte[] binaryIncrementPos(byte[] value,
                                              long amount)
  • @@ -3635,7 +3635,7 @@ public static int 
  • binaryIncrementNeg

    -
    private static byte[] binaryIncrementNeg(byte[] value,
    +
    private static byte[] binaryIncrementNeg(byte[] value,
                                              long amount)
  • @@ -3645,7 +3645,7 @@ public static int 
  • writeStringFixedSize

    -
    public static void writeStringFixedSize(DataOutput out,
    +
    public static void writeStringFixedSize(DataOutput out,
                                             String s,
                                             int size)
                                      throws IOException
    @@ -3662,7 +3662,7 @@ public static int 
  • readStringFixedSize

    -
    public static String readStringFixedSize(DataInput in,
    +
    public static String readStringFixedSize(DataInput in,
                                              int size)
                                       throws IOException
    Reads a fixed-size field and interprets it as a string padded with zeros.
    @@ -3678,7 +3678,7 @@ public static int 
  • copy

    -
    public static byte[] copy(byte[] bytes)
    +
    public static byte[] copy(byte[] bytes)
    Copy the byte array given in parameter and return an instance of a new byte array with the same length and the same content.
    @@ -3695,7 +3695,7 @@ public static int 
  • copy

    -
    public static byte[] copy(byte[] bytes,
    +
    public static byte[] copy(byte[] bytes,
                               int offset,
                               int length)
    Copy the byte array given in parameter and return an instance @@ -3716,7 +3716,7 @@ public static int 
  • unsignedBinarySearch

    -
    public static int unsignedBinarySearch(byte[] a,
    +
    public static int unsignedBinarySearch(byte[] a,
                                            int fromIndex,
                                            int toIndex,
                                            byte key)
    @@ -3740,7 +3740,7 @@ public static int 
  • unsignedCopyAndIncrement

    -
    public static byte[] unsignedCopyAndIncrement(byte[] input)
    +
    public static byte[] unsignedCopyAndIncrement(byte[] input)
    Treat the byte[] as an unsigned series of bytes, most significant bits first. Start by adding 1 to the rightmost bit/byte and carry over all overflows to the more significant bits/bytes.
    @@ -3757,7 +3757,7 @@ public static int 
  • equals

    -
    public static boolean equals(List<byte[]> a,
    +
    public static boolean equals(List<byte[]> a,
                                  List<byte[]> b)
  • @@ -3767,7 +3767,7 @@ public static int 
  • isSorted

    -
    public static boolean isSorted(Collection<byte[]> arrays)
    +
    public static boolean isSorted(Collection<byte[]> arrays)
  • @@ -3776,7 +3776,7 @@ public static int 
  • getUtf8ByteArrays

    -
    public static List<byte[]> getUtf8ByteArrays(List<String> strings)
    +
    public static List<byte[]> getUtf8ByteArrays(List<String> strings)
  • @@ -3785,7 +3785,7 @@ public static int 
  • indexOf

    -
    public static int indexOf(byte[] array,
    +
    public static int indexOf(byte[] array,
                               byte target)
    Returns the index of the first appearance of the value target in array.
    @@ -3805,7 +3805,7 @@ public static int 
  • indexOf

    -
    public static int indexOf(byte[] array,
    +
    public static int indexOf(byte[] array,
                               byte[] target)
    Returns the start position of the first occurrence of the specified target within array, or -1 if there is no such occurrence. @@ -3824,7 +3824,7 @@ public static int 
  • contains

    -
    public static boolean contains(byte[] array,
    +
    public static boolean contains(byte[] array,
                                    byte target)
    Parameters:
    @@ -3841,7 +3841,7 @@ public static int 
  • contains

    -
    public static boolean contains(byte[] array,
    +
    public static boolean contains(byte[] array,
                                    byte[] target)
    Parameters:
    @@ -3858,7 +3858,7 @@ public static int 
  • zero

    -
    public static void zero(byte[] b)
    +
    public static void zero(byte[] b)
    Fill given array with zeros.
    Parameters:
    @@ -3872,7 +3872,7 @@ public static int 
  • zero

    -
    public static void zero(byte[] b,
    +
    public static void zero(byte[] b,
                             int offset,
                             int length)
    Fill given array with zeros at the specified position.
    @@ -3890,7 +3890,7 @@ public static int 
  • random

    -
    public static void random(byte[] b)
    +
    public static void random(byte[] b)
    Fill given array with random bytes.
    Parameters:
    @@ -3904,7 +3904,7 @@ public static int 
  • random

    -
    public static void random(byte[] b,
    +
    public static void random(byte[] b,
                               int offset,
                               int length)
    Fill given array with random bytes at the specified position.
    @@ -3922,7 +3922,7 @@ public static int 
  • createMaxByteArray

    -
    public static byte[] createMaxByteArray(int maxByteCount)
    +
    public static byte[] createMaxByteArray(int maxByteCount)
    Create a max byte array with the specified max byte count
    Parameters:
    @@ -3938,7 +3938,7 @@ public static int 
  • multiple

    -
    public static byte[] multiple(byte[] srcBytes,
    +
    public static byte[] multiple(byte[] srcBytes,
                                   int multiNum)
    Create a byte array which is multiple given bytes
    @@ -3956,7 +3956,7 @@ public static int 
  • toHex

    -
    public static String toHex(byte[] b,
    +
    public static String toHex(byte[] b,
                                int offset,
                                int length)
    Convert a byte range into a hex string
    @@ -3968,7 +3968,7 @@ public static int 
  • toHex

    -
    public static String toHex(byte[] b)
    +
    public static String toHex(byte[] b)
    Convert a byte array into a hex string
  • @@ -3978,7 +3978,7 @@ public static int 
  • hexCharToNibble

    -
    private static int hexCharToNibble(char ch)
    +
    private static int hexCharToNibble(char ch)
  • @@ -3987,7 +3987,7 @@ public static int 
  • hexCharsToByte

    -
    private static byte hexCharsToByte(char c1,
    +
    private static byte hexCharsToByte(char c1,
                                        char c2)
  • @@ -3997,7 +3997,7 @@ public static int 
  • fromHex

    -
    public static byte[] fromHex(String hex)
    +
    public static byte[] fromHex(String hex)
    Create a byte array from a string of hash digits. The length of the string must be a multiple of 2
    @@ -4012,7 +4012,7 @@ public static int 
  • searchDelimiterIndex

    -
    public static int searchDelimiterIndex(byte[] b,
    +
    public static int searchDelimiterIndex(byte[] b,
                                            int offset,
                                            int length,
                                            int delimiter)
    @@ -4031,7 +4031,7 @@ public static int 
  • searchDelimiterIndexInReverse

    -
    public static int searchDelimiterIndexInReverse(byte[] b,
    +
    public static int searchDelimiterIndexInReverse(byte[] b,
                                                     int offset,
                                                     int length,
                                                     int delimiter)
    @@ -4051,7 +4051,7 @@ public static int 
  • findCommonPrefix

    -
    public static int findCommonPrefix(byte[] left,
    +
    public static int findCommonPrefix(byte[] left,
                                        byte[] right,
                                        int leftLength,
                                        int rightLength,
    
    http://git-wip-us.apache.org/repos/asf/hbase-site/blob/7ebe345d/devapidocs/org/apache/hadoop/hbase/util/package-tree.html
    ----------------------------------------------------------------------
    diff --git a/devapidocs/org/apache/hadoop/hbase/util/package-tree.html b/devapidocs/org/apache/hadoop/hbase/util/package-tree.html
    index 44a7e41..da407ad 100644
    --- a/devapidocs/org/apache/hadoop/hbase/util/package-tree.html
    +++ b/devapidocs/org/apache/hadoop/hbase/util/package-tree.html
    @@ -521,14 +521,14 @@
     
    
    http://git-wip-us.apache.org/repos/asf/hbase-site/blob/7ebe345d/devapidocs/org/apache/hadoop/hbase/wal/package-tree.html
    ----------------------------------------------------------------------
    diff --git a/devapidocs/org/apache/hadoop/hbase/wal/package-tree.html b/devapidocs/org/apache/hadoop/hbase/wal/package-tree.html
    index ef802fb..3ded3f7 100644
    --- a/devapidocs/org/apache/hadoop/hbase/wal/package-tree.html
    +++ b/devapidocs/org/apache/hadoop/hbase/wal/package-tree.html
    @@ -167,8 +167,8 @@
     
    
    http://git-wip-us.apache.org/repos/asf/hbase-site/blob/7ebe345d/devapidocs/overview-tree.html
    ----------------------------------------------------------------------
    diff --git a/devapidocs/overview-tree.html b/devapidocs/overview-tree.html
    index 7bcfad4..2de1b3c 100644
    --- a/devapidocs/overview-tree.html
    +++ b/devapidocs/overview-tree.html
    @@ -954,7 +954,6 @@
     
  • org.apache.hadoop.hbase.CellComparator (implements java.util.Comparator<T>, java.io.Serializable)
  • org.apache.hadoop.hbase.mapreduce.CellCreator
  • @@ -5028,7 +5027,6 @@
  • java.lang.Enum<E> (implements java.lang.Comparable<T>, java.io.Serializable)
    • org.apache.hadoop.hbase.HConstants.OperationStatusCode
    • -
    • org.apache.hadoop.hbase.HConstants.Modify
    • org.apache.hadoop.hbase.KeyValue.Type
    • org.apache.hadoop.hbase.CellBuilderType
    • org.apache.hadoop.hbase.util.PrettyPrinter.Unit
    • @@ -5067,7 +5065,6 @@
    • org.apache.hadoop.hbase.quotas.QuotaType
    • org.apache.hadoop.hbase.quotas.ThrottlingException.Type
    • org.apache.hadoop.hbase.regionserver.BloomType
    • -
    • org.apache.hadoop.hbase.regionserver.RegionOpeningState
    • org.apache.hadoop.hbase.util.PoolMap.PoolType
    • org.apache.hadoop.hbase.MemoryCompactionPolicy
    • org.apache.hadoop.hbase.executor.ExecutorType
    • @@ -5103,14 +5100,14 @@
    • org.apache.hadoop.hbase.KeepDeletedCells
    • org.apache.hadoop.hbase.master.RegionState.State
    • org.apache.hadoop.hbase.replication.ReplicationPeer.PeerState
    • +
    • org.apache.hadoop.hbase.codec.prefixtree.scanner.CellScannerPosition
    • +
    • org.apache.hadoop.hbase.codec.prefixtree.encode.other.ColumnNodeType
    • +
    • org.apache.hadoop.hbase.codec.prefixtree.encode.tokenize.TokenizerRowSearchPosition
    • org.apache.hadoop.hbase.procedure2.StateMachineProcedure.Flow
    • org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureStore.PushType
    • org.apache.hadoop.hbase.procedure2.store.ProcedureStoreTracker.DeleteState
    • org.apache.hadoop.hbase.procedure2.Procedure.LockState
    • org.apache.hadoop.hbase.procedure2.RootProcedureState.State
    • -
    • org.apache.hadoop.hbase.codec.prefixtree.scanner.CellScannerPosition
    • -
    • org.apache.hadoop.hbase.codec.prefixtree.encode.other.ColumnNodeType
    • -
    • org.apache.hadoop.hbase.codec.prefixtree.encode.tokenize.TokenizerRowSearchPosition
    • org.apache.hadoop.hbase.monitoring.MonitoredTask.State
    • org.apache.hadoop.hbase.monitoring.TaskMonitor.TaskFilter.TaskType
    • org.apache.hadoop.hbase.mob.compactions.MobCompactionRequest.CompactionType
    • @@ -5118,18 +5115,15 @@
    • org.apache.hadoop.hbase.wal.WALFactory.Providers
    • org.apache.hadoop.hbase.coprocessor.RegionObserver.MutationType
    • org.apache.hadoop.hbase.HealthChecker.HealthCheckerExitStatus
    • -
    • org.apache.hadoop.hbase.quotas.QuotaSnapshotStore.ViolationState
    • org.apache.hadoop.hbase.quotas.OperationQuota.OperationType
    • org.apache.hadoop.hbase.coordination.ZKSplitLogManagerCoordination.TaskFinisher.Status
    • org.apache.hadoop.hbase.regionserver.ScanType
    • org.apache.hadoop.hbase.regionserver.wal.ProtobufLogReader.WALHdrResult
    • org.apache.hadoop.hbase.regionserver.wal.RingBufferTruck.Type
    • -
    • org.apache.hadoop.hbase.regionserver.StoreScanner.StoreScannerCompactionRace
    • org.apache.hadoop.hbase.regionserver.compactions.CompactionRequest.DisplayCompactionType
    • org.apache.hadoop.hbase.regionserver.SplitLogWorker.TaskExecutor.Status
    • org.apache.hadoop.hbase.regionserver.Region.Operation
    • org.apache.hadoop.hbase.regionserver.Region.FlushResult.Result
    • -
    • org.apache.hadoop.hbase.regionserver.querymatcher.DeleteTracker.DeleteCompare
    • org.apache.hadoop.hbase.regionserver.querymatcher.DeleteTracker.DeleteResult
    • org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher.MatchCode
    • org.apache.hadoop.hbase.regionserver.querymatcher.StripeCompactionScanQueryMatcher.DropDeletesInOutput
    • @@ -5162,7 +5156,6 @@
    • org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer.Cluster.LocalityType
    • org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer.Cluster.Action.Type
    • org.apache.hadoop.hbase.master.MasterRpcServices.BalanceSwitchMode
    • -
    • org.apache.hadoop.hbase.master.procedure.DisableTableProcedure.MarkRegionOfflineOpResult
    • org.apache.hadoop.hbase.master.procedure.TableProcedureInterface.TableOperationType
    • org.apache.hadoop.hbase.master.procedure.ServerProcedureInterface.ServerOperationType
    • org.apache.hadoop.hbase.mapreduce.TableSplit.Version
    • http://git-wip-us.apache.org/repos/asf/hbase-site/blob/7ebe345d/devapidocs/serialized-form.html ---------------------------------------------------------------------- diff --git a/devapidocs/serialized-form.html b/devapidocs/serialized-form.html index fa44b77..5a1fee3 100644 --- a/devapidocs/serialized-form.html +++ b/devapidocs/serialized-form.html @@ -101,11 +101,6 @@

      Class org.apache.hadoop.hbase.CellComparator.MetaCellComparator extends CellComparator implements Serializable

      -
    • - - -

      Class org.apache.hadoop.hbase.CellComparator.RowComparator extends CellComparator implements Serializable

      -
    • http://git-wip-us.apache.org/repos/asf/hbase-site/blob/7ebe345d/devapidocs/src-html/org/apache/hadoop/hbase/CellComparator.MetaCellComparator.html ---------------------------------------------------------------------- diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/CellComparator.MetaCellComparator.html b/devapidocs/src-html/org/apache/hadoop/hbase/CellComparator.MetaCellComparator.html index 965fa83..8bf2804 100644 --- a/devapidocs/src-html/org/apache/hadoop/hbase/CellComparator.MetaCellComparator.html +++ b/devapidocs/src-html/org/apache/hadoop/hbase/CellComparator.MetaCellComparator.html @@ -581,85 +581,75 @@ 573 } 574 575 /** -576 * Comparator that compares row component only of a Cell -577 */ -578 public static class RowComparator extends CellComparator { -579 @Override -580 public int compare(Cell a, Cell b) { -581 return compareRows(a, b); -582 } -583 } -584 -585 /** -586 * A {@link CellComparator} for <code>hbase:meta</code> catalog table -587 * {@link KeyValue}s. -588 */ -589 public static class MetaCellComparator extends CellComparator { -590 -591 @Override -592 public int compareRows(final Cell left, final Cell right) { -593 return compareRows(left.getRowArray(), left.getRowOffset(), left.getRowLength(), -594 right.getRowArray(), right.getRowOffset(), right.getRowLength()); -595 } -596 -597 @Override -598 public int compareRows(Cell left, byte[] right, int roffset, int rlength) { -599 return compareRows(left.getRowArray(), left.getRowOffset(), left.getRowLength(), right, -600 roffset, rlength); -601 } -602 -603 private int compareRows(byte[] left, int loffset, int llength, byte[] right, int roffset, -604 int rlength) { -605 int leftDelimiter = Bytes.searchDelimiterIndex(left, loffset, llength, HConstants.DELIMITER); -606 int rightDelimiter = Bytes -607 .searchDelimiterIndex(right, roffset, rlength, HConstants.DELIMITER); -608 // Compare up to the delimiter -609 int lpart = (leftDelimiter < 0 ? llength : leftDelimiter - loffset); -610 int rpart = (rightDelimiter < 0 ? rlength : rightDelimiter - roffset); -611 int result = Bytes.compareTo(left, loffset, lpart, right, roffset, rpart); -612 if (result != 0) { -613 return result; -614 } else { -615 if (leftDelimiter < 0 && rightDelimiter >= 0) { -616 return -1; -617 } else if (rightDelimiter < 0 && leftDelimiter >= 0) { -618 return 1; -619 } else if (leftDelimiter < 0 && rightDelimiter < 0) { -620 return 0; -621 } -622 } -623 // Compare middle bit of the row. -624 // Move past delimiter -625 leftDelimiter++; -626 rightDelimiter++; -627 int leftFarDelimiter = Bytes.searchDelimiterIndexInReverse(left, leftDelimiter, llength -628 - (leftDelimiter - loffset), HConstants.DELIMITER); -629 int rightFarDelimiter = Bytes.searchDelimiterIndexInReverse(right, rightDelimiter, rlength -630 - (rightDelimiter - roffset), HConstants.DELIMITER); -631 // Now compare middlesection of row. -632 lpart = (leftFarDelimiter < 0 ? llength + loffset : leftFarDelimiter) - leftDelimiter; -633 rpart = (rightFarDelimiter < 0 ? rlength + roffset : rightFarDelimiter) - rightDelimiter; -634 result = Bytes.compareTo(left, leftDelimiter, lpart, right, rightDelimiter, rpart); -635 if (result != 0) { -636 return result; -637 } else { -638 if (leftDelimiter < 0 && rightDelimiter >= 0) { -639 return -1; -640 } else if (rightDelimiter < 0 && leftDelimiter >= 0) { -641 return 1; -642 } else if (leftDelimiter < 0 && rightDelimiter < 0) { -643 return 0; -644 } -645 } -646 // Compare last part of row, the rowid. -647 leftFarDelimiter++; -648 rightFarDelimiter++; -649 result = Bytes.compareTo(left, leftFarDelimiter, llength - (leftFarDelimiter - loffset), -650 right, rightFarDelimiter, rlength - (rightFarDelimiter - roffset)); -651 return result; -652 } -653 } -654} +576 * A {@link CellComparator} for <code>hbase:meta</code> catalog table +577 * {@link KeyValue}s. +578 */ +579 public static class MetaCellComparator extends CellComparator { +580 +581 @Override +582 public int compareRows(final Cell left, final Cell right) { +583 return compareRows(left.getRowArray(), left.getRowOffset(), left.getRowLength(), +584 right.getRowArray(), right.getRowOffset(), right.getRowLength()); +585 } +586 +587 @Override +588 public int compareRows(Cell left, byte[] right, int roffset, int rlength) { +589 return compareRows(left.getRowArray(), left.getRowOffset(), left.getRowLength(), right, +590 roffset, rlength); +591 } +592 +593 private int compareRows(byte[] left, int loffset, int llength, byte[] right, int roffset, +594 int rlength) { +595 int leftDelimiter = Bytes.searchDelimiterIndex(left, loffset, llength, HConstants.DELIMITER); +596 int rightDelimiter = Bytes +597 .searchDelimiterIndex(right, roffset, rlength, HConstants.DELIMITER); +598 // Compare up to the delimiter +599 int lpart = (leftDelimiter < 0 ? llength : leftDelimiter - loffset); +600 int rpart = (rightDelimiter < 0 ? rlength : rightDelimiter - roffset); +601 int result = Bytes.compareTo(left, loffset, lpart, right, roffset, rpart); +602 if (result != 0) { +603 return result; +604 } else { +605 if (leftDelimiter < 0 && rightDelimiter >= 0) { +606 return -1; +607 } else if (rightDelimiter < 0 && leftDelimiter >= 0) { +608 return 1; +609 } else if (leftDelimiter < 0 && rightDelimiter < 0) { +610 return 0; +611 } +612 } +613 // Compare middle bit of the row. +614 // Move past delimiter +615 leftDelimiter++; +616 rightDelimiter++; +617 int leftFarDelimiter = Bytes.searchDelimiterIndexInReverse(left, leftDelimiter, llength +618 - (leftDelimiter - loffset), HConstants.DELIMITER); +619 int rightFarDelimiter = Bytes.searchDelimiterIndexInReverse(right, rightDelimiter, rlength +620 - (rightDelimiter - roffset), HConstants.DELIMITER); +621 // Now compare middlesection of row. +622 lpart = (leftFarDelimiter < 0 ? llength + loffset : leftFarDelimiter) - leftDelimiter; +623 rpart = (rightFarDelimiter < 0 ? rlength + roffset : rightFarDelimiter) - rightDelimiter; +624 result = Bytes.compareTo(left, leftDelimiter, lpart, right, rightDelimiter, rpart); +625 if (result != 0) { +626 return result; +627 } else { +628 if (leftDelimiter < 0 && rightDelimiter >= 0) { +629 return -1; +630 } else if (rightDelimiter < 0 && leftDelimiter >= 0) { +631 return 1; +632 } else if (leftDelimiter < 0 && rightDelimiter < 0) { +633 return 0; +634 } +635 } +636 // Compare last part of row, the rowid. +637 leftFarDelimiter++; +638 rightFarDelimiter++; +639 result = Bytes.compareTo(left, leftFarDelimiter, llength - (leftFarDelimiter - loffset), +640 right, rightFarDelimiter, rlength - (rightFarDelimiter - roffset)); +641 return result; +642 } +643 } +644}