|
Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Classes | |
| class | TupleIterator |
Public Member Functions | |
| TupleSorter (const TupleRowComparator &less_than_comp, int64_t block_size, int tuple_size, RuntimeState *state) | |
| ~TupleSorter () | |
| void | Sort (Run *run) |
Private Member Functions | |
| void | InsertionSort (const TupleIterator &first, const TupleIterator &last) |
| TupleIterator | Partition (TupleIterator first, TupleIterator last, Tuple *pivot) |
| void | SortHelper (TupleIterator first, TupleIterator last) |
| void | Swap (uint8_t *left, uint8_t *right) |
Private Attributes | |
| const int | tuple_size_ |
| const int | block_capacity_ |
| const int | last_tuple_block_offset_ |
| const TupleRowComparator | less_than_comp_ |
| RuntimeState *const | state_ |
| Run * | run_ |
| TupleRow * | temp_tuple_row_ |
| uint8_t * | temp_tuple_buffer_ |
| uint8_t * | swap_buffer_ |
Static Private Attributes | |
| static const int | INSERTION_THRESHOLD = 16 |
| impala::Sorter::TupleSorter::TupleSorter | ( | const TupleRowComparator & | less_than_comp, |
| int64_t | block_size, | ||
| int | tuple_size, | ||
| RuntimeState * | state | ||
| ) |
Definition at line 758 of file sorter.cc.
References swap_buffer_, temp_tuple_buffer_, and temp_tuple_row_.
|
private |
|
private |
| void impala::Sorter::TupleSorter::Sort | ( | Run * | run | ) |
Definition at line 775 of file sorter.cc.
References impala::Sorter::Run::is_sorted_.
|
private |
Definition at line 845 of file sorter.cc.
References impala::Sorter::TupleSorter::TupleIterator::current_tuple_, impala::Sorter::TupleSorter::TupleIterator::index_, impala::RuntimeState::is_cancelled(), impala::Sorter::state_, and UNLIKELY.
|
inlineprivate |
|
private |
Definition at line 296 of file sorter.cc.
Referenced by impala::Sorter::TupleSorter::TupleIterator::TupleIterator().
|
staticprivate |
|
private |
|
private |
|
private |
Definition at line 308 of file sorter.cc.
Referenced by impala::Sorter::TupleSorter::TupleIterator::TupleIterator().
|
private |
|
private |
Definition at line 314 of file sorter.cc.
Referenced by TupleSorter().
|
private |
Definition at line 313 of file sorter.cc.
Referenced by TupleSorter().
|
private |
Definition at line 312 of file sorter.cc.
Referenced by TupleSorter().
|
private |
Definition at line 293 of file sorter.cc.
Referenced by impala::Sorter::TupleSorter::TupleIterator::TupleIterator().