org.apache.hadoop.hbase.util
Class ByteRangeUtils

java.lang.Object
  extended by org.apache.hadoop.hbase.util.ByteRangeUtils

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class ByteRangeUtils
extends Object

Utility methods for working with ByteRange.


Constructor Summary
ByteRangeUtils()
           
 
Method Summary
static ArrayList<byte[]> copyToNewArrays(Collection<ByteRange> ranges)
           
static ArrayList<ByteRange> fromArrays(Collection<byte[]> arrays)
           
static int numEqualPrefixBytes(ByteRange left, ByteRange right, int rightInnerOffset)
           
static void write(OutputStream os, ByteRange byteRange)
           
static void write(OutputStream os, ByteRange byteRange, int byteRangeInnerOffset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteRangeUtils

public ByteRangeUtils()
Method Detail

numEqualPrefixBytes

public static int numEqualPrefixBytes(ByteRange left,
                                      ByteRange right,
                                      int rightInnerOffset)

copyToNewArrays

public static ArrayList<byte[]> copyToNewArrays(Collection<ByteRange> ranges)

fromArrays

public static ArrayList<ByteRange> fromArrays(Collection<byte[]> arrays)

write

public static void write(OutputStream os,
                         ByteRange byteRange)
                  throws IOException
Throws:
IOException

write

public static void write(OutputStream os,
                         ByteRange byteRange,
                         int byteRangeInnerOffset)
                  throws IOException
Throws:
IOException


Copyright © 2015 The Apache Software Foundation. All Rights Reserved.