K
- The type for the KeyV
- The type for the stored valuepublic class 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(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() |
String |
toString() |
addCopiedPage, getCopiedPages
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addCopiedPage, getCopiedPages
protected 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(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 String toString()
toString
in class AbstractResult<K,V>
Object.toString()
Copyright © 2012-2013 Apache Mavibot Project Parent. All Rights Reserved.