avro

package
v6.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Code generated by github.com/actgardner/gogen-avro. DO NOT EDIT.

  • SOURCE:
  • example.avsc

Code generated by github.com/actgardner/gogen-avro. DO NOT EDIT.

  • SOURCE:
  • example.avsc

Index

Constants

View Source
const DemoSchemaAvroCRC64Fingerprint = "\xc4V\xa9\x04ʛf\xad"

Variables

This section is empty.

Functions

func NewDemoSchemaWriter

func NewDemoSchemaWriter(writer io.Writer, codec container.Codec, recordsPerBlock int64) (*container.Writer, error)

Types

type DemoSchema

type DemoSchema struct {
	IntField int32

	DoubleField float64

	StringField string

	BoolField bool

	BytesField []byte
}

func DeserializeDemoSchema

func DeserializeDemoSchema(r io.Reader) (*DemoSchema, error)

func DeserializeDemoSchemaFromSchema added in v6.4.0

func DeserializeDemoSchemaFromSchema(r io.Reader, schema string) (*DemoSchema, error)

func NewDemoSchema

func NewDemoSchema() *DemoSchema

func (*DemoSchema) AppendArray

func (_ *DemoSchema) AppendArray() types.Field

func (*DemoSchema) AppendMap

func (_ *DemoSchema) AppendMap(key string) types.Field

func (*DemoSchema) AvroCRC64Fingerprint added in v6.5.0

func (_ *DemoSchema) AvroCRC64Fingerprint() []byte

func (*DemoSchema) Finalize

func (_ *DemoSchema) Finalize()

func (*DemoSchema) Get

func (r *DemoSchema) Get(i int) types.Field

func (*DemoSchema) Schema

func (r *DemoSchema) Schema() string

func (*DemoSchema) SchemaName added in v6.4.0

func (r *DemoSchema) SchemaName() string

func (*DemoSchema) Serialize

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

func (*DemoSchema) SetBoolean

func (_ *DemoSchema) SetBoolean(v bool)

func (*DemoSchema) SetBytes

func (_ *DemoSchema) SetBytes(v []byte)

func (*DemoSchema) SetDefault added in v6.4.0

func (r *DemoSchema) SetDefault(i int)

func (*DemoSchema) SetDouble

func (_ *DemoSchema) SetDouble(v float64)

func (*DemoSchema) SetFloat

func (_ *DemoSchema) SetFloat(v float32)

func (*DemoSchema) SetInt

func (_ *DemoSchema) SetInt(v int32)

func (*DemoSchema) SetLong

func (_ *DemoSchema) SetLong(v int64)

func (*DemoSchema) SetString

func (_ *DemoSchema) SetString(v string)

func (*DemoSchema) SetUnionElem

func (_ *DemoSchema) SetUnionElem(v int64)

type DemoSchemaReader

type DemoSchemaReader struct {
	// contains filtered or unexported fields
}

container reader

func NewDemoSchemaReader

func NewDemoSchemaReader(r io.Reader) (*DemoSchemaReader, error)

func (DemoSchemaReader) Read

func (r DemoSchemaReader) Read() (*DemoSchema, error)

Jump to

Keyboard shortcuts

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