avro

package
v8.0.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

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

  • SOURCE:
  • schema.avsc

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

  • SOURCE:
  • schema.avsc

Index

Constants

View Source
const UnionRecordAvroCRC64Fingerprint = "XXv\f\x93)\xf7\xe2"

Variables

This section is empty.

Functions

func NewUnionRecordWriter

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

Types

type UnionRecord

type UnionRecord struct {
	Id string `json:"id"`

	Age int32 `json:"age"`
}

func DeserializeUnionRecord

func DeserializeUnionRecord(r io.Reader) (UnionRecord, error)

func DeserializeUnionRecordFromSchema

func DeserializeUnionRecordFromSchema(r io.Reader, schema string) (UnionRecord, error)

func NewUnionRecord

func NewUnionRecord() UnionRecord

func (UnionRecord) AppendArray

func (_ UnionRecord) AppendArray() types.Field

func (UnionRecord) AppendMap

func (_ UnionRecord) AppendMap(key string) types.Field

func (UnionRecord) AvroCRC64Fingerprint

func (_ UnionRecord) AvroCRC64Fingerprint() []byte

func (UnionRecord) Finalize

func (_ UnionRecord) Finalize()

func (*UnionRecord) Get

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

func (UnionRecord) MarshalJSON

func (r UnionRecord) MarshalJSON() ([]byte, error)

func (*UnionRecord) NullField

func (r *UnionRecord) NullField(i int)

func (UnionRecord) Schema

func (r UnionRecord) Schema() string

func (UnionRecord) SchemaName

func (r UnionRecord) SchemaName() string

func (UnionRecord) Serialize

func (r UnionRecord) Serialize(w io.Writer) error

func (UnionRecord) SetBoolean

func (_ UnionRecord) SetBoolean(v bool)

func (UnionRecord) SetBytes

func (_ UnionRecord) SetBytes(v []byte)

func (*UnionRecord) SetDefault

func (r *UnionRecord) SetDefault(i int)

func (UnionRecord) SetDouble

func (_ UnionRecord) SetDouble(v float64)

func (UnionRecord) SetFloat

func (_ UnionRecord) SetFloat(v float32)

func (UnionRecord) SetInt

func (_ UnionRecord) SetInt(v int32)

func (UnionRecord) SetLong

func (_ UnionRecord) SetLong(v int64)

func (UnionRecord) SetString

func (_ UnionRecord) SetString(v string)

func (UnionRecord) SetUnionElem

func (_ UnionRecord) SetUnionElem(v int64)

func (*UnionRecord) UnmarshalJSON

func (r *UnionRecord) UnmarshalJSON(data []byte) error

type UnionRecordReader

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

container reader

func NewUnionRecordReader

func NewUnionRecordReader(r io.Reader) (*UnionRecordReader, error)

func (UnionRecordReader) Read

func (r UnionRecordReader) Read() (UnionRecord, error)

Directories

Path Synopsis
Code generated by github.com/actgardner/gogen-avro/v8.
Code generated by github.com/actgardner/gogen-avro/v8.

Jump to

Keyboard shortcuts

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