#include <LbmTupleReader.h>
Inheritance diagram for LbmSingleTupleReader:
Public Member Functions | |
void | init (TupleData &bitmapSegTupleInit) |
Initializes reader to return a specified tuple. | |
ExecStreamResult | read (PTupleData &pTupleData) |
Reads an input tuple. | |
Private Attributes | |
bool | hasTuple |
Whether the segment reader has a tuple to return. | |
PTupleData | pInputTuple |
Pointer to a tuple data containing the input bitmap tuple. |
Definition at line 93 of file LbmTupleReader.h.
void LbmSingleTupleReader::init | ( | TupleData & | bitmapSegTupleInit | ) |
Initializes reader to return a specified tuple.
bitmapSegTupleInit | tuple data for reading tuples |
Definition at line 58 of file LbmTupleReader.cpp.
References hasTuple, and pInputTuple.
Referenced by LbmTupleRidReader::init(), and LbmReaderTest::testSingleTupleReader().
00059 { 00060 hasTuple = true; 00061 pInputTuple = &bitmapSegTuple; 00062 }
ExecStreamResult LbmSingleTupleReader::read | ( | PTupleData & | pTupleData | ) | [virtual] |
Reads an input tuple.
The tuple read remains valid until the next call to this method.
Implements LbmTupleReader.
Definition at line 64 of file LbmTupleReader.cpp.
References EXECRC_EOS, EXECRC_YIELD, hasTuple, and pInputTuple.
Referenced by LbmReaderTest::testSingleTupleReader().
00065 { 00066 if (!hasTuple) { 00067 return EXECRC_EOS; 00068 } 00069 pTupleData = pInputTuple; 00070 hasTuple = false; 00071 return EXECRC_YIELD; 00072 }
bool LbmSingleTupleReader::hasTuple [private] |
PTupleData LbmSingleTupleReader::pInputTuple [private] |
Pointer to a tuple data containing the input bitmap tuple.
Definition at line 104 of file LbmTupleReader.h.