K - The type for the KeyV - The type for the stored valueclass SplitResult<K,V> extends AbstractResult<K,V> implements InsertResult<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected Page<K,V> |
leftPage
The left child
|
protected K |
pivot
The key pivot
|
protected Page<K,V> |
rightPage
The right child
|
| Constructor and Description |
|---|
SplitResult(K pivot,
Page<K,V> leftPage,
Page<K,V> rightPage)
The default constructor for SplitResult.
|
SplitResult(java.util.List<Page<K,V>> copiedPages,
K pivot,
Page<K,V> leftPage,
Page<K,V> rightPage)
A constructor for SplitResult with copied pages.
|
| Modifier and Type | Method and Description |
|---|---|
Page<K,V> |
getLeftPage() |
K |
getPivot() |
Page<K,V> |
getRightPage() |
java.lang.String |
toString() |
addCopiedPage, getCopiedPagesclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddCopiedPage, getCopiedPagesprotected K pivot
public SplitResult(K pivot, Page<K,V> leftPage, Page<K,V> rightPage)
pivot - The new key to insert into the parentleftPage - The new left pagerightPage - The new right pagepublic SplitResult(java.util.List<Page<K,V>> copiedPages, K pivot, Page<K,V> leftPage, Page<K,V> rightPage)
copiedPages - the list of copied pagespivot - The new key to insert into the parentleftPage - The new left pagerightPage - The new right pagepublic K getPivot()
public java.lang.String toString()
toString in class AbstractResult<K,V>Object.toString()