Package org.h2.mvstore
Class MVMap.BasicBuilder<M extends MVMap<K,V>,K,V>
java.lang.Object
org.h2.mvstore.MVMap.BasicBuilder<M,K,V>
- Type Parameters:
K
- the key typeV
- the value type
- All Implemented Interfaces:
MVMap.MapBuilder<M,
K, V>
- Direct Known Subclasses:
MVMap.Builder
,MVRTreeMap.Builder
public abstract static class MVMap.BasicBuilder<M extends MVMap<K,V>,K,V>
extends Object
implements MVMap.MapBuilder<M,K,V>
A builder for this class.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Create a new builder with the default key and value data types. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract M
Create map from config.Create a new map of the given type.Set the key data type.void
setKeyType
(DataType<? super K> keyType) void
setValueType
(DataType<? super V> valueType) Set the value data type.
-
Field Details
-
keyType
-
valueType
-
-
Constructor Details
-
BasicBuilder
protected BasicBuilder()Create a new builder with the default key and value data types.
-
-
Method Details
-
getKeyType
- Specified by:
getKeyType
in interfaceMVMap.MapBuilder<M extends MVMap<K,
V>, K, V>
-
getValueType
- Specified by:
getValueType
in interfaceMVMap.MapBuilder<M extends MVMap<K,
V>, K, V>
-
setKeyType
- Specified by:
setKeyType
in interfaceMVMap.MapBuilder<M extends MVMap<K,
V>, K, V>
-
setValueType
- Specified by:
setValueType
in interfaceMVMap.MapBuilder<M extends MVMap<K,
V>, K, V>
-
keyType
Set the key data type.- Parameters:
keyType
- the key type- Returns:
- this
-
valueType
Set the value data type.- Parameters:
valueType
- the value type- Returns:
- this
-
create
Description copied from interface:MVMap.MapBuilder
Create a new map of the given type. -
create
Create map from config.- Parameters:
config
- config map- Returns:
- new map
-