|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.helidb.backend.bpluscrs.ConstantRecordSizeBPlusTreeBackendFactory<K,V>
K - The type of keys in the database.V - The type of values in the database.public class ConstantRecordSizeBPlusTreeBackendFactory<K,V>
This is a DatabaseBackendFactory for creating
ConstantRecordSizeBPlusTreeBackend backends.
ConstantRecordSizeBPlusTreeBackend| Constructor Summary | |
|---|---|
ConstantRecordSizeBPlusTreeBackendFactory(NodeRepositoryBuilder<K> nrb,
LogAdapterHolder lah)
Constructor. |
|
| Method Summary | |
|---|---|
DatabaseBackend<K,V,KeyAndValue<K,V>> |
create(DatabaseFiles f,
boolean readOnly)
Create a new backend for the supplied file. |
ConstantRecordSizeBPlusTreeBackendFactory<K,V> |
setKeyComparator(Comparator<? super K> cmp)
Add a custom key comparator for establishing the key ordering in the database backend. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstantRecordSizeBPlusTreeBackendFactory(NodeRepositoryBuilder<K> nrb,
LogAdapterHolder lah)
nrb - A builder for building a
NodeRepository that the B+ Tree can use.lah - A log adapter holder.| Method Detail |
|---|
public ConstantRecordSizeBPlusTreeBackendFactory<K,V> setKeyComparator(Comparator<? super K> cmp)
cmp - The comparator.
this.
public DatabaseBackend<K,V,KeyAndValue<K,V>> create(DatabaseFiles f,
boolean readOnly)
DatabaseBackendFactory
create in interface DatabaseBackendFactory<K,V,KeyAndValue<K,V>>f - The file(s) containing the database data. The implementation of
this method should be able to assume a specific DatabaseFiles
implementation. Which depends on the implementation of the database
backend to create.readOnly - Should the backend object be created read only?
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||