ExternalSortExecStreamParams Struct Reference

ExternalSortExecStreamParams defines parameters for instantiating an ExternalSortExecStream. More...

#include <ExternalSortExecStream.h>

Inheritance diagram for ExternalSortExecStreamParams:

ConduitExecStreamParams SingleInputExecStreamParams SingleOutputExecStreamParams ExecStreamParams ExecStreamParams List of all members.

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.

Detailed Description

ExternalSortExecStreamParams defines parameters for instantiating an ExternalSortExecStream.

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.


Member Data Documentation

Distinctness ExternalSortExecStreamParams::distinctness

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().

SharedSegment ExternalSortExecStreamParams::pTempSegment

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().

TupleProjection ExternalSortExecStreamParams::keyProj

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().

bool ExternalSortExecStreamParams::storeFinalRun

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().

RecordNum ExternalSortExecStreamParams::estimatedNumRows

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().

bool ExternalSortExecStreamParams::earlyClose

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().


The documentation for this struct was generated from the following file:
Generated on Mon Jun 22 04:00:31 2009 for Fennel by  doxygen 1.5.1