Package org.apache.hadoop.hbase.util
Class ByteRangeUtils
java.lang.Object
org.apache.hadoop.hbase.util.ByteRangeUtils
Utility methods for working with
ByteRange
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayList<byte[]>
copyToNewArrays
(Collection<ByteRange> ranges) 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)
-
Constructor Details
-
ByteRangeUtils
public ByteRangeUtils()
-
-
Method Details
-
numEqualPrefixBytes
-
copyToNewArrays
-
fromArrays
-
write
- Throws:
IOException
-
write
public static void write(OutputStream os, ByteRange byteRange, int byteRangeInnerOffset) throws IOException - Throws:
IOException
-