PartitionWriter¶
-
class
vertica_sdk.PartitionWriter¶ Iterator-based write interface for producing output from a single partition. Automatically makes space a block at a time, as needed.
-
copyFromInput(self, dstCol, partition_reader, srcCol)¶ Copy a column from the current row of a PartitionReader into the current row of this PartitionWriter.
Returns
None.
-
getNumCols(self)¶ Returns the number of columns held by this writer.
-
getTypeMetaData(self)¶ Returns a
vertica_sdk.SizedColumnTypesobject describing the column types of this writer.
-
getTypeMetadata(self)¶
-
next(self)¶ Advance to the next row. If more space is needed, it will be transparently allocated.
Returns True if there is space available to write more rows. Returns False otherwise.
-
setBinary(self, col, value)¶ Write a
bytesobject into the indicated zero-indexed column of the current row.Returns
None.
-
setBool(self, col, value)¶ Write a boolean value into the indicated zero-indexed column of the current row.
Returns
None.
-
setDate(self, col, value)¶ Write a
datetime.datetimeordatetime.dateobject into the indicated zero-indexed column of the current row.Returns
None.
-
setFloat(self, col, value)¶ Write a
floatvalue into the indicated zero-indexed column of the current row.Returns
None.
-
setInt(self, col, value)¶ Write an
intvalue into the indicated zero-indexed column of the current row.Returns
None.
-
setInterval(self, col, value)¶ Write a
datetime.timedeltaobject into the indicated zero-indexed column of the current row.Returns
None.
-
setIntervalYM(self, col, value)¶ Write a
datetime.timedeltaobject into the indicated zero-indexed column of the current row.Returns
None.
-
setNull(self, col)¶ Set the indicated zero-indexed column of the current row to NULL.
Returns
None.
-
setNumeric(self, col, value)¶ Write a
decimal.Decimalobject into the indicated zero-indexed column of the current row.Returns
None.
-
setString(self, col, value)¶ Write a
strobject into the indicated zero-indexed column of the current row.Returns
None.
-
setTime(self, col, value)¶ Write a
datetime.timeobject (withdatetime.tzinfo) into the indicated zero-indexed column of the current row.Returns
None.
-
setTimeTz(self, col, value)¶ Write a
datetime.timeobject into the indicated zero-indexed column of the current row.Returns
None.
-
setTimestamp(self, col, value)¶ Write a
datetime.datetimeobject with appropriate time-zone awareness into the indicated zero-indexed column of the current row.Returns
None.
-
setTimestampTz(self, col, value)¶ Alias for setTimestamp().
-