Class LeveldbUtils

java.lang.Object
org.apache.hadoop.yarn.server.timeline.util.LeveldbUtils

public class LeveldbUtils extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    A string builder utility for building timeline server leveldb keys.
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.hadoop.fs.permission.FsPermission
    Default permission mask for the level db dir
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LEVELDB_DIR_UMASK

      public static final org.apache.hadoop.fs.permission.FsPermission LEVELDB_DIR_UMASK
      Default 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