public abstract static class AbstractMutableOptions.AbstractMutableOptionsBuilder<T extends AbstractMutableOptions,U extends AbstractMutableOptions.AbstractMutableOptionsBuilder<T,U,K>,K extends MutableOptionKey> extends Object
| Constructor and Description |
|---|
AbstractMutableOptionsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Map<String,K> |
allKeys()
Get all of the possible keys
|
T |
build() |
protected abstract T |
build(String[] keys,
String[] values)
Construct a sub-class instance of
AbstractMutableOptions. |
protected U |
fromParsed(List<org.rocksdb.OptionString.Entry> options,
boolean ignoreUnknown)
Constructs a builder for mutable column family options from a hierarchical parsed options
string representation.
|
protected boolean |
getBoolean(K key) |
protected double |
getDouble(K key) |
protected <N extends Enum<N>> |
getEnum(K key) |
protected int |
getInt(K key) |
protected int[] |
getIntArray(K key) |
protected long |
getLong(K key) |
List<org.rocksdb.OptionString.Entry> |
getUnknown() |
protected abstract U |
self() |
protected U |
setBoolean(K key,
boolean value) |
protected U |
setDouble(K key,
double value) |
protected <N extends Enum<N>> |
setEnum(K key,
N value) |
protected U |
setInt(K key,
int value) |
protected U |
setIntArray(K key,
int[] value) |
protected U |
setLong(K key,
long value) |
protected abstract U self()
protected abstract Map<String,K> allKeys()
protected abstract T build(String[] keys, String[] values)
AbstractMutableOptions.keys - the keysvalues - the valuespublic T build()
protected double getDouble(K key) throws NoSuchElementException, NumberFormatException
protected long getLong(K key) throws NoSuchElementException, NumberFormatException
protected int getInt(K key) throws NoSuchElementException, NumberFormatException
protected boolean getBoolean(K key) throws NoSuchElementException, NumberFormatException
protected int[] getIntArray(K key) throws NoSuchElementException, NumberFormatException
protected <N extends Enum<N>> N getEnum(K key) throws NoSuchElementException, NumberFormatException
protected U fromParsed(List<org.rocksdb.OptionString.Entry> options, boolean ignoreUnknown)
OptionString.Parser class output has been used to create a
(name,value)-list; each value may be either a simple string or a (name, value)-list in turn.options - a list of parsed option string objectsignoreUnknown - what to do if the key is not one of the keys we expectIllegalArgumentException - if an option value is of the wrong type, or a key is emptypublic List<org.rocksdb.OptionString.Entry> getUnknown()
Copyright © 2022. All rights reserved.