10 namespace SWC {
namespace DB {
namespace Cells {
16 for(
auto cell : *
this) {
17 if(!cell->has_expired(
ttl))
23 Interval& intval, uint32_t threshold,
29 Cell* first =
nullptr;
32 for(
Cell* cell; it != cend() && (
33 (!threshold || threshold > cells.
fill()) &&
34 (!max_cells || max_cells > cell_count) ); ++it) {
35 if((cell = *it)->has_expired(
ttl))
39 intval.
expand(cell->get_timestamp());
40 intval.
align(cell->key);
41 (first ? last : first) = cell;
57 bytes -= (*it)->encoded_length();
59 }
while(it != cbegin());
60 erase(cbegin(), it_end);
65 bool with_cells)
const {
66 out <<
"CellsResult(size=" <<
size()
67 <<
" bytes=" <<
bytes <<
" ttl=" <<
ttl;
70 for(
auto cell : *
this)
71 cell->print(out <<
'\n', col_type);