#include <ExternalSortExecStream.h>
Inheritance diagram for ExternalSortExecStreamParams:
Public Attributes | |
Distinctness | distinctness |
Mode for dealing with duplicate values. | |
SharedSegment | pTempSegment |
Segment to use for storing temp pages. | |
TupleProjection | keyProj |
Sort key projection (relative to tupleDesc). | |
std::vector< bool > | descendingKeyColumns |
Vector with positions corresponding to those of keyProj; true indicates a descending key column, while false indicates asscending. | |
bool | storeFinalRun |
Whether to materialize one big final run, or return results directly from last merge stage. | |
RecordNum | estimatedNumRows |
Estimate of the number of rows in the sort input. | |
bool | earlyClose |
If true, close producers once all input has been read. |
Note that when distinctness is DUP_DISCARD, the key should normally be the whole tuple to avoid non-determinism with respect to which tuples are discarded.
Definition at line 41 of file ExternalSortExecStream.h.
Mode for dealing with duplicate values.
Definition at line 47 of file ExternalSortExecStream.h.
Referenced by LbmExecStreamTestBase::initSorterExecStream(), LbmSearchTest::loadTableAndIndex(), ExternalSortExecStreamImpl::prepare(), LhxAggExecStreamTest::testGroupCountImpl(), LhxJoinExecStreamTest::testImpl(), ExternalSortExecStreamTest::testImpl(), LbmLoadBitmapTest::testLoad(), LhxAggExecStreamTest::testSingleValueImpl(), and ExecStreamFactory::visit().
Segment to use for storing temp pages.
Definition at line 52 of file ExternalSortExecStream.h.
Referenced by LbmExecStreamTestBase::initSorterExecStream(), LbmSearchTest::loadTableAndIndex(), ExternalSortExecStreamImpl::prepare(), LhxAggExecStreamTest::testGroupCountImpl(), LhxJoinExecStreamTest::testImpl(), ExternalSortExecStreamTest::testImpl(), LbmLoadBitmapTest::testLoad(), LhxAggExecStreamTest::testSingleValueImpl(), and ExecStreamFactory::visit().
Sort key projection (relative to tupleDesc).
Definition at line 57 of file ExternalSortExecStream.h.
Referenced by LbmExecStreamTestBase::initSorterExecStream(), LbmSearchTest::loadTableAndIndex(), ExternalSortExecStreamImpl::prepare(), LhxAggExecStreamTest::testGroupCountImpl(), LhxJoinExecStreamTest::testImpl(), ExternalSortExecStreamTest::testImpl(), LbmLoadBitmapTest::testLoad(), LhxAggExecStreamTest::testSingleValueImpl(), and ExecStreamFactory::visit().
std::vector<bool> ExternalSortExecStreamParams::descendingKeyColumns |
Vector with positions corresponding to those of keyProj; true indicates a descending key column, while false indicates asscending.
If this vector is empty, all columns are assumed to be ascending; otherwise, it must be the same length as keyProj.
Definition at line 66 of file ExternalSortExecStream.h.
Referenced by ExternalSortExecStreamImpl::prepare(), ExternalSortExecStreamTest::testImpl(), and ExecStreamFactory::visit().
Whether to materialize one big final run, or return results directly from last merge stage.
Definition at line 72 of file ExternalSortExecStream.h.
Referenced by LbmExecStreamTestBase::initSorterExecStream(), LbmSearchTest::loadTableAndIndex(), ExternalSortExecStreamImpl::prepare(), LhxAggExecStreamTest::testGroupCountImpl(), LhxJoinExecStreamTest::testImpl(), ExternalSortExecStreamTest::testImpl(), LbmLoadBitmapTest::testLoad(), LhxAggExecStreamTest::testSingleValueImpl(), and ExecStreamFactory::visit().
Estimate of the number of rows in the sort input.
If MAXU, no stats were available to estimate this value.
Definition at line 78 of file ExternalSortExecStream.h.
Referenced by LbmExecStreamTestBase::initSorterExecStream(), LbmSearchTest::loadTableAndIndex(), ExternalSortExecStreamImpl::prepare(), LhxAggExecStreamTest::testGroupCountImpl(), LhxJoinExecStreamTest::testImpl(), ExternalSortExecStreamTest::testImpl(), LbmLoadBitmapTest::testLoad(), and ExecStreamFactory::visit().
If true, close producers once all input has been read.
Definition at line 83 of file ExternalSortExecStream.h.
Referenced by LbmExecStreamTestBase::initSorterExecStream(), LbmSearchTest::loadTableAndIndex(), ExternalSortExecStreamImpl::prepare(), LhxAggExecStreamTest::testGroupCountImpl(), LhxJoinExecStreamTest::testImpl(), ExternalSortExecStreamTest::testImpl(), LbmLoadBitmapTest::testLoad(), and ExecStreamFactory::visit().