|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.helidb.backend.heapcrs.ConstantRecordSizeHeapBackendBuilder<K,V>
K
- The type of keys in the backend.V
- The type of values in the backend.public class ConstantRecordSizeHeapBackendBuilder<K,V>
This is a builder for ConstantRecordSizeHeapBackend
objects. A
builder object may be reused to create several backends with similar
configurations.
ConstantRecordSizeHeapBackend
Constructor Summary | |
---|---|
ConstantRecordSizeHeapBackendBuilder()
|
Method Summary | |
---|---|
ConstantRecordSizeHeapBackend<K,V> |
create(RandomlyAccessibleFile f)
Create a new backend object. |
ConstantRecordSizeHeapBackendBuilder<K,V> |
setBufferSize(int size)
Set the size of temporary in-memory buffers used by the backend. |
ConstantRecordSizeHeapBackendBuilder<K,V> |
setKeySerializer(Serializer<K> serializer)
Set the key serializer. |
ConstantRecordSizeHeapBackendBuilder<K,V> |
setLogAdapterHolder(LogAdapterHolder lah)
Set the log adapter holder. |
ConstantRecordSizeHeapBackendBuilder<K,V> |
setReadOnly(boolean b)
Should the created backend be read only? The default value is false . |
ConstantRecordSizeHeapBackendBuilder<K,V> |
setStartPosOfDb(long pos)
Set the start position of database data in the database file. |
ConstantRecordSizeHeapBackendBuilder<K,V> |
setValueSerializer(Serializer<V> serializer)
Set the value serializer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstantRecordSizeHeapBackendBuilder()
Method Detail |
---|
public ConstantRecordSizeHeapBackendBuilder<K,V> setReadOnly(boolean b)
false
.
b
- Should the created backend be read only?
this
public ConstantRecordSizeHeapBackendBuilder<K,V> setKeySerializer(Serializer<K> serializer)
serializer
- The key serializer.
this
public ConstantRecordSizeHeapBackendBuilder<K,V> setValueSerializer(Serializer<V> serializer)
serializer
- The value serializer.
this
public ConstantRecordSizeHeapBackendBuilder<K,V> setStartPosOfDb(long pos) throws IllegalArgumentException
pos
- The start position of database data in the database file.
this
IllegalArgumentException
- If pos < 0
.public ConstantRecordSizeHeapBackendBuilder<K,V> setBufferSize(int size) throws IllegalArgumentException
size
- The size of temporary in-memory buffers, in bytes.
this
IllegalArgumentException
- If size < 1
public ConstantRecordSizeHeapBackendBuilder<K,V> setLogAdapterHolder(LogAdapterHolder lah)
StdOutLogAdapter
.
lah
- The log adapter holder.
this
public ConstantRecordSizeHeapBackend<K,V> create(RandomlyAccessibleFile f)
f
- The database file.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |