|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mapdb.DB.BTreeSetMaker
public class DB.BTreeSetMaker
| Field Summary | |
|---|---|
protected Comparator<?> |
comparator
|
protected boolean |
counter
|
protected String |
name
|
protected int |
nodeSize
|
protected boolean |
pumpIgnoreDuplicates
|
protected int |
pumpPresortBatchSize
|
protected Iterator<?> |
pumpSource
|
protected BTreeKeySerializer<?> |
serializer
|
| Constructor Summary | |
|---|---|
DB.BTreeSetMaker(String name)
|
|
| Method Summary | ||
|---|---|---|
DB.BTreeSetMaker |
comparator(Comparator<?> comparator)
comparator used to sort keys. |
|
DB.BTreeSetMaker |
counterEnable()
by default collection does not have counter, without counter updates are faster, but entire collection needs to be traversed to count items. |
|
|
make()
|
|
NavigableSet<Long> |
makeLongSet()
creates set optimized for using zero or positive `Long` |
|
|
makeOrGet()
|
|
NavigableSet<String> |
makeStringSet()
creates set optimized for using `String` |
|
DB.BTreeSetMaker |
nodeSize(int nodeSize)
nodeSize maximal size of node, larger node causes overflow and creation of new BTree node. |
|
|
pumpIgnoreDuplicates()
If source iteretor contains an duplicate key, exception is thrown. |
|
DB.BTreeSetMaker |
pumpPresort(int batchSize)
|
|
DB.BTreeSetMaker |
pumpSource(Iterator<?> source)
|
|
DB.BTreeSetMaker |
serializer(BTreeKeySerializer<?> serializer)
keySerializer used to convert keys into/from binary form. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final String name
protected int nodeSize
protected boolean counter
protected BTreeKeySerializer<?> serializer
protected Comparator<?> comparator
protected Iterator<?> pumpSource
protected int pumpPresortBatchSize
protected boolean pumpIgnoreDuplicates
| Constructor Detail |
|---|
public DB.BTreeSetMaker(String name)
| Method Detail |
|---|
public DB.BTreeSetMaker nodeSize(int nodeSize)
public DB.BTreeSetMaker counterEnable()
public DB.BTreeSetMaker serializer(BTreeKeySerializer<?> serializer)
public DB.BTreeSetMaker comparator(Comparator<?> comparator)
public DB.BTreeSetMaker pumpSource(Iterator<?> source)
public <K> DB.BTreeSetMaker pumpIgnoreDuplicates()
public DB.BTreeSetMaker pumpPresort(int batchSize)
public <K> NavigableSet<K> make()
public <K> NavigableSet<K> makeOrGet()
public NavigableSet<String> makeStringSet()
public NavigableSet<Long> makeLongSet()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||