avro

package
v10.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Code generated by Skaidus. DO NOT EDIT.

  • SOURCE:
  • schema.avsc

Code generated by Skaidus. DO NOT EDIT.

  • SOURCE:
  • schema.avsc

Code generated by Skaidus. DO NOT EDIT.

  • SOURCE:
  • schema.avsc

Code generated by Skaidus. DO NOT EDIT.

  • SOURCE:
  • schema.avsc

Code generated by Skaidus. DO NOT EDIT.

  • SOURCE:
  • schema.avsc

Code generated by Skaidus. DO NOT EDIT.

  • SOURCE:
  • schema.avsc

Code generated by Skaidus. DO NOT EDIT.

  • SOURCE:
  • schema.avsc

Code generated by Skaidus. DO NOT EDIT.

  • SOURCE:
  • schema.avsc

Code generated by Skaidus. DO NOT EDIT.

  • SOURCE:
  • schema.avsc

Code generated by Skaidus. DO NOT EDIT.

  • SOURCE:
  • schema.avsc

Index

Constants

View Source
const ArrayTestRecordAvroCRC64Fingerprint = "\"I\xbbnO\x1c#,"

Variables

This section is empty.

Functions

func NewArrayTestRecordWriter

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

Types

type ArrayBoolWrapper

type ArrayBoolWrapper struct {
	Target *[]bool
}

func (ArrayBoolWrapper) AppendArray

func (r ArrayBoolWrapper) AppendArray() types.Field

func (ArrayBoolWrapper) AppendMap

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

func (ArrayBoolWrapper) Finalize

func (_ ArrayBoolWrapper) Finalize()

func (ArrayBoolWrapper) Get

func (_ ArrayBoolWrapper) Get(i int) types.Field

func (ArrayBoolWrapper) HintSize

func (r ArrayBoolWrapper) HintSize(s int)

func (ArrayBoolWrapper) NullField

func (r ArrayBoolWrapper) NullField(i int)

func (ArrayBoolWrapper) SetBoolean

func (_ ArrayBoolWrapper) SetBoolean(v bool)

func (ArrayBoolWrapper) SetBytes

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

func (ArrayBoolWrapper) SetDefault

func (_ ArrayBoolWrapper) SetDefault(i int)

func (ArrayBoolWrapper) SetDouble

func (_ ArrayBoolWrapper) SetDouble(v float64)

func (ArrayBoolWrapper) SetFloat

func (_ ArrayBoolWrapper) SetFloat(v float32)

func (ArrayBoolWrapper) SetInt

func (_ ArrayBoolWrapper) SetInt(v int32)

func (ArrayBoolWrapper) SetLong

func (_ ArrayBoolWrapper) SetLong(v int64)

func (ArrayBoolWrapper) SetString

func (_ ArrayBoolWrapper) SetString(v string)

func (ArrayBoolWrapper) SetUnionElem

func (_ ArrayBoolWrapper) SetUnionElem(v int64)

type ArrayBytesWrapper

type ArrayBytesWrapper struct {
	Target *[]Bytes
}

func (ArrayBytesWrapper) AppendArray

func (r ArrayBytesWrapper) AppendArray() types.Field

func (ArrayBytesWrapper) AppendMap

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

func (ArrayBytesWrapper) Finalize

func (_ ArrayBytesWrapper) Finalize()

func (ArrayBytesWrapper) Get

func (_ ArrayBytesWrapper) Get(i int) types.Field

func (ArrayBytesWrapper) HintSize

func (r ArrayBytesWrapper) HintSize(s int)

func (ArrayBytesWrapper) NullField

func (r ArrayBytesWrapper) NullField(i int)

func (ArrayBytesWrapper) SetBoolean

func (_ ArrayBytesWrapper) SetBoolean(v bool)

func (ArrayBytesWrapper) SetBytes

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

func (ArrayBytesWrapper) SetDefault

func (_ ArrayBytesWrapper) SetDefault(i int)

func (ArrayBytesWrapper) SetDouble

func (_ ArrayBytesWrapper) SetDouble(v float64)

func (ArrayBytesWrapper) SetFloat

func (_ ArrayBytesWrapper) SetFloat(v float32)

func (ArrayBytesWrapper) SetInt

func (_ ArrayBytesWrapper) SetInt(v int32)

func (ArrayBytesWrapper) SetLong

func (_ ArrayBytesWrapper) SetLong(v int64)

func (ArrayBytesWrapper) SetString

func (_ ArrayBytesWrapper) SetString(v string)

func (ArrayBytesWrapper) SetUnionElem

func (_ ArrayBytesWrapper) SetUnionElem(v int64)

type ArrayDoubleWrapper

type ArrayDoubleWrapper struct {
	Target *[]float64
}

func (ArrayDoubleWrapper) AppendArray

func (r ArrayDoubleWrapper) AppendArray() types.Field

func (ArrayDoubleWrapper) AppendMap

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

func (ArrayDoubleWrapper) Finalize

func (_ ArrayDoubleWrapper) Finalize()

func (ArrayDoubleWrapper) Get

func (_ ArrayDoubleWrapper) Get(i int) types.Field

func (ArrayDoubleWrapper) HintSize

func (r ArrayDoubleWrapper) HintSize(s int)

func (ArrayDoubleWrapper) NullField

func (r ArrayDoubleWrapper) NullField(i int)

func (ArrayDoubleWrapper) SetBoolean

func (_ ArrayDoubleWrapper) SetBoolean(v bool)

func (ArrayDoubleWrapper) SetBytes

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

func (ArrayDoubleWrapper) SetDefault

func (_ ArrayDoubleWrapper) SetDefault(i int)

func (ArrayDoubleWrapper) SetDouble

func (_ ArrayDoubleWrapper) SetDouble(v float64)

func (ArrayDoubleWrapper) SetFloat

func (_ ArrayDoubleWrapper) SetFloat(v float32)

func (ArrayDoubleWrapper) SetInt

func (_ ArrayDoubleWrapper) SetInt(v int32)

func (ArrayDoubleWrapper) SetLong

func (_ ArrayDoubleWrapper) SetLong(v int64)

func (ArrayDoubleWrapper) SetString

func (_ ArrayDoubleWrapper) SetString(v string)

func (ArrayDoubleWrapper) SetUnionElem

func (_ ArrayDoubleWrapper) SetUnionElem(v int64)

type ArrayFloatWrapper

type ArrayFloatWrapper struct {
	Target *[]float32
}

func (ArrayFloatWrapper) AppendArray

func (r ArrayFloatWrapper) AppendArray() types.Field

func (ArrayFloatWrapper) AppendMap

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

func (ArrayFloatWrapper) Finalize

func (_ ArrayFloatWrapper) Finalize()

func (ArrayFloatWrapper) Get

func (_ ArrayFloatWrapper) Get(i int) types.Field

func (ArrayFloatWrapper) HintSize

func (r ArrayFloatWrapper) HintSize(s int)

func (ArrayFloatWrapper) NullField

func (r ArrayFloatWrapper) NullField(i int)

func (ArrayFloatWrapper) SetBoolean

func (_ ArrayFloatWrapper) SetBoolean(v bool)

func (ArrayFloatWrapper) SetBytes

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

func (ArrayFloatWrapper) SetDefault

func (_ ArrayFloatWrapper) SetDefault(i int)

func (ArrayFloatWrapper) SetDouble

func (_ ArrayFloatWrapper) SetDouble(v float64)

func (ArrayFloatWrapper) SetFloat

func (_ ArrayFloatWrapper) SetFloat(v float32)

func (ArrayFloatWrapper) SetInt

func (_ ArrayFloatWrapper) SetInt(v int32)

func (ArrayFloatWrapper) SetLong

func (_ ArrayFloatWrapper) SetLong(v int64)

func (ArrayFloatWrapper) SetString

func (_ ArrayFloatWrapper) SetString(v string)

func (ArrayFloatWrapper) SetUnionElem

func (_ ArrayFloatWrapper) SetUnionElem(v int64)

type ArrayIntWrapper

type ArrayIntWrapper struct {
	Target *[]int32
}

func (ArrayIntWrapper) AppendArray

func (r ArrayIntWrapper) AppendArray() types.Field

func (ArrayIntWrapper) AppendMap

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

func (ArrayIntWrapper) Finalize

func (_ ArrayIntWrapper) Finalize()

func (ArrayIntWrapper) Get

func (_ ArrayIntWrapper) Get(i int) types.Field

func (ArrayIntWrapper) HintSize

func (r ArrayIntWrapper) HintSize(s int)

func (ArrayIntWrapper) NullField

func (r ArrayIntWrapper) NullField(i int)

func (ArrayIntWrapper) SetBoolean

func (_ ArrayIntWrapper) SetBoolean(v bool)

func (ArrayIntWrapper) SetBytes

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

func (ArrayIntWrapper) SetDefault

func (_ ArrayIntWrapper) SetDefault(i int)

func (ArrayIntWrapper) SetDouble

func (_ ArrayIntWrapper) SetDouble(v float64)

func (ArrayIntWrapper) SetFloat

func (_ ArrayIntWrapper) SetFloat(v float32)

func (ArrayIntWrapper) SetInt

func (_ ArrayIntWrapper) SetInt(v int32)

func (ArrayIntWrapper) SetLong

func (_ ArrayIntWrapper) SetLong(v int64)

func (ArrayIntWrapper) SetString

func (_ ArrayIntWrapper) SetString(v string)

func (ArrayIntWrapper) SetUnionElem

func (_ ArrayIntWrapper) SetUnionElem(v int64)

type ArrayLongWrapper

type ArrayLongWrapper struct {
	Target *[]int64
}

func (ArrayLongWrapper) AppendArray

func (r ArrayLongWrapper) AppendArray() types.Field

func (ArrayLongWrapper) AppendMap

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

func (ArrayLongWrapper) Finalize

func (_ ArrayLongWrapper) Finalize()

func (ArrayLongWrapper) Get

func (_ ArrayLongWrapper) Get(i int) types.Field

func (ArrayLongWrapper) HintSize

func (r ArrayLongWrapper) HintSize(s int)

func (ArrayLongWrapper) NullField

func (r ArrayLongWrapper) NullField(i int)

func (ArrayLongWrapper) SetBoolean

func (_ ArrayLongWrapper) SetBoolean(v bool)

func (ArrayLongWrapper) SetBytes

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

func (ArrayLongWrapper) SetDefault

func (_ ArrayLongWrapper) SetDefault(i int)

func (ArrayLongWrapper) SetDouble

func (_ ArrayLongWrapper) SetDouble(v float64)

func (ArrayLongWrapper) SetFloat

func (_ ArrayLongWrapper) SetFloat(v float32)

func (ArrayLongWrapper) SetInt

func (_ ArrayLongWrapper) SetInt(v int32)

func (ArrayLongWrapper) SetLong

func (_ ArrayLongWrapper) SetLong(v int64)

func (ArrayLongWrapper) SetString

func (_ ArrayLongWrapper) SetString(v string)

func (ArrayLongWrapper) SetUnionElem

func (_ ArrayLongWrapper) SetUnionElem(v int64)

type ArrayStringWrapper

type ArrayStringWrapper struct {
	Target *[]string
}

func (ArrayStringWrapper) AppendArray

func (r ArrayStringWrapper) AppendArray() types.Field

func (ArrayStringWrapper) AppendMap

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

func (ArrayStringWrapper) Finalize

func (_ ArrayStringWrapper) Finalize()

func (ArrayStringWrapper) Get

func (_ ArrayStringWrapper) Get(i int) types.Field

func (ArrayStringWrapper) HintSize

func (r ArrayStringWrapper) HintSize(s int)

func (ArrayStringWrapper) NullField

func (r ArrayStringWrapper) NullField(i int)

func (ArrayStringWrapper) SetBoolean

func (_ ArrayStringWrapper) SetBoolean(v bool)

func (ArrayStringWrapper) SetBytes

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

func (ArrayStringWrapper) SetDefault

func (_ ArrayStringWrapper) SetDefault(i int)

func (ArrayStringWrapper) SetDouble

func (_ ArrayStringWrapper) SetDouble(v float64)

func (ArrayStringWrapper) SetFloat

func (_ ArrayStringWrapper) SetFloat(v float32)

func (ArrayStringWrapper) SetInt

func (_ ArrayStringWrapper) SetInt(v int32)

func (ArrayStringWrapper) SetLong

func (_ ArrayStringWrapper) SetLong(v int64)

func (ArrayStringWrapper) SetString

func (_ ArrayStringWrapper) SetString(v string)

func (ArrayStringWrapper) SetUnionElem

func (_ ArrayStringWrapper) SetUnionElem(v int64)

type ArrayTestRecord

type ArrayTestRecord struct {
	IntField []int32 `json:"IntField"`

	LongField []int64 `json:"LongField"`

	DoubleField []float64 `json:"DoubleField"`

	StringField []string `json:"StringField"`

	FloatField []float32 `json:"FloatField"`

	BoolField []bool `json:"BoolField"`

	BytesField []Bytes `json:"BytesField"`
}

func DeserializeArrayTestRecord

func DeserializeArrayTestRecord(r io.Reader) (ArrayTestRecord, error)

func DeserializeArrayTestRecordFromSchema

func DeserializeArrayTestRecordFromSchema(r io.Reader, schema string) (ArrayTestRecord, error)

func NewArrayTestRecord

func NewArrayTestRecord() ArrayTestRecord

func (ArrayTestRecord) AppendArray

func (_ ArrayTestRecord) AppendArray() types.Field

func (ArrayTestRecord) AppendMap

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

func (ArrayTestRecord) AvroCRC64Fingerprint

func (_ ArrayTestRecord) AvroCRC64Fingerprint() []byte

func (ArrayTestRecord) Finalize

func (_ ArrayTestRecord) Finalize()

func (*ArrayTestRecord) Get

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

func (ArrayTestRecord) HintSize

func (_ ArrayTestRecord) HintSize(int)

func (ArrayTestRecord) MarshalJSON

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

func (*ArrayTestRecord) NullField

func (r *ArrayTestRecord) NullField(i int)

func (ArrayTestRecord) Schema

func (r ArrayTestRecord) Schema() string

func (ArrayTestRecord) SchemaName

func (r ArrayTestRecord) SchemaName() string

func (ArrayTestRecord) Serialize

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

func (ArrayTestRecord) SetBoolean

func (_ ArrayTestRecord) SetBoolean(v bool)

func (ArrayTestRecord) SetBytes

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

func (*ArrayTestRecord) SetDefault

func (r *ArrayTestRecord) SetDefault(i int)

func (ArrayTestRecord) SetDouble

func (_ ArrayTestRecord) SetDouble(v float64)

func (ArrayTestRecord) SetFloat

func (_ ArrayTestRecord) SetFloat(v float32)

func (ArrayTestRecord) SetInt

func (_ ArrayTestRecord) SetInt(v int32)

func (ArrayTestRecord) SetLong

func (_ ArrayTestRecord) SetLong(v int64)

func (ArrayTestRecord) SetString

func (_ ArrayTestRecord) SetString(v string)

func (ArrayTestRecord) SetUnionElem

func (_ ArrayTestRecord) SetUnionElem(v int64)

func (*ArrayTestRecord) UnmarshalJSON

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

type ArrayTestRecordReader

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

container reader

func NewArrayTestRecordReader

func NewArrayTestRecordReader(r io.Reader) (*ArrayTestRecordReader, error)

func (ArrayTestRecordReader) Read

type Bytes

type Bytes []byte

func (Bytes) MarshalJSON

func (b Bytes) MarshalJSON() ([]byte, error)

func (*Bytes) UnmarshalJSON

func (b *Bytes) UnmarshalJSON(data []byte) error

type BytesWrapper

type BytesWrapper struct {
	Target *Bytes
}

func (BytesWrapper) AppendArray

func (b BytesWrapper) AppendArray() types.Field

func (BytesWrapper) AppendMap

func (b BytesWrapper) AppendMap(key string) types.Field

func (BytesWrapper) Finalize

func (b BytesWrapper) Finalize()

func (BytesWrapper) Get

func (b BytesWrapper) Get(i int) types.Field

func (BytesWrapper) HintSize

func (b BytesWrapper) HintSize(int)

func (BytesWrapper) NullField

func (b BytesWrapper) NullField(int)

func (BytesWrapper) SetBoolean

func (b BytesWrapper) SetBoolean(v bool)

func (BytesWrapper) SetBytes

func (b BytesWrapper) SetBytes(v []byte)

func (BytesWrapper) SetDefault

func (b BytesWrapper) SetDefault(i int)

func (BytesWrapper) SetDouble

func (b BytesWrapper) SetDouble(v float64)

func (BytesWrapper) SetFloat

func (b BytesWrapper) SetFloat(v float32)

func (BytesWrapper) SetInt

func (b BytesWrapper) SetInt(v int32)

func (BytesWrapper) SetLong

func (b BytesWrapper) SetLong(v int64)

func (BytesWrapper) SetString

func (b BytesWrapper) SetString(v string)

func (BytesWrapper) SetUnionElem

func (b BytesWrapper) SetUnionElem(v int64)

Jump to

Keyboard shortcuts

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