simple

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

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

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

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

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

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

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

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

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

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

Index

Constants

View Source
const Contributors_recordAvroCRC64Fingerprint = "\xf7\xe83\xd5\xde\xfc1\xd8"
View Source
const SimpleAvroCRC64Fingerprint = "\xe8\xb3ا׳\b\xde"
View Source
const SomeDateObj_recordAvroCRC64Fingerprint = "\x80\xbe\xb9\xfb%\xbb\xbd\x96"

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrayContributors_recordWrapper

type ArrayContributors_recordWrapper struct {
	Target *[]*Contributors_record
}

func (*ArrayContributors_recordWrapper) AppendArray

func (r *ArrayContributors_recordWrapper) AppendArray() types.Field

func (*ArrayContributors_recordWrapper) AppendMap

func (*ArrayContributors_recordWrapper) Finalize

func (_ *ArrayContributors_recordWrapper) Finalize()

func (*ArrayContributors_recordWrapper) Get

func (*ArrayContributors_recordWrapper) NullField

func (r *ArrayContributors_recordWrapper) NullField(i int)

func (*ArrayContributors_recordWrapper) SetBoolean

func (_ *ArrayContributors_recordWrapper) SetBoolean(v bool)

func (*ArrayContributors_recordWrapper) SetBytes

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

func (*ArrayContributors_recordWrapper) SetDefault

func (_ *ArrayContributors_recordWrapper) SetDefault(i int)

func (*ArrayContributors_recordWrapper) SetDouble

func (_ *ArrayContributors_recordWrapper) SetDouble(v float64)

func (*ArrayContributors_recordWrapper) SetFloat

func (*ArrayContributors_recordWrapper) SetInt

func (*ArrayContributors_recordWrapper) SetLong

func (_ *ArrayContributors_recordWrapper) SetLong(v int64)

func (*ArrayContributors_recordWrapper) SetString

func (_ *ArrayContributors_recordWrapper) SetString(v string)

func (*ArrayContributors_recordWrapper) SetUnionElem

func (_ *ArrayContributors_recordWrapper) 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) 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 Contributors_record

type Contributors_record struct {
	ContributorId *UnionNullString `json:"contributorId"`

	Id string `json:"id"`

	Name string `json:"name"`
}

func DeserializeContributors_record

func DeserializeContributors_record(r io.Reader) (*Contributors_record, error)

func DeserializeContributors_recordFromSchema

func DeserializeContributors_recordFromSchema(r io.Reader, schema string) (*Contributors_record, error)

func NewContributors_record

func NewContributors_record() *Contributors_record

func (*Contributors_record) AppendArray

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

func (*Contributors_record) AppendMap

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

func (*Contributors_record) AvroCRC64Fingerprint

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

func (*Contributors_record) Finalize

func (_ *Contributors_record) Finalize()

func (*Contributors_record) Get

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

func (*Contributors_record) NullField

func (r *Contributors_record) NullField(i int)

func (*Contributors_record) Schema

func (r *Contributors_record) Schema() string

func (*Contributors_record) SchemaName

func (r *Contributors_record) SchemaName() string

func (*Contributors_record) Serialize

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

func (*Contributors_record) SetBoolean

func (_ *Contributors_record) SetBoolean(v bool)

func (*Contributors_record) SetBytes

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

func (*Contributors_record) SetDefault

func (r *Contributors_record) SetDefault(i int)

func (*Contributors_record) SetDouble

func (_ *Contributors_record) SetDouble(v float64)

func (*Contributors_record) SetFloat

func (_ *Contributors_record) SetFloat(v float32)

func (*Contributors_record) SetInt

func (_ *Contributors_record) SetInt(v int32)

func (*Contributors_record) SetLong

func (_ *Contributors_record) SetLong(v int64)

func (*Contributors_record) SetString

func (_ *Contributors_record) SetString(v string)

func (*Contributors_record) SetUnionElem

func (_ *Contributors_record) SetUnionElem(v int64)

type Simple

type Simple struct {
	// The timestamp when this avro data is written. Useful for identifying the newest row of data sharing keys.
	AvroWriteTime int64 `json:"AvroWriteTime"`
	// This is set to true when the Avro data is recording a delete in the source data.
	AvroDeleted bool `json:"AvroDeleted"`

	Contributors []*Contributors_record `json:"contributors"`

	Height *UnionNullLong `json:"height"`

	SomeDateObj *UnionNullSomeDateObj_record `json:"someDateObj"`

	Type string `json:"type"`

	Visible bool `json:"visible"`

	Width *UnionNullDouble `json:"width"`
}

func DeserializeSimple

func DeserializeSimple(r io.Reader) (*Simple, error)

func DeserializeSimpleFromSchema

func DeserializeSimpleFromSchema(r io.Reader, schema string) (*Simple, error)

func NewSimple

func NewSimple() *Simple

func (*Simple) AppendArray

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

func (*Simple) AppendMap

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

func (*Simple) AvroCRC64Fingerprint

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

func (*Simple) Finalize

func (_ *Simple) Finalize()

func (*Simple) Get

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

func (*Simple) NullField

func (r *Simple) NullField(i int)

func (*Simple) Schema

func (r *Simple) Schema() string

func (*Simple) SchemaName

func (r *Simple) SchemaName() string

func (*Simple) Serialize

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

func (*Simple) SetBoolean

func (_ *Simple) SetBoolean(v bool)

func (*Simple) SetBytes

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

func (*Simple) SetDefault

func (r *Simple) SetDefault(i int)

func (*Simple) SetDouble

func (_ *Simple) SetDouble(v float64)

func (*Simple) SetFloat

func (_ *Simple) SetFloat(v float32)

func (*Simple) SetInt

func (_ *Simple) SetInt(v int32)

func (*Simple) SetLong

func (_ *Simple) SetLong(v int64)

func (*Simple) SetString

func (_ *Simple) SetString(v string)

func (*Simple) SetUnionElem

func (_ *Simple) SetUnionElem(v int64)

type SomeDateObj_record

type SomeDateObj_record struct {
	Dates []int64 `json:"dates"`
}

func DeserializeSomeDateObj_record

func DeserializeSomeDateObj_record(r io.Reader) (*SomeDateObj_record, error)

func DeserializeSomeDateObj_recordFromSchema

func DeserializeSomeDateObj_recordFromSchema(r io.Reader, schema string) (*SomeDateObj_record, error)

func NewSomeDateObj_record

func NewSomeDateObj_record() *SomeDateObj_record

func (*SomeDateObj_record) AppendArray

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

func (*SomeDateObj_record) AppendMap

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

func (*SomeDateObj_record) AvroCRC64Fingerprint

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

func (*SomeDateObj_record) Finalize

func (_ *SomeDateObj_record) Finalize()

func (*SomeDateObj_record) Get

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

func (*SomeDateObj_record) NullField

func (r *SomeDateObj_record) NullField(i int)

func (*SomeDateObj_record) Schema

func (r *SomeDateObj_record) Schema() string

func (*SomeDateObj_record) SchemaName

func (r *SomeDateObj_record) SchemaName() string

func (*SomeDateObj_record) Serialize

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

func (*SomeDateObj_record) SetBoolean

func (_ *SomeDateObj_record) SetBoolean(v bool)

func (*SomeDateObj_record) SetBytes

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

func (*SomeDateObj_record) SetDefault

func (r *SomeDateObj_record) SetDefault(i int)

func (*SomeDateObj_record) SetDouble

func (_ *SomeDateObj_record) SetDouble(v float64)

func (*SomeDateObj_record) SetFloat

func (_ *SomeDateObj_record) SetFloat(v float32)

func (*SomeDateObj_record) SetInt

func (_ *SomeDateObj_record) SetInt(v int32)

func (*SomeDateObj_record) SetLong

func (_ *SomeDateObj_record) SetLong(v int64)

func (*SomeDateObj_record) SetString

func (_ *SomeDateObj_record) SetString(v string)

func (*SomeDateObj_record) SetUnionElem

func (_ *SomeDateObj_record) SetUnionElem(v int64)

type UnionNullDouble

type UnionNullDouble struct {
	Null      *types.NullVal
	Double    float64
	UnionType UnionNullDoubleTypeEnum
}

func NewUnionNullDouble

func NewUnionNullDouble() *UnionNullDouble

func (*UnionNullDouble) AppendArray

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

func (*UnionNullDouble) AppendMap

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

func (*UnionNullDouble) Finalize

func (_ *UnionNullDouble) Finalize()

func (*UnionNullDouble) Get

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

func (*UnionNullDouble) MarshalJSON

func (r *UnionNullDouble) MarshalJSON() ([]byte, error)

func (*UnionNullDouble) NullField

func (_ *UnionNullDouble) NullField(i int)

func (*UnionNullDouble) SetBoolean

func (_ *UnionNullDouble) SetBoolean(v bool)

func (*UnionNullDouble) SetBytes

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

func (*UnionNullDouble) SetDefault

func (_ *UnionNullDouble) SetDefault(i int)

func (*UnionNullDouble) SetDouble

func (_ *UnionNullDouble) SetDouble(v float64)

func (*UnionNullDouble) SetFloat

func (_ *UnionNullDouble) SetFloat(v float32)

func (*UnionNullDouble) SetInt

func (_ *UnionNullDouble) SetInt(v int32)

func (*UnionNullDouble) SetLong

func (r *UnionNullDouble) SetLong(v int64)

func (*UnionNullDouble) SetString

func (_ *UnionNullDouble) SetString(v string)

func (*UnionNullDouble) UnmarshalJSON

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

type UnionNullDoubleTypeEnum

type UnionNullDoubleTypeEnum int
const (
	UnionNullDoubleTypeEnumDouble UnionNullDoubleTypeEnum = 1
)

type UnionNullLong

type UnionNullLong struct {
	Null      *types.NullVal
	Long      int64
	UnionType UnionNullLongTypeEnum
}

func NewUnionNullLong

func NewUnionNullLong() *UnionNullLong

func (*UnionNullLong) AppendArray

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

func (*UnionNullLong) AppendMap

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

func (*UnionNullLong) Finalize

func (_ *UnionNullLong) Finalize()

func (*UnionNullLong) Get

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

func (*UnionNullLong) MarshalJSON

func (r *UnionNullLong) MarshalJSON() ([]byte, error)

func (*UnionNullLong) NullField

func (_ *UnionNullLong) NullField(i int)

func (*UnionNullLong) SetBoolean

func (_ *UnionNullLong) SetBoolean(v bool)

func (*UnionNullLong) SetBytes

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

func (*UnionNullLong) SetDefault

func (_ *UnionNullLong) SetDefault(i int)

func (*UnionNullLong) SetDouble

func (_ *UnionNullLong) SetDouble(v float64)

func (*UnionNullLong) SetFloat

func (_ *UnionNullLong) SetFloat(v float32)

func (*UnionNullLong) SetInt

func (_ *UnionNullLong) SetInt(v int32)

func (*UnionNullLong) SetLong

func (r *UnionNullLong) SetLong(v int64)

func (*UnionNullLong) SetString

func (_ *UnionNullLong) SetString(v string)

func (*UnionNullLong) UnmarshalJSON

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

type UnionNullLongTypeEnum

type UnionNullLongTypeEnum int
const (
	UnionNullLongTypeEnumLong UnionNullLongTypeEnum = 1
)

type UnionNullSomeDateObj_record

type UnionNullSomeDateObj_record struct {
	Null               *types.NullVal
	SomeDateObj_record *SomeDateObj_record
	UnionType          UnionNullSomeDateObj_recordTypeEnum
}

func NewUnionNullSomeDateObj_record

func NewUnionNullSomeDateObj_record() *UnionNullSomeDateObj_record

func (*UnionNullSomeDateObj_record) AppendArray

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

func (*UnionNullSomeDateObj_record) AppendMap

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

func (*UnionNullSomeDateObj_record) Finalize

func (_ *UnionNullSomeDateObj_record) Finalize()

func (*UnionNullSomeDateObj_record) Get

func (*UnionNullSomeDateObj_record) MarshalJSON

func (r *UnionNullSomeDateObj_record) MarshalJSON() ([]byte, error)

func (*UnionNullSomeDateObj_record) NullField

func (_ *UnionNullSomeDateObj_record) NullField(i int)

func (*UnionNullSomeDateObj_record) SetBoolean

func (_ *UnionNullSomeDateObj_record) SetBoolean(v bool)

func (*UnionNullSomeDateObj_record) SetBytes

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

func (*UnionNullSomeDateObj_record) SetDefault

func (_ *UnionNullSomeDateObj_record) SetDefault(i int)

func (*UnionNullSomeDateObj_record) SetDouble

func (_ *UnionNullSomeDateObj_record) SetDouble(v float64)

func (*UnionNullSomeDateObj_record) SetFloat

func (_ *UnionNullSomeDateObj_record) SetFloat(v float32)

func (*UnionNullSomeDateObj_record) SetInt

func (_ *UnionNullSomeDateObj_record) SetInt(v int32)

func (*UnionNullSomeDateObj_record) SetLong

func (r *UnionNullSomeDateObj_record) SetLong(v int64)

func (*UnionNullSomeDateObj_record) SetString

func (_ *UnionNullSomeDateObj_record) SetString(v string)

func (*UnionNullSomeDateObj_record) UnmarshalJSON

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

type UnionNullSomeDateObj_recordTypeEnum

type UnionNullSomeDateObj_recordTypeEnum int
const (
	UnionNullSomeDateObj_recordTypeEnumSomeDateObj_record UnionNullSomeDateObj_recordTypeEnum = 1
)

type UnionNullString

type UnionNullString struct {
	Null      *types.NullVal
	String    string
	UnionType UnionNullStringTypeEnum
}

func NewUnionNullString

func NewUnionNullString() *UnionNullString

func (*UnionNullString) AppendArray

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

func (*UnionNullString) AppendMap

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

func (*UnionNullString) Finalize

func (_ *UnionNullString) Finalize()

func (*UnionNullString) Get

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

func (*UnionNullString) MarshalJSON

func (r *UnionNullString) MarshalJSON() ([]byte, error)

func (*UnionNullString) NullField

func (_ *UnionNullString) NullField(i int)

func (*UnionNullString) SetBoolean

func (_ *UnionNullString) SetBoolean(v bool)

func (*UnionNullString) SetBytes

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

func (*UnionNullString) SetDefault

func (_ *UnionNullString) SetDefault(i int)

func (*UnionNullString) SetDouble

func (_ *UnionNullString) SetDouble(v float64)

func (*UnionNullString) SetFloat

func (_ *UnionNullString) SetFloat(v float32)

func (*UnionNullString) SetInt

func (_ *UnionNullString) SetInt(v int32)

func (*UnionNullString) SetLong

func (r *UnionNullString) SetLong(v int64)

func (*UnionNullString) SetString

func (_ *UnionNullString) SetString(v string)

func (*UnionNullString) UnmarshalJSON

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

type UnionNullStringTypeEnum

type UnionNullStringTypeEnum int
const (
	UnionNullStringTypeEnumString UnionNullStringTypeEnum = 1
)

Jump to

Keyboard shortcuts

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