public static class LeveldbUtils.KeyBuilder
extends java.lang.Object
| Constructor | Description |
|---|---|
KeyBuilder(int size) |
| Modifier and Type | Method | Description |
|---|---|---|
LeveldbUtils.KeyBuilder |
add(byte[] t) |
|
LeveldbUtils.KeyBuilder |
add(byte[] t,
boolean sep) |
|
LeveldbUtils.KeyBuilder |
add(java.lang.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(java.lang.String s)
public LeveldbUtils.KeyBuilder add(byte[] t)
public LeveldbUtils.KeyBuilder add(byte[] t, boolean sep)
public byte[] getBytes()
public byte[] getBytesForLookup()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.