PRINT TOPIC
Syntax
Description
Topics will only be visible if the current role has USAGE privileges on the Store.
Arguments
topic_name
This is the name of the Topic to print the content of. For case-sensitive names, the name must be wrapped in double quotes. Otherwise, the lowercase name will be used.
IN STORE store_name
Optionally, sample a Topic from a specific Store. For case-sensitive names, the name must be wrapped in double quotes; otherwise, the lowercase name will be used.
WITH (print_parameter = value [, ...])
Optionally, add Print Parameters for changing the behavior of the output on each printing session.
Print Parameters
Parameter Name | Description |
---|---|
| A flag that indicates the operation will start reading the Topic from the earliest available records. This property does not accept a value. Required: No Default value: Unset Type: Flag |
| Specifies the timestamp to use to print records. The timestamp value is in epoch-milliseconds, which is measured as the number of milliseconds since Required: No Default value: None Type: Integer Valid values: [1,...] |
| Specifies the number of records per second that should be printed. Required: No Default value: 5 Type: Integer Valid values: [1,...,10] |
Examples
Print a Topic with defaults
The following prints from the pageviews
Topic using the current Store and default parameter values.
Print a Topic from a specific Store
The following prints from the CaseSensitivePageviews
Topic using a specified Store. Note that since the Topic is case-sensitive, we wrap the Topic name in quotes.
Print a Topic from a specific timestamp with a custom message rate
The following prints from the pageviews
Topic from a specific timestamp with a rate of 10 messages per second.
Print a Topic from earliest available records
The following prints from the pageviews
Topic from the earliest available records.
Last updated