K
- The type for the keysV
- The type for the stored valuespublic class PersistedBTreeConfiguration<K,V> extends Object
Constructor and Description |
---|
PersistedBTreeConfiguration() |
Modifier and Type | Method and Description |
---|---|
BTreeTypeEnum |
getBtreeType() |
int |
getCacheSize() |
String |
getFilePath() |
ElementSerializer<K> |
getKeySerializer() |
String |
getName() |
int |
getPageSize() |
BTree<?,V> |
getParentBTree() |
long |
getReadTimeOut() |
ElementSerializer<V> |
getValueSerializer() |
int |
getWriteBufferSize() |
boolean |
isAllowDuplicates() |
void |
setAllowDuplicates(boolean allowDuplicates)
enable duplicate key support
|
void |
setBtreeType(BTreeTypeEnum btreeType) |
void |
setCacheSize(int cacheSize) |
void |
setFilePath(String filePath) |
void |
setKeySerializer(ElementSerializer<K> keySerializer) |
void |
setName(String name) |
void |
setPageSize(int pageSize) |
void |
setParentBTree(BTree<?,V> parentBTree) |
void |
setReadTimeOut(long readTimeOut) |
void |
setSerializers(ElementSerializer<K> keySerializer,
ElementSerializer<V> valueSerializer) |
void |
setValueSerializer(ElementSerializer<V> valueSerializer) |
void |
setWriteBufferSize(int writeBufferSize) |
public PersistedBTreeConfiguration()
public int getPageSize()
public void setPageSize(int pageSize)
pageSize
- the pageSize to setpublic ElementSerializer<K> getKeySerializer()
public ElementSerializer<V> getValueSerializer()
public void setSerializers(ElementSerializer<K> keySerializer, ElementSerializer<V> valueSerializer)
keySerializer
- the key serializer to setvalueSerializer
- the value serializer to setpublic void setKeySerializer(ElementSerializer<K> keySerializer)
serializer
- the key serializer to setpublic void setValueSerializer(ElementSerializer<V> valueSerializer)
serializer
- the key serializer to setpublic long getReadTimeOut()
public void setReadTimeOut(long readTimeOut)
readTimeOut
- the readTimeOut to setpublic String getFilePath()
public void setFilePath(String filePath)
filePath
- the filePath to setpublic int getWriteBufferSize()
public void setWriteBufferSize(int writeBufferSize)
writeBufferSize
- the writeBufferSize to setpublic boolean isAllowDuplicates()
public void setAllowDuplicates(boolean allowDuplicates)
allowDuplicates
- IllegalStateException
- if the B-tree was already initialized or when tried to turn off duplicate suport on
an existing B-tree containing duplicate keyspublic int getCacheSize()
public void setCacheSize(int cacheSize)
cacheSize
- the cacheSize to set.public BTree<?,V> getParentBTree()
public void setParentBTree(BTree<?,V> parentBTree)
cache
- the cache to set.public BTreeTypeEnum getBtreeType()
public void setBtreeType(BTreeTypeEnum btreeType)
btreeType
- The BtreeTypeCopyright © 2012–2015 Apache Mavibot Project Parent. All rights reserved.