Fennel: LhxHashDataAccessor Class Reference (original) (raw)
#include <[LhxHashTable.h](LhxHashTable%5F8h-source.html)>
Inheritance diagram for LhxHashDataAccessor:

| Public Member Functions | |
|---|---|
| LhxHashDataAccessor () | |
| void | init (TupleDescriptor const &inputDataDesc) |
| Set the shape of the data tuple to be stored via this accessor. | |
| void | setCurrent (PBuffer nodePtrInit, bool valid) |
| Set the current node pointer for this accessor. | |
| uint | getAvgStorageSize () |
| Get the avg buffer size required to store all the fields based on TupleDescriptor information previously passed in init(). | |
| uint | getStorageSize (TupleData const &inputTuple) |
| Get actual buffer size required to store all the fields. | |
| uint | getDiskStorageSize (TupleData const &inputTuple) |
| Get actual disk size required to store all the fields. | |
| void | checkStorageSize (TupleData const &inputTuple, uint maxBufferSize) |
| Check that buffer size required to store all the fields does not exceed scratch buffer size. | |
| void | pack (TupleData const &inputTuple) |
| Store a tuple in the buffer associated with this accessor. | |
| void | unpack (TupleData &outputTuple, TupleProjection &destProj) |
| Retrieve the data stored in the buffer. | |
| string | toString () |
| Print the content of the node associated with this accessor. | |
| PBuffer | getCurrent () |
| **Returns:**current node associated with this accessor | |
| void | setCurrent (PBuffer nodePtrInit) |
| Set the current node pointer for this accessor. | |
| void | reset () |
| Reset the node pointer to NULL. | |
| PBuffer | getBuffer () |
| **Returns:**buffer to the payload in this node | |
| PBuffer | getNext () |
| **Returns:**the next node | |
| PBuffer | getNextLocation () |
| **Returns:**the location which stores the next node pointer | |
| void | setNext (PBuffer nextNode) |
| Set the next node pointer for node associated with this accessor. | |
| void | setNext (PBuffer inputNode, PBuffer nextNode) |
| Set the next node pointer for an input node. | |
| uint | getNextFieldSize () |
| **Returns:**number of bytes required to store the next node pointer | |
| uint | getBufferOffset () |
| **Returns:**offset to the . | |
| Private Attributes | |
| TupleDescriptor | dataDescriptor |
| TupleData | dataTuple |
| TupleAccessor | dataAccessor |
Detailed Description
Definition at line 158 of file LhxHashTable.h.
Constructor & Destructor Documentation
| LhxHashDataAccessor::LhxHashDataAccessor | ( | | ) | [inline] | | ---------------------------------------- | - | | - | ---------- |
Member Function Documentation
| void LhxHashDataAccessor::setCurrent | ( | PBuffer | nodePtrInit, |
|---|---|---|---|
| bool | valid | ||
| ) | [inline] |
| uint LhxHashDataAccessor::getAvgStorageSize | ( | | ) | [inline] | | -------------------------------------------------------------------------------------------------------- | - | | - | ---------- |
| uint LhxHashDataAccessor::getStorageSize | ( | TupleData const & | inputTuple | ) | [inline] |
|---|
| uint LhxHashDataAccessor::getDiskStorageSize | ( | TupleData const & | inputTuple | ) | [inline] |
|---|
| void LhxHashDataAccessor::checkStorageSize | ( | TupleData const & | inputTuple, |
|---|---|---|---|
| uint | maxBufferSize | ||
| ) | [inline] |
| void LhxHashDataAccessor::pack | ( | TupleData const & | inputTuple | ) | [inline] |
|---|
| string LhxHashDataAccessor::toString | ( | | ) | | ------------------------------------ | - | | - |
| PBuffer LhxHashNodeAccessor::getCurrent | ( | | ) | [inline, inherited] | | ------------------------------------------------------------------------------------------- | - | | - | --------------------- |
| void LhxHashNodeAccessor::setCurrent | ( | PBuffer | nodePtrInit | ) | [inline, inherited] |
|---|
| void LhxHashNodeAccessor::reset | ( | | ) | [inline, inherited] | | ------------------------------- | - | | - | --------------------- |
| PBuffer LhxHashNodeAccessor::getBuffer | ( | | ) | [inline, inherited] | | ------------------------------------------------------------------------------------------ | - | | - | --------------------- |
| PBuffer LhxHashNodeAccessor::getNext | ( | | ) | [inline, inherited] | | ---------------------------------------------------------------------------------------- | - | | - | --------------------- |
| PBuffer LhxHashNodeAccessor::getNextLocation | ( | | ) | [inline, inherited] | | ------------------------------------------------------------------------------------------------ | - | | - | --------------------- |
| void LhxHashNodeAccessor::setNext | ( | PBuffer | nextNode | ) | [inline, inherited] |
|---|
| void LhxHashNodeAccessor::setNext | ( | PBuffer | inputNode, |
|---|---|---|---|
| PBuffer | nextNode | ||
| ) | [inline, inherited] |
| uint LhxHashNodeAccessor::getNextFieldSize | ( | | ) | [inline, inherited] | | ------------------------------------------------------------------------------------------------------- | - | | - | --------------------- |
| uint LhxHashNodeAccessor::getBufferOffset | ( | | ) | [inline, inherited] | | ------------------------------------------------------------------------------------------------------ | - | | - | --------------------- |
Member Data Documentation
The documentation for this class was generated from the following files:
- /home/pub/open/dev/fennel/hashexe/LhxHashTable.h
- /home/pub/open/dev/fennel/hashexe/LhxHashTable.cpp
