final class MergeInserter extends java.lang.Object implements SortController
Modifier and Type | Field and Description |
---|---|
private boolean |
avoidMergeRun |
private long |
beginFreeMemory
Information about memory usage to dynamically tune the
in-memory sort buffer size.
|
private long |
beginTotalMemory |
private long |
estimatedMemoryUsed |
private java.util.Vector |
mergeRuns
A vector of the conglomerate ids of the merge runs.
|
private int |
runSize |
private MergeSort |
sort
The sort this inserter is for.
|
private SortBuffer |
sortBuffer
An in-memory ordered set that is used to sort rows
before they're sent to merge runs.
|
(package private) java.util.Vector |
stat_mergeRunsSize |
(package private) int |
stat_numMergeRuns |
(package private) int |
stat_numRowsInput |
(package private) int |
stat_numRowsOutput |
(package private) java.lang.String |
stat_sortType |
private int |
totalRunSize |
private TransactionManager |
tran
The transaction this inserter is in.
|
Constructor and Description |
---|
MergeInserter() |
Modifier and Type | Method and Description |
---|---|
void |
completedInserts()
Called when the caller has completed
inserting rows into the sorter.
|
SortInfo |
getSortInfo()
Return SortInfo object which contains information about the current
sort.
|
(package private) boolean |
initialize(MergeSort sort,
TransactionManager tran)
Initialize this inserter.
|
void |
insert(DataValueDescriptor[] row)
Insert a row into the sort.
|
private MergeSort sort
private TransactionManager tran
private java.util.Vector mergeRuns
private SortBuffer sortBuffer
private long beginFreeMemory
private long beginTotalMemory
private long estimatedMemoryUsed
private boolean avoidMergeRun
private int runSize
private int totalRunSize
java.lang.String stat_sortType
int stat_numRowsInput
int stat_numRowsOutput
int stat_numMergeRuns
java.util.Vector stat_mergeRunsSize
public void insert(DataValueDescriptor[] row) throws StandardException
insert
in interface SortController
row
- The row to insert into the SortController. The stored
representations of the row's columns are copied into a new row
somewhere in the sort.StandardException
- Standard exception policy.SortController.insert(org.apache.derby.iapi.types.DataValueDescriptor[])
public void completedInserts()
completedInserts
in interface SortController
SortController.completedInserts()
public SortInfo getSortInfo() throws StandardException
getSortInfo
in interface SortController
StandardException
- Standard exception policy.SortInfo
boolean initialize(MergeSort sort, TransactionManager tran)
Apache Derby V10.10 Internals - Copyright © 2004,2013 The Apache Software Foundation. All Rights Reserved.