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
Fields Modifier and Type Field Description protected static IndexCounts
indexCounts
protected SortedRanges
pendingSr
Fields inherited from interface com.illumon.iris.db.v2.utils.TreeIndexImpl.SequentialBuilder
check, outOfOrderKeyErrorMsg
-
Constructor Summary
Constructors Constructor Description AbstractTreeIndexImplRandomBuilder()
-
Method Summary
Modifier and Type Method Description void
add(RspBitmap other, boolean acquire)
void
add(SortedRanges other, boolean acquire)
void
addIndex(Index idx)
void
addKey(long key)
void
addKeys(PrimitiveIterator.OfLong it)
void
addRange(long firstKey, long lastKey)
void
addRanges(LongRangeIterator it)
protected boolean
flushPendingRange()
protected void
flushPendingSrToInnerBuilder()
TreeIndexImpl
getTreeIndexImpl()
protected abstract TreeIndexImpl.RandomBuilder
innerBuilder()
protected abstract void
setInnerBuilderNull()
protected abstract void
setupInnerBuilderEmpty()
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
-
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
-