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.datetimeordatetime.date. Raises aRuntimeErrorwhen 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 aRuntimeErrorwhen this block data type does not match.Returns
None.
-
setIntervalYM(self, value)¶ Stores an
intnumber of months. Raises aRuntimeErrorwhen 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 aRuntimeErrorwhen 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 aRuntimeErrorwhen this block data type does not match.Returns
None.
-
setTimeTz(self, value)¶ Stores a
datetime.timewithdatetime.tzinfo. Raises aRuntimeErrorwhen this block data type does not match.Returns
None.
-
setTimestamp(self, value)¶ Stores a
datetime.datetimewith appropriate time-zone awareness. Raises aRuntimeErrorwhen this block data type does not match.Returns
None.
-
setTimestampTz(self, value)¶ Stores a
datetime.datetimewith appropriate time-zone awareness. Raises aRuntimeErrorwhen this block data type does not match.Returns
None.
-