| Modifier and Type | Field and Description |
|---|---|
protected boolean |
counter |
protected Executor |
executor |
protected String |
name |
protected int |
nodeSize |
protected boolean |
pumpIgnoreDuplicates |
protected int |
pumpPresortBatchSize |
protected Iterator<?> |
pumpSource |
protected boolean |
standalone |
| Constructor and Description |
|---|
DB.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.
|
protected BTreeKeySerializer |
getSerializer() |
<K> NavigableSet<K> |
make() |
NavigableSet<Long> |
makeLongSet()
Deprecated.
MapDB 1.0 compat, will be removed in 2.1
|
<K> NavigableSet<K> |
makeOrGet() |
NavigableSet<String> |
makeStringSet()
Deprecated.
MapDB 1.0 compat, will be removed in 2.1
|
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 |
pumpSource(NavigableSet m) |
DB.BTreeSetMaker |
serializer(BTreeKeySerializer serializer)
serializer used to convert keys into/from binary form.
|
DB.BTreeSetMaker |
serializer(Serializer serializer)
serializer used to convert keys into/from binary form.
|
DB.BTreeSetMaker |
serializer(Serializer serializer,
Comparator comparator)
serializer used to convert keys into/from binary form.
|
protected DB.BTreeSetMaker |
standalone() |
protected final String name
protected int nodeSize
protected boolean counter
protected Iterator<?> pumpSource
protected int pumpPresortBatchSize
protected boolean pumpIgnoreDuplicates
protected boolean standalone
protected Executor executor
public DB.BTreeSetMaker(String name)
public DB.BTreeSetMaker nodeSize(int nodeSize)
public DB.BTreeSetMaker counterEnable()
public DB.BTreeSetMaker serializer(BTreeKeySerializer serializer)
public DB.BTreeSetMaker serializer(Serializer serializer)
public DB.BTreeSetMaker serializer(Serializer serializer, Comparator comparator)
public DB.BTreeSetMaker comparator(Comparator<?> comparator)
protected BTreeKeySerializer getSerializer()
public DB.BTreeSetMaker pumpSource(Iterator<?> source)
public DB.BTreeSetMaker pumpSource(NavigableSet m)
public <K> DB.BTreeSetMaker pumpIgnoreDuplicates()
public DB.BTreeSetMaker pumpPresort(int batchSize)
protected DB.BTreeSetMaker standalone()
public <K> NavigableSet<K> make()
public <K> NavigableSet<K> makeOrGet()
public NavigableSet<String> makeStringSet()
Stringpublic NavigableSet<Long> makeLongSet()
LongCopyright © 2015. All Rights Reserved.