K
- The BTree key typeV
- The BTree valye typepublic class BTreeFactory<K,V> extends Object
Constructor and Description |
---|
BTreeFactory() |
Modifier and Type | Method and Description |
---|---|
static <K,V> BTree<K,V> |
createInMemoryBTree()
Creates a new in-memory BTree, with no initialization.
|
static <K,V> BTree<K,V> |
createInMemoryBTree(InMemoryBTreeConfiguration<K,V> configuration)
Creates a new in-memory BTree using the BTreeConfiguration to initialize the
BTree
|
static <K,V> BTree<K,V> |
createInMemoryBTree(String name,
ElementSerializer<K> keySerializer,
ElementSerializer<V> valueSerializer)
Creates a new in-memory BTree using the parameters to initialize the
BTree
|
static <K,V> BTree<K,V> |
createInMemoryBTree(String name,
ElementSerializer<K> keySerializer,
ElementSerializer<V> valueSerializer,
boolean allowDuplicates)
Creates a new in-memory BTree using the parameters to initialize the
BTree
|
static <K,V> BTree<K,V> |
createInMemoryBTree(String name,
ElementSerializer<K> keySerializer,
ElementSerializer<V> valueSerializer,
int pageSize)
Creates a new in-memory BTree using the parameters to initialize the
BTree
|
static <K,V> BTree<K,V> |
createInMemoryBTree(String name,
String filePath,
ElementSerializer<K> keySerializer,
ElementSerializer<V> valueSerializer)
Creates a new in-memory BTree using the parameters to initialize the
BTree
|
static <K,V> BTree<K,V> |
createInMemoryBTree(String name,
String filePath,
ElementSerializer<K> keySerializer,
ElementSerializer<V> valueSerializer,
int pageSize)
Creates a new in-memory BTree using the parameters to initialize the
BTree
|
static <K,V> BTree<K,V> |
createInMemoryBTree(String name,
String filePath,
ElementSerializer<K> keySerializer,
ElementSerializer<V> valueSerializer,
int pageSize,
boolean allowDuplicates)
Creates a new in-memory BTree using the parameters to initialize the
BTree
|
static <K,V> BTree<K,V> |
createPersistedBTree()
Creates a new persisted BTree, with no initialization.
|
static <K,V> BTree<K,V> |
createPersistedBTree(PersistedBTreeConfiguration<K,V> configuration)
Creates a new persisted BTree using the BTreeConfiguration to initialize the
BTree
|
static <K,V> BTree<K,V> |
createPersistedBTree(String name,
ElementSerializer<K> keySerializer,
ElementSerializer<V> valueSerializer)
Creates a new persisted BTree using the parameters to initialize the
BTree
|
static <K,V> BTree<K,V> |
createPersistedBTree(String name,
ElementSerializer<K> keySerializer,
ElementSerializer<V> valueSerializer,
boolean allowDuplicates)
Creates a new persisted BTree using the parameters to initialize the
BTree
|
static <K,V> BTree<K,V> |
createPersistedBTree(String name,
ElementSerializer<K> keySerializer,
ElementSerializer<V> valueSerializer,
boolean allowDuplicates,
int cacheSize)
Creates a new persisted BTree using the parameters to initialize the
BTree
|
static <K,V> BTree<K,V> |
createPersistedBTree(String name,
ElementSerializer<K> keySerializer,
ElementSerializer<V> valueSerializer,
int pageSize)
Creates a new persisted BTree using the parameters to initialize the
BTree
|
static <K,V> BTree<K,V> |
createPersistedBTree(String name,
ElementSerializer<K> keySerializer,
ElementSerializer<V> valueSerializer,
int pageSize,
boolean allowDuplicates)
Creates a new persisted BTree using the parameters to initialize the
BTree
|
static <K,V> BTree<K,V> |
createPersistedBTree(String name,
ElementSerializer<K> keySerializer,
ElementSerializer<V> valueSerializer,
int pageSize,
boolean allowDuplicates,
int cacheSize)
Creates a new persisted BTree using the parameters to initialize the
BTree
|
public static <K,V> BTree<K,V> createPersistedBTree()
public static <K,V> BTree<K,V> createPersistedBTree(PersistedBTreeConfiguration<K,V> configuration)
configuration
- The configuration to usepublic static <K,V> BTree<K,V> createPersistedBTree(String name, ElementSerializer<K> keySerializer, ElementSerializer<V> valueSerializer)
name
- The BTree's namekeySerializer
- Key serializervalueSerializer
- Value serializerallowDuplicates
- Tells if the BTree allows multiple value for a given keyIOException
public static <K,V> BTree<K,V> createPersistedBTree(String name, ElementSerializer<K> keySerializer, ElementSerializer<V> valueSerializer, boolean allowDuplicates)
name
- The BTree's namekeySerializer
- Key serializervalueSerializer
- Value serializerallowDuplicates
- Tells if the BTree allows multiple value for a given keyIOException
public static <K,V> BTree<K,V> createPersistedBTree(String name, ElementSerializer<K> keySerializer, ElementSerializer<V> valueSerializer, boolean allowDuplicates, int cacheSize)
name
- The BTree's namekeySerializer
- Key serializervalueSerializer
- Value serializerallowDuplicates
- Tells if the BTree allows multiple value for a given keycacheSize
- The size to be used for this BTree cacheIOException
public static <K,V> BTree<K,V> createPersistedBTree(String name, ElementSerializer<K> keySerializer, ElementSerializer<V> valueSerializer, int pageSize)
name
- The BTree's namekeySerializer
- Key serializervalueSerializer
- Value serializerpageSize
- Size of the pageIOException
public static <K,V> BTree<K,V> createPersistedBTree(String name, ElementSerializer<K> keySerializer, ElementSerializer<V> valueSerializer, int pageSize, boolean allowDuplicates)
name
- The BTree's namekeySerializer
- Key serializervalueSerializer
- Value serializerpageSize
- Size of the pageallowDuplicates
- Tells if the BTree allows multiple value for a given keyIOException
public static <K,V> BTree<K,V> createPersistedBTree(String name, ElementSerializer<K> keySerializer, ElementSerializer<V> valueSerializer, int pageSize, boolean allowDuplicates, int cacheSize)
name
- The BTree's namekeySerializer
- Key serializervalueSerializer
- Value serializerpageSize
- Size of the pageallowDuplicates
- Tells if the BTree allows multiple value for a given keycacheSize
- The size to be used for this BTree cacheIOException
public static <K,V> BTree<K,V> createInMemoryBTree()
public static <K,V> BTree<K,V> createInMemoryBTree(InMemoryBTreeConfiguration<K,V> configuration)
configuration
- The configuration to usepublic static <K,V> BTree<K,V> createInMemoryBTree(String name, ElementSerializer<K> keySerializer, ElementSerializer<V> valueSerializer)
name
- The BTree's namekeySerializer
- Key serializervalueSerializer
- Value serializerpublic static <K,V> BTree<K,V> createInMemoryBTree(String name, ElementSerializer<K> keySerializer, ElementSerializer<V> valueSerializer, boolean allowDuplicates)
name
- The BTree's namekeySerializer
- Key serializervalueSerializer
- Value serializerallowDuplicates
- Tells if the BTree allows multiple value for a given keyIOException
public static <K,V> BTree<K,V> createInMemoryBTree(String name, ElementSerializer<K> keySerializer, ElementSerializer<V> valueSerializer, int pageSize)
name
- The BTree's namekeySerializer
- Key serializervalueSerializer
- Value serializerpageSize
- Size of the pageIOException
public static <K,V> BTree<K,V> createInMemoryBTree(String name, String filePath, ElementSerializer<K> keySerializer, ElementSerializer<V> valueSerializer)
name
- The BTree's namefilePath
- The name of the data directory with absolute pathkeySerializer
- Key serializervalueSerializer
- Value serializerIOException
public static <K,V> BTree<K,V> createInMemoryBTree(String name, String filePath, ElementSerializer<K> keySerializer, ElementSerializer<V> valueSerializer, int pageSize)
name
- The BTree's namefilePath
- The name of the data directory with absolute pathkeySerializer
- Key serializervalueSerializer
- Value serializerpageSize
- Size of the pageIOException
public static <K,V> BTree<K,V> createInMemoryBTree(String name, String filePath, ElementSerializer<K> keySerializer, ElementSerializer<V> valueSerializer, int pageSize, boolean allowDuplicates)
name
- The BTree's namefilePath
- The name of the data directory with absolute pathkeySerializer
- Key serializervalueSerializer
- Value serializerpageSize
- Size of the pageallowDuplicates
- Tells if the BTree allows multiple value for a given keyIOException
Copyright © 2012-2014 Apache Mavibot Project Parent. All Rights Reserved.