Package org.h2.mvstore.rtree
Class MVRTreeMap.Builder<V>
- java.lang.Object
-
- org.h2.mvstore.MVMap.BasicBuilder<MVRTreeMap<V>,Spatial,V>
-
- org.h2.mvstore.rtree.MVRTreeMap.Builder<V>
-
- Type Parameters:
V
- the value type
- All Implemented Interfaces:
MVMap.MapBuilder<MVRTreeMap<V>,Spatial,V>
- Enclosing class:
- MVRTreeMap<V>
public static class MVRTreeMap.Builder<V> extends MVMap.BasicBuilder<MVRTreeMap<V>,Spatial,V>
A builder for this class.
-
-
Field Summary
Fields Modifier and Type Field Description private int
dimensions
-
Constructor Summary
Constructors Constructor Description Builder()
Create a new builder for maps with 2 dimensions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MVRTreeMap<V>
create(java.util.Map<java.lang.String,java.lang.Object> config)
Create map from config.MVRTreeMap.Builder<V>
dimensions(int dimensions)
Set the dimensions.MVRTreeMap.Builder<V>
valueType(DataType<? super V> valueType)
Set the key data type.-
Methods inherited from class org.h2.mvstore.MVMap.BasicBuilder
create, getKeyType, getValueType, keyType, setKeyType, setValueType
-
-
-
-
Method Detail
-
dimensions
public MVRTreeMap.Builder<V> dimensions(int dimensions)
Set the dimensions.- Parameters:
dimensions
- the dimensions to use- Returns:
- this
-
valueType
public MVRTreeMap.Builder<V> valueType(DataType<? super V> valueType)
Set the key data type.- Overrides:
valueType
in classMVMap.BasicBuilder<MVRTreeMap<V>,Spatial,V>
- Parameters:
valueType
- the key type- Returns:
- this
-
create
public MVRTreeMap<V> create(java.util.Map<java.lang.String,java.lang.Object> config)
Description copied from class:MVMap.BasicBuilder
Create map from config.- Specified by:
create
in classMVMap.BasicBuilder<MVRTreeMap<V>,Spatial,V>
- Parameters:
config
- config map- Returns:
- new map
-
-