Package com.illumon.iris.db.v2.utils
Class AbstractTreeIndexImplRandomBuilder
java.lang.Object
com.illumon.iris.db.v2.utils.AbstractTreeIndexImplRandomBuilder
- All Implemented Interfaces:
LongRangeConsumer,TreeIndexImpl.RandomBuilder,TreeIndexImpl.SequentialBuilder
- Direct Known Subclasses:
AdaptiveBuilder,TreeIndexImplRandomBuilder
public abstract class AbstractTreeIndexImplRandomBuilder
extends Object
implements TreeIndexImpl.RandomBuilder
-
Field Summary
FieldsFields inherited from interface com.illumon.iris.db.v2.utils.TreeIndexImpl.SequentialBuilder
check, outOfOrderKeyErrorMsg -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidadd(SortedRanges other, boolean acquire) voidvoidaddKey(long key) voidvoidaddRange(long firstKey, long lastKey) voidprotected booleanprotected voidprotected abstract TreeIndexImpl.RandomBuilderprotected abstract voidprotected abstract voidprotected abstract voidsetupInnerBuilderForRange(long start, long end) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.illumon.iris.db.v2.utils.TreeIndexImpl.RandomBuilder
accept, add, appendKey, appendRangeMethods inherited from interface com.illumon.iris.db.v2.utils.TreeIndexImpl.SequentialBuilder
appendTreeIndexImpl, setDomain
-
Field Details
-
indexCounts
-
pendingSr
-
-
Constructor Details
-
AbstractTreeIndexImplRandomBuilder
public AbstractTreeIndexImplRandomBuilder()
-
-
Method Details
-
innerBuilder
-
setupInnerBuilderForRange
protected abstract void setupInnerBuilderForRange(long start, long end) -
setupInnerBuilderEmpty
protected abstract void setupInnerBuilderEmpty() -
setInnerBuilderNull
protected abstract void setInnerBuilderNull() -
flushPendingRange
protected boolean flushPendingRange() -
flushPendingSrToInnerBuilder
protected void flushPendingSrToInnerBuilder() -
getTreeIndexImpl
- Specified by:
getTreeIndexImplin interfaceTreeIndexImpl.SequentialBuilder
-
addKey
public void addKey(long key) - Specified by:
addKeyin interfaceTreeIndexImpl.RandomBuilder
-
addKeys
-
addRange
public void addRange(long firstKey, long lastKey) - Specified by:
addRangein interfaceTreeIndexImpl.RandomBuilder
-
addRanges
-
addIndex
-
add
- Specified by:
addin interfaceTreeIndexImpl.RandomBuilder
-
add
- Specified by:
addin interfaceTreeIndexImpl.RandomBuilder
-