Class MVMap.BasicBuilder<M extends MVMap<K,V>,K,V>
- java.lang.Object
-
- org.dizitart.no2.mvstore.compat.v1.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
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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mcreate(MVStore store, Map<String,Object> config)Create a new map of the given type.DataTypegetKeyType()DataTypegetValueType()MVMap.BasicBuilder<M,K,V>keyType(DataType keyType)Set the key data type.voidsetKeyType(DataType keyType)voidsetValueType(DataType valueType)MVMap.BasicBuilder<M,K,V>valueType(DataType valueType)Set the value data type.
-
-
-
Method Detail
-
getKeyType
public DataType getKeyType()
- Specified by:
getKeyTypein interfaceMVMap.MapBuilder<M extends MVMap<K,V>,K,V>
-
getValueType
public DataType getValueType()
- Specified by:
getValueTypein interfaceMVMap.MapBuilder<M extends MVMap<K,V>,K,V>
-
setKeyType
public void setKeyType(DataType keyType)
- Specified by:
setKeyTypein interfaceMVMap.MapBuilder<M extends MVMap<K,V>,K,V>
-
setValueType
public void setValueType(DataType valueType)
- Specified by:
setValueTypein interfaceMVMap.MapBuilder<M extends MVMap<K,V>,K,V>
-
keyType
public MVMap.BasicBuilder<M,K,V> keyType(DataType keyType)
Set the key data type.- Parameters:
keyType- the key type- Returns:
- this
-
valueType
public MVMap.BasicBuilder<M,K,V> valueType(DataType valueType)
Set the value data type.- Parameters:
valueType- the value type- Returns:
- this
-
-