55 if (*r1 < *r2)
return true;
81 PQEntry(
Record* r, uint32_t u32Index) : m_r(r), m_u32Index(u32Index) {}
87 if (*(e1.m_r) < *(e2.m_r))
return true;
97 bool m_bInsertionPhase;
98 uint32_t m_u32PageSize;
99 uint32_t m_u32BufferPages;
100 std::shared_ptr<Tools::TemporaryFile> m_sortedFile;
101 std::list<std::shared_ptr<Tools::TemporaryFile> > m_runs;
102 std::vector<Record*> m_buffer;
103 uint64_t m_u64TotalEntries;
116 uint32_t numberOfPages
122 std::shared_ptr<ExternalSorter> es,
127 std::shared_ptr<ExternalSorter> es2,
129 uint32_t numberOfPages
134 std::vector<ExternalSorter::Record*>& e,
void createLevel(RTree *pTree, std::shared_ptr< ExternalSorter > es, uint32_t dimension, uint32_t indexSize, uint32_t leafSize, uint32_t level, std::shared_ptr< ExternalSorter > es2, uint32_t pageSize, uint32_t numberOfPages)
void bulkLoadUsingSTR(RTree *pTree, IDataStream &stream, uint32_t bindex, uint32_t bleaf, uint32_t pageSize, uint32_t numberOfPages)
Node * createNode(RTree *pTree, std::vector< ExternalSorter::Record * > &e, uint32_t level)
bool operator<(const Record &r) const
void loadFromFile(Tools::TemporaryFile &f)
void storeToFile(Tools::TemporaryFile &f)
ExternalSorter(uint32_t u32PageSize, uint32_t u32BufferPages)
uint64_t getTotalEntries() const
virtual ~ExternalSorter()
bool operator()(const PQEntry &e1, const PQEntry &e2)
bool operator()(Record *const r1, Record *const r2)