public class HFileUtils extends Object
| Constructor and Description |
|---|
HFileUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
compareKeys(Key key1,
Key key2)
Compares two HFile
Key. |
static CompressionCodec |
decodeCompressionCodec(int id)
Gets the compression codec based on the ID.
|
static String |
getValue(KeyValue kv)
Gets the value in String.
|
static boolean |
isPrefixOfKey(Key prefix,
Key key) |
static int |
readMajorVersion(byte[] bytes,
int offset)
Reads the HFile major version from the input.
|
public static CompressionCodec decodeCompressionCodec(int id)
id - ID indicating the compression codec.public static int readMajorVersion(byte[] bytes,
int offset)
bytes - input data.offset - offset to start reading.public static int compareKeys(Key key1, Key key2)
Key.key1 - left operand key.key2 - right operand key.public static boolean isPrefixOfKey(Key prefix, Key key)
prefix - the prefix to checkkey - key to checkCopyright © 2024 The Apache Software Foundation. All rights reserved.