Changeset 2912
- Timestamp:
- 04/01/14 13:47:06 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/STIdxIter.cpp
r2911 r2912 607 607 void STIdxIter2::init() 608 608 { 609 num_row_ = table_.nrow(); 609 610 for (uInt i = 0; i < cols_.size(); ++i) { 610 611 addSortKey(cols_[i]); 611 612 } 612 num_row_ = table_.nrow();613 613 sorter_.sort(index_, num_row_); 614 614 num_iter_ = sorter_.unique(unique_, index_); … … 653 653 void STIdxIter2::addColumnToKey(const string &name) 654 654 { 655 uInt nrow = table_.nrow(); 656 void *raw_storage = malloc(sizeof(T) * nrow); 655 void *raw_storage = malloc(sizeof(T) * num_row_); 657 656 T *storage = reinterpret_cast<T*>(raw_storage); 658 Vector<T> array(IPosition(1, n row), storage, SHARE);657 Vector<T> array(IPosition(1, num_row_), storage, SHARE); 659 658 ROScalarColumn<T> col(table_, name); 660 659 col.getColumn(array);
Note:
See TracChangeset
for help on using the changeset viewer.