Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
BTreeSetMaker(String name) |
Modifier and Type | Method and Description |
---|---|
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.
|
<K> NavigableSet<K> |
make() |
NavigableSet<Long> |
makeLongSet()
creates set optimized for using zero or positive `Long`
|
<K> NavigableSet<K> |
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.
|
<K> DB.BTreeSetMaker |
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.
|
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
public BTreeSetMaker(String name)
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()
Copyright © 2018. All rights reserved.