Package org.rocksdb
Class AbstractMutableOptions.AbstractMutableOptionsBuilder<T extends AbstractMutableOptions,U extends AbstractMutableOptions.AbstractMutableOptionsBuilder<T,U,K>,K extends MutableOptionKey>
java.lang.Object
org.rocksdb.AbstractMutableOptions.AbstractMutableOptionsBuilder<T,U,K>
- Direct Known Subclasses:
MutableColumnFamilyOptions.MutableColumnFamilyOptionsBuilder,MutableDBOptions.MutableDBOptionsBuilder
- Enclosing class:
AbstractMutableOptions
public abstract static class AbstractMutableOptions.AbstractMutableOptionsBuilder<T extends AbstractMutableOptions,U extends AbstractMutableOptions.AbstractMutableOptionsBuilder<T,U,K>,K extends MutableOptionKey>
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallKeys()Get all the possible keysbuild()protected abstract TConstruct a subclass instance ofAbstractMutableOptions.protected UfromParsed(List<org.rocksdb.OptionString.Entry> options, boolean ignoreUnknown) Constructs a builder for mutable column family options from a hierarchical parsed options string representation.protected booleangetBoolean(K key) protected doubleprotected <N extends Enum<N>>
Nprotected intprotected int[]getIntArray(K key) protected longList<org.rocksdb.OptionString.Entry> protected abstract Uself()protected UsetBoolean(K key, boolean value) protected Uprotected Uprotected UsetIntArray(K key, int[] value) protected U
-
Constructor Details
-
AbstractMutableOptionsBuilder
public AbstractMutableOptionsBuilder()
-
-
Method Details
-
self
-
allKeys
Get all the possible keys- Returns:
- A map of all keys, indexed by name.
-
build
Construct a subclass instance ofAbstractMutableOptions.- Parameters:
keys- the keysvalues- the values- Returns:
- an instance of the options.
-
build
-
setDouble
-
getDouble
-
setLong
-
getLong
-
setInt
-
getInt
-
setBoolean
-
getBoolean
-
setIntArray
-
getIntArray
-
setEnum
-
getEnum
-
fromParsed
Constructs a builder for mutable column family options from a hierarchical parsed options string representation. TheOptionString.Parserclass 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.- Parameters:
options- a list of parsed option string objectsignoreUnknown- what to do if the key is not one of the keys we expect- Returns:
- a builder with the values from the parsed input set
- Throws:
IllegalArgumentException- if an option value is of the wrong type, or a key is empty
-
getUnknown
- Returns:
- the list of keys encountered which were not known to the type being generated
-