Class LeveldbUtils.KeyParser
java.lang.Object
org.apache.hadoop.yarn.server.timeline.util.LeveldbUtils.KeyParser
- Enclosing class:
- LeveldbUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongRead the next 8 bytes in the byte buffer as a long.Returns a string from the offset until the next string delimiter.intbyte[]Returns a copy of the remaining bytes.voidMoves current position until after the next end of string marker.
-
Constructor Details
-
KeyParser
public KeyParser(byte[] b, int offset)
-
-
Method Details
-
getNextString
Returns a string from the offset until the next string delimiter.- Throws:
IOException
-
skipNextString
Moves current position until after the next end of string marker.- Throws:
IOException
-
getNextLong
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.
-