|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.store.access.sort.MergeInserter
final class MergeInserter
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
MergeInserter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
MergeInserter()
| Method Detail |
|---|
public void insert(DataValueDescriptor[] row)
throws StandardException
insert in interface SortControllerrow - 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 SortControllerSortController.completedInserts()
public SortInfo getSortInfo()
throws StandardException
getSortInfo in interface SortControllerStandardException - Standard exception policy.SortInfo
boolean initialize(MergeSort sort,
TransactionManager tran)
|
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 | ||||||||