BlockWriter¶
- 
class vertica_sdk.BlockWriter¶
- 
getNumCols(self)¶
- Returns the number of columns held by this writer. 
 - 
getNumRows(self)¶
- Returns the number of rows held by this writer. 
 - 
getTypeMetadata(self)¶
- Returns a - vertica_sdk.SizedColumnTypesobject describing the column types of this writer.
 - 
next(self)¶
- Advances the block writer to the next row of output. - Returns - None.
 - 
setBinary(self, value)¶
- Stores a binary value for the current row. Raises a - RuntimeErrorwhen this block data type does not match.- Returns - None.
 - 
setBool(self, value)¶
- Stores a bool value for the current row. Raises a - RuntimeErrorwhen this block data type does not match.- Returns - None.
 - 
setDate(self, value)¶
- Stores a - datetime.datetimeor- datetime.date. Raises a- RuntimeErrorwhen this block data type does not match.- Returns - None.
 - 
setFloat(self, value)¶
- Stores a float value for the current row. Raises a - RuntimeErrorwhen this block data type does not match.- Returns - None.
 - 
setInt(self, value)¶
- Stores an int value for the current row. Raises a - RuntimeErrorwhen this block data type does not match.- Returns - None.
 - 
setInterval(self, value)¶
- Stores a - datetime.timedelta. Raises a- RuntimeErrorwhen this block data type does not match.- Returns - None.
 - 
setIntervalYM(self, value)¶
- Stores an - intnumber of months. Raises a- RuntimeErrorwhen this block data type does not match.- Returns - None.
 - 
setNull(self)¶
- Sets the output for the current row to NULL. - Returns - None.
 - 
setNumeric(self, value)¶
- Stores a - decimal.Decimal. Values will be rounded to the scale of the output type. Raises a- RuntimeErrorwhen this block data type does not match.- Returns - None.
 - 
setString(self, value)¶
- Stores a string value for the current row. Raises a - RuntimeErrorwhen this block data type does not match.- Returns - None.
 - 
setTime(self, value)¶
- Stores a - datetime.time. Raises a- RuntimeErrorwhen this block data type does not match.- Returns - None.
 - 
setTimeTz(self, value)¶
- Stores a - datetime.timewith- datetime.tzinfo. Raises a- RuntimeErrorwhen this block data type does not match.- Returns - None.
 - 
setTimestamp(self, value)¶
- Stores a - datetime.datetimewith appropriate time-zone awareness. Raises a- RuntimeErrorwhen this block data type does not match.- Returns - None.
 - 
setTimestampTz(self, value)¶
- Stores a - datetime.datetimewith appropriate time-zone awareness. Raises a- RuntimeErrorwhen this block data type does not match.- Returns - None.
 
-