Documentation ¶
Overview ¶
Code generated by github.com/actgardner/gogen-avro. DO NOT EDIT.
- SOURCE:
- union.avsc
Code generated by github.com/actgardner/gogen-avro. DO NOT EDIT.
- SOURCE:
- union.avsc
Index ¶
- Constants
- type PrimitiveUnionTestRecord
- func (_ *PrimitiveUnionTestRecord) AppendArray() types.Field
- func (_ *PrimitiveUnionTestRecord) AppendMap(key string) types.Field
- func (_ *PrimitiveUnionTestRecord) AvroCRC64Fingerprint() []byte
- func (_ *PrimitiveUnionTestRecord) Finalize()
- func (r *PrimitiveUnionTestRecord) Get(i int) types.Field
- func (r *PrimitiveUnionTestRecord) Schema() string
- func (r *PrimitiveUnionTestRecord) SchemaName() string
- func (r *PrimitiveUnionTestRecord) Serialize(w io.Writer) error
- func (_ *PrimitiveUnionTestRecord) SetBoolean(v bool)
- func (_ *PrimitiveUnionTestRecord) SetBytes(v []byte)
- func (r *PrimitiveUnionTestRecord) SetDefault(i int)
- func (_ *PrimitiveUnionTestRecord) SetDouble(v float64)
- func (_ *PrimitiveUnionTestRecord) SetFloat(v float32)
- func (_ *PrimitiveUnionTestRecord) SetInt(v int32)
- func (_ *PrimitiveUnionTestRecord) SetLong(v int64)
- func (_ *PrimitiveUnionTestRecord) SetString(v string)
- func (_ *PrimitiveUnionTestRecord) SetUnionElem(v int64)
- type UnionFieldUnion
- func (_ *UnionFieldUnion) AppendArray() types.Field
- func (_ *UnionFieldUnion) AppendMap(key string) types.Field
- func (_ *UnionFieldUnion) Finalize()
- func (r *UnionFieldUnion) Get(i int) types.Field
- func (_ *UnionFieldUnion) SetBoolean(v bool)
- func (_ *UnionFieldUnion) SetBytes(v []byte)
- func (_ *UnionFieldUnion) SetDefault(i int)
- func (_ *UnionFieldUnion) SetDouble(v float64)
- func (_ *UnionFieldUnion) SetFloat(v float32)
- func (_ *UnionFieldUnion) SetInt(v int32)
- func (r *UnionFieldUnion) SetLong(v int64)
- func (_ *UnionFieldUnion) SetString(v string)
- type UnionFieldUnionTypeEnum
Constants ¶
View Source
const PrimitiveUnionTestRecordAvroCRC64Fingerprint = "hSK\xb5\xb2ۗ]"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrimitiveUnionTestRecord ¶
type PrimitiveUnionTestRecord struct {
UnionField *UnionFieldUnion
}
func DeserializePrimitiveUnionTestRecord ¶
func DeserializePrimitiveUnionTestRecord(r io.Reader) (*PrimitiveUnionTestRecord, error)
func DeserializePrimitiveUnionTestRecordFromSchema ¶
func DeserializePrimitiveUnionTestRecordFromSchema(r io.Reader, schema string) (*PrimitiveUnionTestRecord, error)
func NewPrimitiveUnionTestRecord ¶
func NewPrimitiveUnionTestRecord() *PrimitiveUnionTestRecord
func (*PrimitiveUnionTestRecord) AppendArray ¶
func (_ *PrimitiveUnionTestRecord) AppendArray() types.Field
func (*PrimitiveUnionTestRecord) AppendMap ¶
func (_ *PrimitiveUnionTestRecord) AppendMap(key string) types.Field
func (*PrimitiveUnionTestRecord) AvroCRC64Fingerprint ¶ added in v6.5.0
func (_ *PrimitiveUnionTestRecord) AvroCRC64Fingerprint() []byte
func (*PrimitiveUnionTestRecord) Finalize ¶
func (_ *PrimitiveUnionTestRecord) Finalize()
func (*PrimitiveUnionTestRecord) Schema ¶
func (r *PrimitiveUnionTestRecord) Schema() string
func (*PrimitiveUnionTestRecord) SchemaName ¶
func (r *PrimitiveUnionTestRecord) SchemaName() string
func (*PrimitiveUnionTestRecord) Serialize ¶
func (r *PrimitiveUnionTestRecord) Serialize(w io.Writer) error
func (*PrimitiveUnionTestRecord) SetBoolean ¶
func (_ *PrimitiveUnionTestRecord) SetBoolean(v bool)
func (*PrimitiveUnionTestRecord) SetBytes ¶
func (_ *PrimitiveUnionTestRecord) SetBytes(v []byte)
func (*PrimitiveUnionTestRecord) SetDefault ¶
func (r *PrimitiveUnionTestRecord) SetDefault(i int)
func (*PrimitiveUnionTestRecord) SetDouble ¶
func (_ *PrimitiveUnionTestRecord) SetDouble(v float64)
func (*PrimitiveUnionTestRecord) SetFloat ¶
func (_ *PrimitiveUnionTestRecord) SetFloat(v float32)
func (*PrimitiveUnionTestRecord) SetInt ¶
func (_ *PrimitiveUnionTestRecord) SetInt(v int32)
func (*PrimitiveUnionTestRecord) SetLong ¶
func (_ *PrimitiveUnionTestRecord) SetLong(v int64)
func (*PrimitiveUnionTestRecord) SetString ¶
func (_ *PrimitiveUnionTestRecord) SetString(v string)
func (*PrimitiveUnionTestRecord) SetUnionElem ¶
func (_ *PrimitiveUnionTestRecord) SetUnionElem(v int64)
type UnionFieldUnion ¶
type UnionFieldUnion struct { Int int32 Long int64 Float float32 Double float64 String string Bool bool Null *types.NullVal UnionType UnionFieldUnionTypeEnum }
func NewUnionFieldUnion ¶
func NewUnionFieldUnion() *UnionFieldUnion
func (*UnionFieldUnion) AppendArray ¶
func (_ *UnionFieldUnion) AppendArray() types.Field
func (*UnionFieldUnion) Finalize ¶
func (_ *UnionFieldUnion) Finalize()
func (*UnionFieldUnion) SetBoolean ¶
func (_ *UnionFieldUnion) SetBoolean(v bool)
func (*UnionFieldUnion) SetBytes ¶
func (_ *UnionFieldUnion) SetBytes(v []byte)
func (*UnionFieldUnion) SetDefault ¶
func (_ *UnionFieldUnion) SetDefault(i int)
func (*UnionFieldUnion) SetDouble ¶
func (_ *UnionFieldUnion) SetDouble(v float64)
func (*UnionFieldUnion) SetFloat ¶
func (_ *UnionFieldUnion) SetFloat(v float32)
func (*UnionFieldUnion) SetInt ¶
func (_ *UnionFieldUnion) SetInt(v int32)
func (*UnionFieldUnion) SetLong ¶
func (r *UnionFieldUnion) SetLong(v int64)
func (*UnionFieldUnion) SetString ¶
func (_ *UnionFieldUnion) SetString(v string)
type UnionFieldUnionTypeEnum ¶
type UnionFieldUnionTypeEnum int
const ( UnionFieldUnionTypeEnumInt UnionFieldUnionTypeEnum = 0 UnionFieldUnionTypeEnumLong UnionFieldUnionTypeEnum = 1 UnionFieldUnionTypeEnumFloat UnionFieldUnionTypeEnum = 2 UnionFieldUnionTypeEnumDouble UnionFieldUnionTypeEnum = 3 UnionFieldUnionTypeEnumString UnionFieldUnionTypeEnum = 4 UnionFieldUnionTypeEnumBool UnionFieldUnionTypeEnum = 5 UnionFieldUnionTypeEnumNull UnionFieldUnionTypeEnum = 6 )
Click to show internal directories.
Click to hide internal directories.