Documentation
¶
Overview ¶
Package soe provides convenience methods to read and write Avro Single-Object Encoding headers
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HeaderV1 = []byte{0xC3, 0x01}
Functions ¶
func ReadHeader ¶
ReadHeader reads the magic bytes and CRC64 schema fingerprint from the given reader and returns the fingerprint.
func WriteRecord ¶
func WriteRecord(w io.Writer, record AvroRecord) error
WriteRecord writes the single-object encoding framing (the magic bytes and the Avro CRC64 fingerprint of the canonical form of the record schema), and the record itself into `w`.
Types ¶
Click to show internal directories.
Click to hide internal directories.