Class LeveldbUtils.KeyParser

java.lang.Object
org.apache.hadoop.yarn.server.timeline.util.LeveldbUtils.KeyParser
Enclosing class:
LeveldbUtils

public static class LeveldbUtils.KeyParser extends Object
  • Constructor Details

    • KeyParser

      public KeyParser(byte[] b, int offset)
  • Method Details

    • getNextString

      public String getNextString() throws IOException
      Returns a string from the offset until the next string delimiter.
      Throws:
      IOException
    • skipNextString

      public void skipNextString() throws IOException
      Moves current position until after the next end of string marker.
      Throws:
      IOException
    • getNextLong

      public long getNextLong() throws IOException
      Read the next 8 bytes in the byte buffer as a long.
      Throws:
      IOException
    • getOffset

      public int getOffset()
    • getRemainingBytes

      public byte[] getRemainingBytes()
      Returns a copy of the remaining bytes.