public class LeveldbUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
LeveldbUtils.KeyBuilder
A string builder utility for building timeline server leveldb keys.
|
static class |
LeveldbUtils.KeyParser |
Modifier and Type | Field and Description |
---|---|
static org.apache.hadoop.fs.permission.FsPermission |
LEVELDB_DIR_UMASK
Default permission mask for the level db dir
|
Constructor and Description |
---|
LeveldbUtils() |
Modifier and Type | Method and Description |
---|---|
static org.iq80.leveldb.DB |
loadOrRepairLevelDb(org.fusesource.leveldbjni.JniDBFactory factory,
org.apache.hadoop.fs.Path dbPath,
org.iq80.leveldb.Options options) |
static boolean |
prefixMatches(byte[] prefix,
int prefixlen,
byte[] b)
Returns true if the byte array begins with the specified prefix.
|
public static final org.apache.hadoop.fs.permission.FsPermission LEVELDB_DIR_UMASK
public static boolean prefixMatches(byte[] prefix, int prefixlen, byte[] b)
public static org.iq80.leveldb.DB loadOrRepairLevelDb(org.fusesource.leveldbjni.JniDBFactory factory, org.apache.hadoop.fs.Path dbPath, org.iq80.leveldb.Options options) throws IOException
IOException
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.