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>
A builder for this class.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate map from config.dimensions
(int dimensions) Set the dimensions.Set the key data type.Methods inherited from class org.h2.mvstore.MVMap.BasicBuilder
create, getKeyType, getValueType, keyType, setKeyType, setValueType
-
Field Details
-
dimensions
private int dimensions
-
-
Constructor Details
-
Builder
public Builder()Create a new builder for maps with 2 dimensions.
-
-
Method Details
-
dimensions
Set the dimensions.- Parameters:
dimensions
- the dimensions to use- Returns:
- this
-
valueType
Set the key data type.- Overrides:
valueType
in classMVMap.BasicBuilder<MVRTreeMap<V>,
Spatial, V> - Parameters:
valueType
- the key type- Returns:
- this
-
create
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
-