private static class IndexStatisticsDaemonImpl.KeyComparator
extends java.lang.Object
Modifier and Type | Field and 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 and Description |
---|
KeyComparator(ExecIndexRow ir)
Creates a key comparator for the given index.
|
Modifier and Type | Method and 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.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.