|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.services.daemon.IndexStatisticsDaemonImpl.KeyComparator
private static class IndexStatisticsDaemonImpl.KeyComparator
Support class used to compare keys when scanning indexes.
| Field Summary | |
|---|---|
private DataValueDescriptor[] |
curr
|
private static int |
FETCH_SIZE
Number of rows fetched per iteration. |
private DataValueDescriptor[] |
lastUniqueKey
|
private long |
numRows
|
private DataValueDescriptor[] |
prev
|
private DataValueDescriptor[][] |
rowBufferArray
|
private int |
rowsReadLastRead
|
| Constructor Summary | |
|---|---|
IndexStatisticsDaemonImpl.KeyComparator(ExecIndexRow ir)
Creates a key comparator for the given index. |
|
| Method Summary | |
|---|---|
int |
compareWithPrevKey(int index)
Compares the key at the specified index with the previous key. |
int |
fetchRows(GroupFetchScanController gsc)
Fetches rows from the scan controller. |
long |
getRowCount()
Returns the number of rows fetched. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int FETCH_SIZE
private final DataValueDescriptor[][] rowBufferArray
private DataValueDescriptor[] lastUniqueKey
private DataValueDescriptor[] curr
private DataValueDescriptor[] prev
private int rowsReadLastRead
private long numRows
| Constructor Detail |
|---|
public IndexStatisticsDaemonImpl.KeyComparator(ExecIndexRow ir)
ir - index row (template)| Method Detail |
|---|
public int fetchRows(GroupFetchScanController gsc)
throws StandardException
gsc - the scan controller
StandardException - if fetching rows fails
public int compareWithPrevKey(int index)
throws StandardException
index - row index
-1 if the current and previous key are identical,
the index of the changed part of the key otherwise
([0, key length>)
StandardException - if comparing the two keys failspublic long getRowCount()
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||