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.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | childCount
Count of child results. |
| private final MVTempResult. | closeable
Closeable to close the storage. |
| pack-priv boolean | closed
Whether this result is closed. |
| private final Database | |
| pack-priv final Expression[] | expressions
Column expressions. |
| private final Reference | fileRef
Reference to the record in the temporary file deleter. |
| pack-priv final MVTempResult | parent
Parent store for copies. |
| pack-priv final int | resultColumnCount
Total count of columns. |
| pack-priv int | rowCount
Count of rows. |
| pack-priv final MVStore | store
MVStore. |
| private final TempFileDeleter | tempFileDeleter
Temporary file deleter. |
| pack-priv final int | visibleColumnCount
Count of visible columns. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | MVTempResult(Database
database database, Expression[] column expressions expressions, int count of visible columns visibleColumnCount, int total count of columns resultColumnCount)Creates a new temporary result. |
| Modifier and Type | Method and Description |
|---|---|
| public int | addRows(Collection<Value[]>
the list of rows to add rows)Implements org. Add a number of rows to the result. |
| public synchronized void | close()
Implements org. Close this object and delete the temporary file. |
| private synchronized void | |
| private void | |
| public static ResultExternal | Returns: temporary resultdatabase database, Expression[] expressions expressions, boolean is output distinct distinct, int[] indexes of distinct columns for DISTINCT ON results distinctIndexes, int count of visible columns visibleColumnCount, int the number of columns including visible columns and additional
virtual columns for ORDER BY and DISTINCT ON clauses resultColumnCount, SortOrder sort order, or sort)nullCreates MVStore-based temporary result. |
| childCount | back to summary |
|---|---|
| pack-priv int childCount Count of child results. | |
| closeable | back to summary |
|---|---|
| private final MVTempResult. Closeable to close the storage. | |
| closed | back to summary |
|---|---|
| pack-priv boolean closed Whether this result is closed. | |
| database | back to summary |
|---|---|
| private final Database database | |
| expressions | back to summary |
|---|---|
| pack-priv final Expression[] expressions Column expressions. | |
| fileRef | back to summary |
|---|---|
| private final Reference<?> fileRef Reference to the record in the temporary file deleter. | |
| parent | back to summary |
|---|---|
| pack-priv final MVTempResult parent Parent store for copies. If | |
| resultColumnCount | back to summary |
|---|---|
| pack-priv final int resultColumnCount Total count of columns. | |
| rowCount | back to summary |
|---|---|
| pack-priv int rowCount Count of rows. Used only in a root results, copies always have 0 value. | |
| store | back to summary |
|---|---|
| pack-priv final MVStore store MVStore. | |
| tempFileDeleter | back to summary |
|---|---|
| private final TempFileDeleter tempFileDeleter Temporary file deleter. | |
| visibleColumnCount | back to summary |
|---|---|
| pack-priv final int visibleColumnCount Count of visible columns. | |
| MVTempResult | back to summary |
|---|---|
| pack-priv MVTempResult(MVTempResult parent) Creates a shallow copy of the result.
| |
| MVTempResult | back to summary |
|---|---|
| pack-priv MVTempResult(Database database, Expression[] expressions, int visibleColumnCount, int resultColumnCount) Creates a new temporary result.
| |
| addRows | back to summary |
|---|---|
| public int addRows(Collection<Value[]> rows) Implements org. Doc from org. Add a number of rows to the result.
| |
| close | back to summary |
|---|---|
| public synchronized void close() Implements org. Doc from org. Close this object and delete the temporary file.
| |
| closeChild | back to summary |
|---|---|
| private synchronized void closeChild() | |
| delete | back to summary |
|---|---|
| private void delete() | |
| of | back to summary |
|---|---|
| public static ResultExternal of(Database database, Expression[] expressions, boolean distinct, int[] distinctIndexes, int visibleColumnCount, int resultColumnCount, SortOrder sort) Creates MVStore-based temporary result.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | fileName
File name. |
| private final MVStore | store
MVStore. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this resource, relinquishing any underlying resources. |
| fileName | back to summary |
|---|---|
| private final String fileName File name. | |
| store | back to summary |
|---|---|
| private final MVStore store MVStore. | |
| CloseImpl | back to summary |
|---|---|
| pack-priv CloseImpl(MVStore store, String fileName) | |
| close | back to summary |
|---|---|
| public void close() throws Exception Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |