NewWriterWorkItem
Creates and returns a new WriterWorkItem instance initialized with the provided key, data, and metadata.
def NewWriterWorkItem(
key: Key,
data: io.OutputReader,
metadata: Metadata
) - > *WriterWorkItem
Creates and returns a new WriterWorkItem instance, encapsulating the necessary components for a writing operation.
Parameters
| Name | Type | Description |
|---|---|---|
| key | Key | The unique identifier for the work item, used to reference or retrieve the data. |
| data | io.OutputReader | The data to be written, provided as an io.OutputReader interface. |
| metadata | Metadata | Additional information or attributes associated with the work item. |
Returns
| Type | Description |
|---|---|
*WriterWorkItem | A pointer to a new WriterWorkItem instance. |