BlockWriter¶
-
class
vertica_sdk.
BlockWriter
¶ -
getNumCols
(self)¶ Returns an int.
-
getNumRows
(self)¶ Returns an int.
-
getTypeMetadata
(self)¶ Returns PySizedColumTypes.
-
next
(self)¶ Returns None.
Advances the block writer to the next row of output.
-
setBinary
(self, value)¶ Returns None.
Stores an binary value for the current row. Raises a RuntimeError when this block data type does not match.
-
setBool
(self, value)¶ Returns None.
Stores an bool value for the current row. Raises a RuntimeError when this block data type does not match.
-
setDate
(self, value)¶ Returns None.
value can be either a datetime or a date. Raises a RuntimeError when this block data type does not match.
-
setFloat
(self, value)¶ Returns None.
Stores an float value for the current row. Raises a RuntimeError when this block data type does not match.
-
setInt
(self, value)¶ Returns None.
Stores an int value for the current row. Raises a RuntimeError when this block data type does not match.
-
setInterval
(self, value)¶ Returns None. value is a datetime.timedelta. Raises a RuntimeError when this block data type does not match.
-
setIntervalYM
(self, value)¶ Returns None.
value is an int. Raises a RUntimeError when this block data type does not match.
-
setNull
(self)¶ Returns None.
Sets the output for the current row to NULL.
-
setNumeric
(self, value)¶ Returns None.
value is a decimal.Decimal. Values will be rounded to the scale of the output type. Raises a RuntimeError when this block data type does not match.
-
setString
(self, value)¶ Returns None.
Stores an string value for the current row. Raises a RuntimeError when this block data type does not match.
-
setTime
(self, value)¶ Returns None.
value is a datetime.time. Raises a RuntimeError when this block data type does not match.
-
setTimeTz
(self, value)¶ Returns None.
value is a datetime.time with tzinfo. Raises a RuntimeError when this block data type does not match.
-
setTimestamp
(self, value)¶ Returns None.
value is a datetime with appropriate time-zone awareness. Raises a RuntimeError when this block data type does not match.
-
setTimestampTz
(self, value)¶ Returns None.
value is a datetime with appropriate time-zone awareness. Raises a RuntimeError when this block data type does not match.
-