Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
#include <buffered-tuple-stream.h>
Public Member Functions | |
uint64_t | block () const |
uint64_t | offset () const |
uint64_t | idx () const |
uint64_t | set (uint64_t block, uint64_t offset, uint64_t idx) |
std::string | DebugString () const |
Public Attributes | |
uint64_t | data |
Static Public Attributes | |
static const uint64_t | BLOCK_MASK = 0xFFFF |
static const uint64_t | BLOCK_SHIFT = 0 |
static const uint64_t | OFFSET_MASK = 0xFFFFFF0000 |
static const uint64_t | OFFSET_SHIFT = 16 |
static const uint64_t | IDX_MASK = 0xFFFFFF0000000000 |
static const uint64_t | IDX_SHIFT = 40 |
Ordinal index into the stream to retrieve a row in O(1) time. This index can only be used if the stream is pinned. To read a row from a stream we need three pieces of information that we squeeze in 64 bits:
Definition at line 121 of file buffered-tuple-stream.h.
|
inline |
Definition at line 129 of file buffered-tuple-stream.h.
References BLOCK_MASK, and data.
Referenced by impala::HashTable::DebugStringTuple(), and impala::BufferedTupleStream::GetTupleRow().
string BufferedTupleStream::RowIdx::DebugString | ( | ) | const |
Definition at line 37 of file buffered-tuple-stream.cc.
References gen_ir_descriptions::idx, and offset.
|
inline |
Definition at line 137 of file buffered-tuple-stream.h.
References data, IDX_MASK, and IDX_SHIFT.
Referenced by impala::HashTable::DebugStringTuple(), and impala::BufferedTupleStream::GetTupleRow().
|
inline |
Definition at line 133 of file buffered-tuple-stream.h.
References data, OFFSET_MASK, and OFFSET_SHIFT.
Referenced by impala::HashTable::DebugStringTuple(), and impala::BufferedTupleStream::GetTupleRow().
|
inline |
Definition at line 141 of file buffered-tuple-stream.h.
References BLOCK_MASK, data, IDX_MASK, IDX_SHIFT, OFFSET_MASK, and OFFSET_SHIFT.
|
static |
Definition at line 122 of file buffered-tuple-stream.h.
|
static |
Definition at line 123 of file buffered-tuple-stream.h.
uint64_t impala::BufferedTupleStream::RowIdx::data |
|
static |
Definition at line 126 of file buffered-tuple-stream.h.
|
static |
Definition at line 127 of file buffered-tuple-stream.h.
|
static |
Definition at line 124 of file buffered-tuple-stream.h.
|
static |
Definition at line 125 of file buffered-tuple-stream.h.