org.apache.hadoop.hbase.util
Class ByteRangeUtils
java.lang.Object
org.apache.hadoop.hbase.util.ByteRangeUtils
@InterfaceAudience.Public
@InterfaceStability.Evolving
public class ByteRangeUtils
- extends Object
Utility methods for working with ByteRange
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteRangeUtils
public ByteRangeUtils()
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.