private static class IndexStatisticsDaemonImpl.KeyComparator
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
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 | Description |
|---|---|
KeyComparator(ExecIndexRow ir) |
Creates a key comparator for the given index.
|
| Modifier and Type | Method | Description |
|---|---|---|
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.
|
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
public KeyComparator(ExecIndexRow ir)
ir - index row (template)public int fetchRows(GroupFetchScanController gsc) throws StandardException
gsc - the scan controllerStandardException - if fetching rows failspublic 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()
Apache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.