K - the key typeV - the value typepublic abstract static class MVMap.BasicBuilder<M extends MVMap<K,V>,K,V> extends java.lang.Object implements MVMap.MapBuilder<M,K,V>
| Modifier | Constructor and Description |
|---|---|
protected |
BasicBuilder()
Create a new builder with the default key and value data types.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract M |
create(java.util.Map<java.lang.String,java.lang.Object> config)
Create map from config.
|
M |
create(MVStore store,
java.util.Map<java.lang.String,java.lang.Object> config)
Create a new map of the given type.
|
DataType<K> |
getKeyType() |
DataType<V> |
getValueType() |
MVMap.BasicBuilder<M,K,V> |
keyType(DataType<? super K> keyType)
Set the key data type.
|
void |
setKeyType(DataType<? super K> keyType) |
void |
setValueType(DataType<? super V> valueType) |
MVMap.BasicBuilder<M,K,V> |
valueType(DataType<? super V> valueType)
Set the value data type.
|
protected BasicBuilder()
public DataType<K> getKeyType()
getKeyType in interface MVMap.MapBuilder<M extends MVMap<K,V>,K,V>public DataType<V> getValueType()
getValueType in interface MVMap.MapBuilder<M extends MVMap<K,V>,K,V>public void setKeyType(DataType<? super K> keyType)
setKeyType in interface MVMap.MapBuilder<M extends MVMap<K,V>,K,V>public void setValueType(DataType<? super V> valueType)
setValueType in interface MVMap.MapBuilder<M extends MVMap<K,V>,K,V>public MVMap.BasicBuilder<M,K,V> keyType(DataType<? super K> keyType)
keyType - the key typepublic MVMap.BasicBuilder<M,K,V> valueType(DataType<? super V> valueType)
valueType - the value typepublic M create(MVStore store, java.util.Map<java.lang.String,java.lang.Object> config)
MVMap.MapBuilderprotected abstract M create(java.util.Map<java.lang.String,java.lang.Object> config)
config - config map