1
0
Fork 0

about to delete some junk

This commit is contained in:
James 2014-09-23 17:35:41 +01:00
parent b7a1247252
commit d9725b037b
2 changed files with 12 additions and 5 deletions

View File

@ -3500,7 +3500,7 @@ int64_t GatherBlock::remaining () {
return sum; return sum;
} }
bool GatherBlock::getBlock (size_t atLeast, size_t atMost) { /* bool GatherBlock::getBlock (size_t atLeast, size_t atMost) {
int64_t sum = 0; int64_t sum = 0;
while (sum < atLeast && _atDep < _dependencies.size()) { while (sum < atLeast && _atDep < _dependencies.size()) {
AqlItemBlock* docs = _dependencies[_atDep]->getSome(atLeast, atMost); AqlItemBlock* docs = _dependencies[_atDep]->getSome(atLeast, atMost);
@ -3522,9 +3522,9 @@ bool GatherBlock::getBlock (size_t atLeast, size_t atMost) {
} }
return true; return true;
} }*/
AqlItemBlock* GatherBlock::getSome (size_t atLeast, size_t atMost) { /*AqlItemBlock* GatherBlock::getSome (size_t atLeast, size_t atMost) {
if (_done) { if (_done) {
return nullptr; return nullptr;
@ -3584,7 +3584,7 @@ AqlItemBlock* GatherBlock::getSome (size_t atLeast, size_t atMost) {
} }
} }*/
// Local Variables: // Local Variables:
// mode: outline-minor // mode: outline-minor

View File

@ -1521,11 +1521,18 @@ public:
AqlItemBlock*& result, AqlItemBlock*& result,
size_t& skipped);*/ size_t& skipped);*/
bool isSimple () {
auto en = static_cast<GatherNodeNode const*>(getPlanNode());
if (en.getElements().empty()) {
return true;
}
return false;
}
bool getBlock(size_t atLeast, size_t atMost); bool getBlock(size_t atLeast, size_t atMost);
size_t _atDep = 0; size_t _atDep = 0;
size_t _posInBlock = 0;
}; };