|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.helidb.backend.index.bplus.BPlusTreeIndexBackendBuilder<K,H>
K
- The type of keys in the backend index.H
- The type of hash that the keys are hashed to.public class BPlusTreeIndexBackendBuilder<K,H extends Comparable<H>>
This is a builder for BPlusTreeIndexBackend
objects. This object can
be reused to create multiple instances with similar configuration.
BPlusTreeIndexBackend
Constructor Summary | |
---|---|
BPlusTreeIndexBackendBuilder()
|
Method Summary | ||
---|---|---|
|
create(DatabaseBackend<K,V,P> backend,
BPlusTree<H,P> tree)
Create a BPlusTreeIndexBackend |
|
BPlusTreeIndexBackendBuilder<K,H> |
setKeyHasher(Hasher<K,H> hasher)
Set the hasher for hashing database keys. |
|
BPlusTreeIndexBackendBuilder<K,H> |
setLogAdapterHolder(LogAdapterHolder lah)
Set the log adapter holder. |
|
BPlusTreeIndexBackendBuilder<K,H> |
setReadOnly(boolean b)
Set if the index should be read only. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BPlusTreeIndexBackendBuilder()
Method Detail |
---|
public BPlusTreeIndexBackendBuilder<K,H> setReadOnly(boolean b)
false
.
b
- Should the backend be read only?
this
public BPlusTreeIndexBackendBuilder<K,H> setKeyHasher(Hasher<K,H> hasher)
hasher
- The key hasher.
this
.public BPlusTreeIndexBackendBuilder<K,H> setLogAdapterHolder(LogAdapterHolder lah)
StdOutLogAdapter
is
used.
lah
- The log adapter holder.
this
.public <V,P> BPlusTreeIndexBackend<K,V,H,P> create(DatabaseBackend<K,V,P> backend, BPlusTree<H,P> tree)
BPlusTreeIndexBackend
V
- The type of values in the proxied backend.P
- The type of positions in the proxied backend.backend
- The proxied backend.tree
- The B+ Tree to store the index in.
BPlusTreeIndexBackend
object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |