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 intdimensions
-
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:
valueTypein 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.BasicBuilderCreate map from config.- Specified by:
createin classMVMap.BasicBuilder<MVRTreeMap<V>,Spatial,V>- Parameters:
config- config map- Returns:
- new map
-
-