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.SizedColumnTypes
object 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
RuntimeError
when this block data type does not match.Returns
None
.
-
setBool
(self, value)¶ Stores a bool value for the current row. Raises a
RuntimeError
when this block data type does not match.Returns
None
.
-
setDate
(self, value)¶ Stores a
datetime.datetime
ordatetime.date
. Raises aRuntimeError
when this block data type does not match.Returns
None
.
-
setFloat
(self, value)¶ Stores a float value for the current row. Raises a
RuntimeError
when this block data type does not match.Returns
None
.
-
setInt
(self, value)¶ Stores an int value for the current row. Raises a
RuntimeError
when this block data type does not match.Returns
None
.
-
setInterval
(self, value)¶ Stores a
datetime.timedelta
. Raises aRuntimeError
when this block data type does not match.Returns
None
.
-
setIntervalYM
(self, value)¶ Stores an
int
number of months. Raises aRuntimeError
when 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 aRuntimeError
when this block data type does not match.Returns
None
.
-
setString
(self, value)¶ Stores a string value for the current row. Raises a
RuntimeError
when this block data type does not match.Returns
None
.
-
setTime
(self, value)¶ Stores a
datetime.time
. Raises aRuntimeError
when this block data type does not match.Returns
None
.
-
setTimeTz
(self, value)¶ Stores a
datetime.time
withdatetime.tzinfo
. Raises aRuntimeError
when this block data type does not match.Returns
None
.
-
setTimestamp
(self, value)¶ Stores a
datetime.datetime
with appropriate time-zone awareness. Raises aRuntimeError
when this block data type does not match.Returns
None
.
-
setTimestampTz
(self, value)¶ Stores a
datetime.datetime
with appropriate time-zone awareness. Raises aRuntimeError
when this block data type does not match.Returns
None
.
-