This class takes allows vector access to a set of cells contained in an EventPtr without any copying. More...
#include <ScanCells.h>
Public Member Functions | |
ScanCells () | |
void | get (Cells &cells) |
void | get_cell_unchecked (Cell &cc, size_t ii) |
void | set_eos (bool eos=true) |
bool | get_eos () const |
size_t | size () const |
bool | empty () const |
size_t | memory_used () const |
ProfileDataScanner & | profile_data () |
Returns reference to profile data. More... | |
bool | add (EventPtr &event, int *scanner_id) |
Adds key/value pairs from scan result. More... | |
void | add (Cell &cell, bool own=true) |
adds a new cell to the internal cell buffer this is an internal method required by IndexScannerCallback More... | |
bool | load (SchemaPtr &schema, const std::string &end_row, bool end_inclusive, ScanLimitState *limit_state, CstrSet &rowset, int64_t *bytes_scanned, Key *lastkey) |
int | get_skipped_rows () |
get number of rows that were skipped because of an OFFSET predicate More... | |
int | get_skipped_cells () |
get number of cells that were skipped because of a CELL_OFFSET predicate More... | |
Protected Attributes | |
vector< ScanBlockPtr > | m_scanblocks |
CellsBuilderPtr | m_cells |
ProfileDataScanner | m_profile_data |
bool | m_eos {} |
This class takes allows vector access to a set of cells contained in an EventPtr without any copying.
Definition at line 46 of file ScanCells.h.
|
inline |
Definition at line 49 of file ScanCells.h.
bool ScanCells::add | ( | EventPtr & | event, |
int * | scanner_id | ||
) |
Adds key/value pairs from scan result.
event | the event that contains the scan results |
scanner_id | scanner_id for the scanner |
Aggregate profile data
Definition at line 30 of file ScanCells.cc.
void ScanCells::add | ( | Cell & | cell, |
bool | own = true |
||
) |
adds a new cell to the internal cell buffer this is an internal method required by IndexScannerCallback
Definition at line 153 of file ScanCells.cc.
|
inline |
Definition at line 69 of file ScanCells.h.
|
inline |
Definition at line 51 of file ScanCells.h.
|
inline |
Definition at line 59 of file ScanCells.h.
|
inline |
Definition at line 61 of file ScanCells.h.
|
inline |
get number of cells that were skipped because of a CELL_OFFSET predicate
Definition at line 126 of file ScanCells.h.
|
inline |
get number of rows that were skipped because of an OFFSET predicate
Definition at line 115 of file ScanCells.h.
bool ScanCells::load | ( | SchemaPtr & | schema, |
const std::string & | end_row, | ||
bool | end_inclusive, | ||
ScanLimitState * | limit_state, | ||
CstrSet & | rowset, | ||
int64_t * | bytes_scanned, | ||
Key * | lastkey | ||
) |
schema | is the schema for the table being scanned |
end_row | the end_row of the scan for which we got these results |
end_inclusive | is the end_row included in the scan |
limit_state | Pointer to ScanLimitState |
rowset | Reference to set of rows to be selected |
bytes_scanned | number of bytes read |
lastkey | Return pointer to last key in block |
Definition at line 44 of file ScanCells.cc.
|
inline |
Definition at line 73 of file ScanCells.h.
|
inline |
Returns reference to profile data.
Definition at line 83 of file ScanCells.h.
|
inline |
Definition at line 60 of file ScanCells.h.
|
inline |
Definition at line 62 of file ScanCells.h.
|
protected |
Definition at line 137 of file ScanCells.h.
|
protected |
Definition at line 139 of file ScanCells.h.
|
protected |
Definition at line 138 of file ScanCells.h.
|
protected |
Definition at line 136 of file ScanCells.h.