avro

package
v6.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 4 Imported by: 23

Documentation

Overview

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

  • SOURCES:
  • block.avsc
  • header.avsc

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

  • SOURCES:
  • block.avsc
  • header.avsc

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

  • SOURCES:
  • block.avsc
  • header.avsc

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

  • SOURCES:
  • block.avsc
  • header.avsc

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

  • SOURCES:
  • block.avsc
  • header.avsc

Index

Constants

View Source
const AvroContainerBlockAvroCRC64Fingerprint = "\x0e\xecj@ٔ\xe14"
View Source
const AvroContainerHeaderAvroCRC64Fingerprint = "\xc0\x12\x03\xc0wi\xf96"

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 DeserializeAvroContainerBlockFromSchema

func DeserializeAvroContainerBlockFromSchema(r io.Reader, schema string) (*AvroContainerBlock, error)

func NewAvroContainerBlock

func NewAvroContainerBlock() *AvroContainerBlock

func (*AvroContainerBlock) AppendArray

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

func (*AvroContainerBlock) AppendMap

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

func (*AvroContainerBlock) AvroCRC64Fingerprint

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

func (*AvroContainerBlock) Finalize

func (_ *AvroContainerBlock) Finalize()

func (*AvroContainerBlock) Get

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

func (*AvroContainerBlock) Schema

func (r *AvroContainerBlock) Schema() string

func (*AvroContainerBlock) SchemaName

func (r *AvroContainerBlock) SchemaName() string

func (*AvroContainerBlock) Serialize

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

func (*AvroContainerBlock) SetBoolean

func (_ *AvroContainerBlock) SetBoolean(v bool)

func (*AvroContainerBlock) SetBytes

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

func (*AvroContainerBlock) SetDefault

func (r *AvroContainerBlock) SetDefault(i int)

func (*AvroContainerBlock) SetDouble

func (_ *AvroContainerBlock) SetDouble(v float64)

func (*AvroContainerBlock) SetFloat

func (_ *AvroContainerBlock) SetFloat(v float32)

func (*AvroContainerBlock) SetInt

func (_ *AvroContainerBlock) SetInt(v int32)

func (*AvroContainerBlock) SetLong

func (_ *AvroContainerBlock) SetLong(v int64)

func (*AvroContainerBlock) SetString

func (_ *AvroContainerBlock) SetString(v string)

func (*AvroContainerBlock) SetUnionElem

func (_ *AvroContainerBlock) SetUnionElem(v int64)

type AvroContainerHeader

type AvroContainerHeader struct {
	Magic Magic

	Meta *MapBytes

	Sync Sync
}

func DeserializeAvroContainerHeader

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

func DeserializeAvroContainerHeaderFromSchema

func DeserializeAvroContainerHeaderFromSchema(r io.Reader, schema string) (*AvroContainerHeader, error)

func NewAvroContainerHeader

func NewAvroContainerHeader() *AvroContainerHeader

func (*AvroContainerHeader) AppendArray

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

func (*AvroContainerHeader) AppendMap

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

func (*AvroContainerHeader) AvroCRC64Fingerprint

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

func (*AvroContainerHeader) Finalize

func (_ *AvroContainerHeader) Finalize()

func (*AvroContainerHeader) Get

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

func (*AvroContainerHeader) Schema

func (r *AvroContainerHeader) Schema() string

func (*AvroContainerHeader) SchemaName

func (r *AvroContainerHeader) SchemaName() string

func (*AvroContainerHeader) Serialize

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

func (*AvroContainerHeader) SetBoolean

func (_ *AvroContainerHeader) SetBoolean(v bool)

func (*AvroContainerHeader) SetBytes

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

func (*AvroContainerHeader) SetDefault

func (r *AvroContainerHeader) SetDefault(i int)

func (*AvroContainerHeader) SetDouble

func (_ *AvroContainerHeader) SetDouble(v float64)

func (*AvroContainerHeader) SetFloat

func (_ *AvroContainerHeader) SetFloat(v float32)

func (*AvroContainerHeader) SetInt

func (_ *AvroContainerHeader) SetInt(v int32)

func (*AvroContainerHeader) SetLong

func (_ *AvroContainerHeader) SetLong(v int64)

func (*AvroContainerHeader) SetString

func (_ *AvroContainerHeader) SetString(v string)

func (*AvroContainerHeader) SetUnionElem

func (_ *AvroContainerHeader) SetUnionElem(v int64)

type Magic

type Magic MagicWrapper

type MagicWrapper

type MagicWrapper [4]byte

func (*MagicWrapper) AppendArray

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

func (*MagicWrapper) AppendMap

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

func (*MagicWrapper) Finalize

func (_ *MagicWrapper) Finalize()

func (*MagicWrapper) Get

func (_ *MagicWrapper) Get(i int) types.Field

func (*MagicWrapper) SetBoolean

func (_ *MagicWrapper) SetBoolean(v bool)

func (*MagicWrapper) SetBytes

func (r *MagicWrapper) SetBytes(v []byte)

func (*MagicWrapper) SetDefault

func (_ *MagicWrapper) SetDefault(i int)

func (*MagicWrapper) SetDouble

func (_ *MagicWrapper) SetDouble(v float64)

func (*MagicWrapper) SetFloat

func (_ *MagicWrapper) SetFloat(v float32)

func (*MagicWrapper) SetInt

func (_ *MagicWrapper) SetInt(v int32)

func (*MagicWrapper) SetLong

func (_ *MagicWrapper) SetLong(v int64)

func (*MagicWrapper) SetString

func (_ *MagicWrapper) SetString(v string)

func (*MagicWrapper) SetUnionElem

func (_ *MagicWrapper) SetUnionElem(v int64)

type MapBytes

type MapBytes struct {
	M map[string][]byte
	// contains filtered or unexported fields
}

func NewMapBytes

func NewMapBytes() *MapBytes

func (*MapBytes) AppendArray

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

func (*MapBytes) AppendMap

func (r *MapBytes) AppendMap(key string) types.Field

func (*MapBytes) Finalize

func (r *MapBytes) Finalize()

func (*MapBytes) Get

func (_ *MapBytes) Get(i int) types.Field

func (*MapBytes) SetBoolean

func (_ *MapBytes) SetBoolean(v bool)

func (*MapBytes) SetBytes

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

func (*MapBytes) SetDefault

func (_ *MapBytes) SetDefault(i int)

func (*MapBytes) SetDouble

func (_ *MapBytes) SetDouble(v float64)

func (*MapBytes) SetFloat

func (_ *MapBytes) SetFloat(v float32)

func (*MapBytes) SetInt

func (_ *MapBytes) SetInt(v int32)

func (*MapBytes) SetLong

func (_ *MapBytes) SetLong(v int64)

func (*MapBytes) SetString

func (_ *MapBytes) SetString(v string)

func (*MapBytes) SetUnionElem

func (_ *MapBytes) SetUnionElem(v int64)

type Sync

type Sync SyncWrapper

type SyncWrapper

type SyncWrapper [16]byte

func (*SyncWrapper) AppendArray

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

func (*SyncWrapper) AppendMap

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

func (*SyncWrapper) Finalize

func (_ *SyncWrapper) Finalize()

func (*SyncWrapper) Get

func (_ *SyncWrapper) Get(i int) types.Field

func (*SyncWrapper) SetBoolean

func (_ *SyncWrapper) SetBoolean(v bool)

func (*SyncWrapper) SetBytes

func (r *SyncWrapper) SetBytes(v []byte)

func (*SyncWrapper) SetDefault

func (_ *SyncWrapper) SetDefault(i int)

func (*SyncWrapper) SetDouble

func (_ *SyncWrapper) SetDouble(v float64)

func (*SyncWrapper) SetFloat

func (_ *SyncWrapper) SetFloat(v float32)

func (*SyncWrapper) SetInt

func (_ *SyncWrapper) SetInt(v int32)

func (*SyncWrapper) SetLong

func (_ *SyncWrapper) SetLong(v int64)

func (*SyncWrapper) SetString

func (_ *SyncWrapper) SetString(v string)

func (*SyncWrapper) SetUnionElem

func (_ *SyncWrapper) SetUnionElem(v int64)

Jump to

Keyboard shortcuts

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