public abstract class MVTempResult extends Object implements ResultExternal
A separate MVStore in a temporary file is used for each result. The file is
removed when this result and all its copies are closed.
TempFileDeleter is also used to delete this file if results are not
closed properly.
| 限定符和类型 | 方法和说明 |
|---|---|
int |
addRows(Collection<Value[]> rows)
Add a number of rows to the result.
|
void |
close()
Close this object and delete the temporary file.
|
static ResultExternal |
of(Database database,
Expression[] expressions,
boolean distinct,
int[] distinctIndexes,
int visibleColumnCount,
int resultColumnCount,
SortOrder sort)
Creates MVStore-based temporary result.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRow, contains, createShallowCopy, next, removeRow, resetpublic static ResultExternal of(Database database, Expression[] expressions, boolean distinct, int[] distinctIndexes, int visibleColumnCount, int resultColumnCount, SortOrder sort)
database - databaseexpressions - expressionsdistinct - is output distinctdistinctIndexes - indexes of distinct columns for DISTINCT ON resultsvisibleColumnCount - count of visible columnsresultColumnCount - the number of columns including visible columns and additional
virtual columns for ORDER BY and DISTINCT ON clausessort - sort order, or nullpublic int addRows(Collection<Value[]> rows)
ResultExternaladdRows 在接口中 ResultExternalrows - the list of rows to addpublic void close()
ResultExternalclose 在接口中 ResultExternalCopyright © 2022. All rights reserved.