Package org.h2.mvstore
Class MVMap.Builder<K,V>
- java.lang.Object
-
- org.h2.mvstore.MVMap.BasicBuilder<MVMap<K,V>,K,V>
-
- org.h2.mvstore.MVMap.Builder<K,V>
-
- Type Parameters:
K
- the key typeV
- the value type
- All Implemented Interfaces:
MVMap.MapBuilder<MVMap<K,V>,K,V>
- Direct Known Subclasses:
TransactionStore.TxMapBuilder
public static class MVMap.Builder<K,V> extends MVMap.BasicBuilder<MVMap<K,V>,K,V>
A builder for this class.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
singleWriter
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MVMap<K,V>
create(java.util.Map<java.lang.String,java.lang.Object> config)
Create map from config.MVMap.Builder<K,V>
keyType(DataType<? super K> dataType)
Set the key data type.MVMap.Builder<K,V>
singleWriter()
Set up this Builder to produce MVMap, which can be used in append mode by a single thread.MVMap.Builder<K,V>
valueType(DataType<? super V> dataType)
Set the value data type.-
Methods inherited from class org.h2.mvstore.MVMap.BasicBuilder
create, getKeyType, getValueType, setKeyType, setValueType
-
-
-
-
Method Detail
-
keyType
public MVMap.Builder<K,V> keyType(DataType<? super K> dataType)
Description copied from class:MVMap.BasicBuilder
Set the key data type.
-
valueType
public MVMap.Builder<K,V> valueType(DataType<? super V> dataType)
Description copied from class:MVMap.BasicBuilder
Set the value data type.
-
singleWriter
public MVMap.Builder<K,V> singleWriter()
Set up this Builder to produce MVMap, which can be used in append mode by a single thread.- Returns:
- this Builder for chained execution
- See Also:
MVMap.append(Object, Object)
-
-