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 TypeMethodDescriptionvoid
void
add
(SortedRanges other, boolean acquire) void
void
addKey
(long key) void
void
addRange
(long firstKey, long lastKey) void
protected boolean
protected void
protected abstract TreeIndexImpl.RandomBuilder
protected abstract void
protected abstract void
protected abstract void
setupInnerBuilderForRange
(long start, long end) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.v2.utils.TreeIndexImpl.RandomBuilder
accept, add, appendKey, appendRange
Methods 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:
getTreeIndexImpl
in interfaceTreeIndexImpl.SequentialBuilder
-
addKey
public void addKey(long key) - Specified by:
addKey
in interfaceTreeIndexImpl.RandomBuilder
-
addKeys
-
addRange
public void addRange(long firstKey, long lastKey) - Specified by:
addRange
in interfaceTreeIndexImpl.RandomBuilder
-
addRanges
-
addIndex
-
add
- Specified by:
add
in interfaceTreeIndexImpl.RandomBuilder
-
add
- Specified by:
add
in interfaceTreeIndexImpl.RandomBuilder
-