avro

package
v4.0.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvroContainerBlock

type AvroContainerBlock struct {
	NumRecords  int64
	RecordBytes []byte
	Sync        Sync
}

func DeserializeAvroContainerBlock

func DeserializeAvroContainerBlock(r io.Reader) (*AvroContainerBlock, error)

func (*AvroContainerBlock) Schema

func (r *AvroContainerBlock) Schema() string

func (*AvroContainerBlock) Serialize

func (r *AvroContainerBlock) Serialize(w io.Writer) error

type AvroContainerHeader

type AvroContainerHeader struct {
	Magic Magic
	Meta  map[string][]byte
	Sync  Sync
}

func DeserializeAvroContainerHeader

func DeserializeAvroContainerHeader(r io.Reader) (*AvroContainerHeader, error)

func (*AvroContainerHeader) Schema

func (r *AvroContainerHeader) Schema() string

func (*AvroContainerHeader) Serialize

func (r *AvroContainerHeader) Serialize(w io.Writer) error

type ByteWriter

type ByteWriter interface {
	Grow(int)
	WriteByte(byte) error
}

type Magic

type Magic [4]byte

type StringWriter

type StringWriter interface {
	WriteString(string) (int, error)
}

type Sync

type Sync [16]byte

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL