private static final class IndexData.Position extends java.lang.Object implements java.lang.Comparable<IndexData.Position>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
_between
true if this entry does not currently exist in the entry list,
false otherwise (this is equivalent to adding -0.5 to the
_idx) |
private IndexData.DataPage |
_dataPage
the last known page of the given entry
|
private IndexData.Entry |
_entry
the entry at the given index
|
private int |
_idx
the last known index of the given entry
|
| Modifier | Constructor and Description |
|---|---|
private |
Position(IndexData.DataPage dataPage,
int idx) |
private |
Position(IndexData.DataPage dataPage,
int idx,
IndexData.Entry entry,
boolean between) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(IndexData.Position other) |
boolean |
equals(java.lang.Object o) |
boolean |
equalsEntry(IndexData.Entry entry) |
IndexData.DataPage |
getDataPage() |
IndexData.Entry |
getEntry() |
int |
getIndex() |
int |
getNextIndex() |
int |
getPrevIndex() |
int |
hashCode() |
boolean |
isBetween() |
java.lang.String |
toString() |
private final IndexData.DataPage _dataPage
private final int _idx
private final IndexData.Entry _entry
private final boolean _between
true if this entry does not currently exist in the entry list,
false otherwise (this is equivalent to adding -0.5 to the
_idx)private Position(IndexData.DataPage dataPage, int idx)
private Position(IndexData.DataPage dataPage, int idx, IndexData.Entry entry, boolean between)
public IndexData.DataPage getDataPage()
public int getIndex()
public int getNextIndex()
public int getPrevIndex()
public IndexData.Entry getEntry()
public boolean isBetween()
public boolean equalsEntry(IndexData.Entry entry)
public int compareTo(IndexData.Position other)
compareTo in interface java.lang.Comparable<IndexData.Position>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object