Iterator interface for writing rows to a Vertica block.
More...
|
void | addCol (char *arg, int colstride, const VerticaType &dt, const std::string fieldName="") |
|
void | addCol (const char *arg, int colstride, const VerticaType &dt, const std::string fieldName="") |
|
bool | checkStringUserBlockInfo (size_t idx) const |
|
bool | checkTimeUserBlockInfo (size_t idx) const |
|
void | reset () |
|
void | resetIndex () |
|
void | setRowCount (int rowCount) |
|
void | validateStringColumn (size_t idx, const VString &s, size_t colLength) const |
|
|
std::vector< char * > | cols |
|
std::vector< int > | colstrides |
|
int | count |
|
int | index |
|
const int * | indices |
|
size_t | ncols |
|
int | nrows |
|
std::vector< BaseDataOID > | processBlockUserInfoVector |
|
std::vector< VString > | svWrappers |
|
SizedColumnTypes | typeMetaData |
|
std::vector< VNumeric > | vnWrappers |
|
Iterator interface for writing rows to a Vertica block.
This class provides the output rows that ScalarFunction.processBlock() writes to.
void Vertica::VerticaBlock::addCol |
( |
char * |
arg, |
|
|
int |
colstride, |
|
|
const VerticaType & |
dt, |
|
|
const std::string |
fieldName = "" |
|
) |
| |
|
inlineprotectedinherited |
Add the location for reading a particular argument.
- Parameters
-
arg | The base location to find data. |
colstride | The stride between data instances. |
dt | The type of input. |
fieldname | the name of the field |
Referenced by Vertica::ParamReader::addParameter().
template<class T >
const T* Vertica::VerticaBlock::getColPtr |
( |
size_t |
idx | ) |
const |
|
inlineinherited |
template<class T >
const T& Vertica::VerticaBlock::getColRef |
( |
size_t |
idx | ) |
|
|
inlineinherited |
- Returns
- a pointer to the idx'th argument, cast appropriately.
Example: const vint a = arg_reader->getColRef<vint>(0);
size_t Vertica::VerticaBlock::getNumCols |
( |
| ) |
const |
|
inlineinherited |
VNumeric& Vertica::BlockWriter::getNumericRef |
( |
| ) |
|
|
inline |
Allocate a new VNumeric object to use as output.
- Returns
- A new VNumeric object to hold output. This object automatically added to the output row.
Referenced by setNull().
int Vertica::VerticaBlock::getNumRows |
( |
| ) |
const |
|
inlineinherited |
- Returns
- the number of rows held by this block.
VString* Vertica::BlockWriter::getStringPtr |
( |
| ) |
|
|
inline |
Get a pointer for writing output.
- Returns
- A new VString object to hold output. This object automatically added to the output row.
VString& Vertica::BlockWriter::getStringRef |
( |
| ) |
|
|
inline |
- Returns
- information about the types and numbers of arguments
void Vertica::BlockWriter::next |
( |
| ) |
|
|
inline |
Complete writing this row of output and move to the next row.
void Vertica::BlockWriter::setBool |
( |
vbool |
r | ) |
|
|
inline |
Adds a BOOLEAN value to the output row.
- Parameters
-
r | The BOOLEAN value to insert into the output row. |
Referenced by setNull().
void Vertica::BlockWriter::setDate |
( |
DateADT |
r | ) |
|
|
inline |
Adds a BOOLEAN value to the output row.
- Parameters
-
r | The BOOLEAN value to insert into the output row. |
Referenced by setNull().
void Vertica::BlockWriter::setFloat |
( |
vfloat |
r | ) |
|
|
inline |
Adds a FLOAT value to the output row.
- Parameters
-
r | The FLOAT value to insert into the output row. |
Referenced by setNull().
void Vertica::BlockWriter::setInt |
( |
vint |
r | ) |
|
|
inline |
Adds an INTEGER value to the output row.
Setter methods
- Parameters
-
r | The INTEGER value to insert into the output row. |
Referenced by setNull().
void Vertica::BlockWriter::setInterval |
( |
Interval |
r | ) |
|
|
inline |
Adds an INTERVAL value to the output row.
- Parameters
-
r | The INTERVAL value to insert into the output row. |
Referenced by setNull().
void Vertica::BlockWriter::setIntervalYM |
( |
IntervalYM |
r | ) |
|
|
inline |
Adds an INTERVAL YEAR TO MONTH value to the output row.
- Parameters
-
r | The INTERVAL YEAR TO MONTH value to insert into the output row. |
void Vertica::BlockWriter::setNull |
( |
| ) |
|
|
inline |
Set the column to null.
- Parameters
-
idx | The column number in the row to set to null |
void Vertica::BlockWriter::setTime |
( |
TimeADT |
r | ) |
|
|
inline |
Adds a TIMESTAMP value to the output row.
- Parameters
-
r | The TIMESTAMP value to insert into the output row. |
Referenced by setNull().
void Vertica::BlockWriter::setTimestamp |
( |
Timestamp |
r | ) |
|
|
inline |
Adds a TIMESTAMP value to the output row.
- Parameters
-
r | The TIMESTAMP value to insert into the output row. |
Referenced by setNull().
void Vertica::BlockWriter::setTimestampTz |
( |
TimestampTz |
r | ) |
|
|
inline |
Adds a TIMESTAMP WITH TIMEZONE value to the output row.
- Parameters
-
r | The TIMESTAMP WITH TIMEZONE value to insert into the output row. |
Referenced by setNull().
void Vertica::BlockWriter::setTimeTz |
( |
TimeTzADT |
r | ) |
|
|
inline |
Adds a TIMESTAMP WITH TIMEZONE value to the output row.
- Parameters
-
r | The TIMESTAMP WITH TIMEZONE value to insert into the output row. |
Referenced by setNull().