Skip to main content

group_begin / group_end: Result Set Delimiters

This section describes the query delimiters that indicate where the results of a query begin and end.

group_begin message​

The group_begin message marks the beginning of a set of records returned by a SOW query.

For more information, see the State of the World (SOW) Topics and Querying the State of the World (SOW) chapters in the AMPS User Guide.

Header Fields​

The following table contains the header fields returned in a group_begin message. Notice that the wire format of the message may abbreviate these field names or encode them differently:

FieldDescription
cmd

Type of message.

Always group_begin, as encoded by the protocol.

query_idThe query_id of the query that produced this message. If no explicit query ID was submitted, this will be the command ID of the command that ran the query.

group_end message​

The group_end message marks the end of a set of records returned by a SOW query.

For more information, see the State of the World (SOW) Topics and Querying the State of the World (SOW) chapters in the AMPS User Guide.

Header Fields​

The following table contains the header fields returned in a group_end message:

FieldDescription
cmd

Type of message.

Always group_end, as encoded by the protocol.

query_idThe query_id of the query that produced this message. If no explicit query ID was submitted, this will be the command ID of the command that ran the query.