Class MVMap.Builder<K,V>
- java.lang.Object
-
- org.dizitart.no2.mvstore.compat.v1.mvstore.MVMap.BasicBuilder<MVMap<K,V>,K,V>
-
- org.dizitart.no2.mvstore.compat.v1.mvstore.MVMap.Builder<K,V>
-
- Type Parameters:
K- the key typeV- the value type
- All Implemented Interfaces:
MVMap.MapBuilder<MVMap<K,V>,K,V>
public static class MVMap.Builder<K,V> extends MVMap.BasicBuilder<MVMap<K,V>,K,V>
A builder for this class.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MVMap.Builder<K,V>keyType(DataType 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 dataType)Set the value data type.-
Methods inherited from class org.dizitart.no2.mvstore.compat.v1.mvstore.MVMap.BasicBuilder
create, getKeyType, getValueType, setKeyType, setValueType
-
-
-
-
Method Detail
-
keyType
public MVMap.Builder<K,V> keyType(DataType dataType)
Description copied from class:MVMap.BasicBuilderSet the key data type.
-
valueType
public MVMap.Builder<K,V> valueType(DataType dataType)
Description copied from class:MVMap.BasicBuilderSet 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)
-
-