K
- The type for the keysV
- The type for the stored valuespublic class BTreeConfiguration<K,V> extends Object
Constructor and Description |
---|
BTreeConfiguration() |
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 long getJournalSize()
public void setJournalSize(long journalSize)
journalSize
- the journalSize to setpublic long getCheckPointDelay()
public void setCheckPointDelay(long checkPointDelay)
checkPointDelay
- the checkPointDelay to setpublic String getFilePath()
public void setFilePath(String filePath)
filePath
- the filePath to setpublic String getJournalName()
public void setJournalName(String journalName)
journalName
- the journal name to setpublic int getWriteBufferSize()
public void setWriteBufferSize(int writeBufferSize)
writeBufferSize
- the writeBufferSize to setpublic String getName()
public void setName(String name)
name
- the name to setpublic boolean isAllowDuplicates()
public void setAllowDuplicates(boolean allowDuplicates)
allowDuplicates
- IllegalStateException
- if the btree was already initialized or when tried to turn off duplicate suport on
an existing btree containing duplicate keyspublic int getCacheSize()
public void setCacheSize(int cacheSize)
cacheSize
- the cacheSize to set.public void setParentBTree(BTree<?,V> parentBTree)
cache
- the cache to set.public boolean isSubBtree()
public void setSubBtree(boolean isSubBtree)
isSubBtree
- True if the BTree will be a sub btree, false otherwiseCopyright © 2012-2013 Apache Mavibot Project Parent. All Rights Reserved.