summaryrefslogtreecommitdiff
path: root/internal/protocol/protocol.go
blob: 13b7fb98a7d226d48aaf7ce7bc99c3589e36062e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package protocol

const (
	// ProtocolCompat -ibility version
	ProtocolCompat string = "4.1"
	// MessageDelimiter delimits separate messages.
	MessageDelimiter byte = '¬'
	// FieldDelimiter delimits messagefields.
	FieldDelimiter string = "|"
	// AggregateMessageID is the leading field of a mapreduce aggregate-data
	// message on the wire (AGGREGATE|hostname|serialized-data). It is the
	// single source of truth used by the server to tag such messages and by
	// the mapr client to recognise them, so protocol acks like "AUTHKEY OK"
	// (which merely start with the letter 'A') are not mistaken for data.
	AggregateMessageID string = "AGGREGATE"
	// CSVDelimiter delimits CSV file fields.kj:w
	CSVDelimiter string = ","
	// AggregateKVDelimiter delimits key-values of an aggregation message.
	AggregateKVDelimiter string = "≔"
	// AggregateDelimiter delimits parts of an aggregation message.
	AggregateDelimiter string = "∥"
	// AggregateGroupKeyCombinator combines the group set keys.
	AggregateGroupKeyCombinator string = ","
)