simple

package
v0.12.13 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSimpleWriter

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

func NewSomeDateObj_recordWriter

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

Types

type ArrayLongWrapper

type ArrayLongWrapper []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) 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 ByteWriter

type ByteWriter interface {
	Grow(int)
	WriteByte(byte) error
}

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

	// This is set to true when the Avro data is recording a delete in the source data.
	AvroDeleted bool
	Height      *UnionNullLong
	SomeDateObj *UnionNullSomeDateObj_record
	Type        string
	Visible     bool
	Width       *UnionNullDouble
}

func DeserializeSimple

func DeserializeSimple(r io.Reader) (*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) Finalize

func (_ *Simple) Finalize()

func (*Simple) Get

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

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 SimpleReader

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

func NewSimpleReader

func NewSimpleReader(r io.Reader) (*SimpleReader, error)

func (*SimpleReader) Read

func (r *SimpleReader) Read() (*Simple, error)

type SomeDateObj_record

type SomeDateObj_record struct {
	Dates []int64
}

func DeserializeSomeDateObj_record

func DeserializeSomeDateObj_record(r io.Reader) (*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) Finalize

func (_ *SomeDateObj_record) Finalize()

func (*SomeDateObj_record) Get

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

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 SomeDateObj_recordReader

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

func NewSomeDateObj_recordReader

func NewSomeDateObj_recordReader(r io.Reader) (*SomeDateObj_recordReader, error)

func (*SomeDateObj_recordReader) Read

type StringWriter

type StringWriter interface {
	WriteString(string) (int, error)
}

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) 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)

type UnionNullDoubleTypeEnum

type UnionNullDoubleTypeEnum int
const (
	UnionNullDoubleTypeEnumNull   UnionNullDoubleTypeEnum = 0
	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) 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)

type UnionNullLongTypeEnum

type UnionNullLongTypeEnum int
const (
	UnionNullLongTypeEnumNull UnionNullLongTypeEnum = 0
	UnionNullLongTypeEnumLong UnionNullLongTypeEnum = 1
)

type UnionNullSomeDateObj_record added in v0.12.9

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

func NewUnionNullSomeDateObj_record added in v0.12.9

func NewUnionNullSomeDateObj_record() *UnionNullSomeDateObj_record

func (*UnionNullSomeDateObj_record) AppendArray added in v0.12.9

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

func (*UnionNullSomeDateObj_record) AppendMap added in v0.12.9

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

func (*UnionNullSomeDateObj_record) Finalize added in v0.12.9

func (_ *UnionNullSomeDateObj_record) Finalize()

func (*UnionNullSomeDateObj_record) Get added in v0.12.9

func (*UnionNullSomeDateObj_record) SetBoolean added in v0.12.9

func (_ *UnionNullSomeDateObj_record) SetBoolean(v bool)

func (*UnionNullSomeDateObj_record) SetBytes added in v0.12.9

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

func (*UnionNullSomeDateObj_record) SetDefault added in v0.12.9

func (_ *UnionNullSomeDateObj_record) SetDefault(i int)

func (*UnionNullSomeDateObj_record) SetDouble added in v0.12.9

func (_ *UnionNullSomeDateObj_record) SetDouble(v float64)

func (*UnionNullSomeDateObj_record) SetFloat added in v0.12.9

func (_ *UnionNullSomeDateObj_record) SetFloat(v float32)

func (*UnionNullSomeDateObj_record) SetInt added in v0.12.9

func (_ *UnionNullSomeDateObj_record) SetInt(v int32)

func (*UnionNullSomeDateObj_record) SetLong added in v0.12.9

func (r *UnionNullSomeDateObj_record) SetLong(v int64)

func (*UnionNullSomeDateObj_record) SetString added in v0.12.9

func (_ *UnionNullSomeDateObj_record) SetString(v string)

type UnionNullSomeDateObj_recordTypeEnum added in v0.12.9

type UnionNullSomeDateObj_recordTypeEnum int
const (
	UnionNullSomeDateObj_recordTypeEnumNull               UnionNullSomeDateObj_recordTypeEnum = 0
	UnionNullSomeDateObj_recordTypeEnumSomeDateObj_record UnionNullSomeDateObj_recordTypeEnum = 1
)

Jump to

Keyboard shortcuts

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