public static class LeveldbUtils.KeyBuilder extends Object
Constructor and Description |
---|
KeyBuilder(int size) |
Modifier and Type | Method and Description |
---|---|
LeveldbUtils.KeyBuilder |
add(byte[] t) |
LeveldbUtils.KeyBuilder |
add(byte[] t,
boolean sep) |
LeveldbUtils.KeyBuilder |
add(String s) |
byte[] |
getBytes()
Builds a byte array without the final string delimiter.
|
byte[] |
getBytesForLookup()
Builds a byte array including the final string delimiter.
|
static LeveldbUtils.KeyBuilder |
newInstance() |
static LeveldbUtils.KeyBuilder |
newInstance(int size)
Instantiate a new key build with the given maximum subkes.
|
public static LeveldbUtils.KeyBuilder newInstance()
public static LeveldbUtils.KeyBuilder newInstance(int size)
size
- maximum subkeys that can be added to this key builderpublic LeveldbUtils.KeyBuilder add(String s)
public LeveldbUtils.KeyBuilder add(byte[] t)
public LeveldbUtils.KeyBuilder add(byte[] t, boolean sep)
public byte[] getBytes()
public byte[] getBytesForLookup()
Copyright © 2008–2020 Apache Software Foundation. All rights reserved.