Class LeveldbUtils
java.lang.Object
org.apache.hadoop.yarn.server.timeline.util.LeveldbUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA string builder utility for building timeline server leveldb keys.static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.hadoop.fs.permission.FsPermissionDefault permission mask for the level db dir -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.iq80.leveldb.DBloadOrRepairLevelDb(org.fusesource.leveldbjni.JniDBFactory factory, org.apache.hadoop.fs.Path dbPath, org.iq80.leveldb.Options options) static booleanprefixMatches(byte[] prefix, int prefixlen, byte[] b) Returns true if the byte array begins with the specified prefix.
-
Field Details
-
LEVELDB_DIR_UMASK
public static final org.apache.hadoop.fs.permission.FsPermission LEVELDB_DIR_UMASKDefault permission mask for the level db dir
-
-
Constructor Details
-
LeveldbUtils
public LeveldbUtils()
-
-
Method Details
-
prefixMatches
public static boolean prefixMatches(byte[] prefix, int prefixlen, byte[] b) Returns true if the byte array begins with the specified prefix. -
loadOrRepairLevelDb
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 - Throws:
IOException
-