Documentation
¶
Index ¶
- Constants
- Variables
- type BoolDecoder
- type BoolEncoder
- type BytesDecoder
- type BytesDecoderDict
- type BytesEncoder
- type BytesEncoderDict
- type Float64Decoder
- type Float64Encoder
- func (e *Float64Encoder) CollectColumns(columnSet *pkg.WriteColumnSet)
- func (e *Float64Encoder) Encode(val float64)
- func (e *Float64Encoder) Init(limiter *pkg.SizeLimiter, columns *pkg.WriteColumnSet) error
- func (e *Float64Encoder) IsEqual(val float64) bool
- func (e *Float64Encoder) Reset()
- func (e *Float64Encoder) WriteTo(buf *pkg.BytesWriter)
- type Int64Decoder
- type Int64Encoder
- type StringDecoder
- type StringDecoderDict
- type StringEncoder
- func (e *StringEncoder) CollectColumns(columnSet *pkg.WriteColumnSet)
- func (e *StringEncoder) Encode(val string)
- func (e *StringEncoder) Init(dict *StringEncoderDict, limiter *pkg.SizeLimiter, columns *pkg.WriteColumnSet) error
- func (e *StringEncoder) Reset()
- func (e *StringEncoder) WriteTo(buf *pkg.BytesWriter)
- type StringEncoderDict
- type Uint64Decoder
- type Uint64Encoder
- func (e *Uint64Encoder) CollectColumns(columnSet *pkg.WriteColumnSet)
- func (e *Uint64Encoder) Encode(val uint64)
- func (e *Uint64Encoder) Init(limiter *pkg.SizeLimiter, columns *pkg.WriteColumnSet) error
- func (e *Uint64Encoder) IsEqual(val uint64) bool
- func (e *Uint64Encoder) Reset()
- func (e *Uint64Encoder) WriteTo(buf *pkg.BytesWriter)
Constants ¶
View Source
const ( // Float64NonIdenticalBit indicates that the value is not identical to the previous value. Float64NonIdenticalBit = 0b1000000000000 // Float64NewLeadingTrailingBit indicates that encoding uses new leading/trailing bit counts. Float64NewLeadingTrailingBit = 0b0100000000000 // Float64LeadingBitMask contains bits that store the leading bit count. Float64LeadingBitMask = 0b0011111000000 // Float64SigBitMask contains bits that store the trailing bit count. Float64SigBitMask = 0b0000000111111 // Float64SigBitsCount the of bits used by Float64SigBitMask, same as the // number of bits to shift Float64LeadingBitMask to get its value. Float64SigBitsCount = 6 )
Variables ¶
View Source
var ErrInvalidRefNum = errors.New("invalid RefNum, out of dictionary range")
Functions ¶
This section is empty.
Types ¶
type BoolDecoder ¶
type BoolDecoder struct {
// contains filtered or unexported fields
}
func (*BoolDecoder) Continue ¶
func (d *BoolDecoder) Continue()
func (*BoolDecoder) Decode ¶
func (d *BoolDecoder) Decode(dst *bool) error
func (*BoolDecoder) Init ¶
func (d *BoolDecoder) Init(columns *pkg.ReadColumnSet) error
func (*BoolDecoder) Reset ¶
func (d *BoolDecoder) Reset()
type BoolEncoder ¶
type BoolEncoder struct {
// contains filtered or unexported fields
}
func (*BoolEncoder) CollectColumns ¶
func (e *BoolEncoder) CollectColumns(columnSet *pkg.WriteColumnSet)
func (*BoolEncoder) Encode ¶
func (e *BoolEncoder) Encode(val bool)
func (*BoolEncoder) Init ¶
func (e *BoolEncoder) Init(limiter *pkg.SizeLimiter, columns *pkg.WriteColumnSet) error
func (*BoolEncoder) Reset ¶
func (e *BoolEncoder) Reset()
func (*BoolEncoder) WriteTo ¶
func (e *BoolEncoder) WriteTo(buf *pkg.BytesWriter)
type BytesDecoder ¶
type BytesDecoder struct {
StringDecoder
}
func (*BytesDecoder) Continue ¶
func (d *BytesDecoder) Continue()
func (*BytesDecoder) Init ¶
func (d *BytesDecoder) Init(dict *BytesDecoderDict, columns *pkg.ReadColumnSet) error
type BytesDecoderDict ¶
type BytesDecoderDict StringDecoderDict
func (*BytesDecoderDict) Init ¶
func (d *BytesDecoderDict) Init()
type BytesEncoder ¶
type BytesEncoder struct {
StringEncoder
}
func (*BytesEncoder) Encode ¶
func (e *BytesEncoder) Encode(val pkg.Bytes)
func (*BytesEncoder) Init ¶
func (e *BytesEncoder) Init(dict *BytesEncoderDict, limiter *pkg.SizeLimiter, columns *pkg.WriteColumnSet) error
type BytesEncoderDict ¶
type BytesEncoderDict StringEncoderDict
func (*BytesEncoderDict) Init ¶
func (e *BytesEncoderDict) Init(limiter *pkg.SizeLimiter)
func (*BytesEncoderDict) Reset ¶
func (e *BytesEncoderDict) Reset()
type Float64Decoder ¶
type Float64Decoder struct {
// contains filtered or unexported fields
}
func (*Float64Decoder) Continue ¶
func (d *Float64Decoder) Continue()
func (*Float64Decoder) Decode ¶
func (d *Float64Decoder) Decode(dst *float64) error
func (*Float64Decoder) Init ¶
func (d *Float64Decoder) Init(columns *pkg.ReadColumnSet) error
func (*Float64Decoder) Reset ¶
func (d *Float64Decoder) Reset()
type Float64Encoder ¶
type Float64Encoder struct {
// contains filtered or unexported fields
}
func (*Float64Encoder) CollectColumns ¶
func (e *Float64Encoder) CollectColumns(columnSet *pkg.WriteColumnSet)
func (*Float64Encoder) Encode ¶
func (e *Float64Encoder) Encode(val float64)
func (*Float64Encoder) Init ¶
func (e *Float64Encoder) Init(limiter *pkg.SizeLimiter, columns *pkg.WriteColumnSet) error
func (*Float64Encoder) IsEqual ¶
func (e *Float64Encoder) IsEqual(val float64) bool
func (*Float64Encoder) Reset ¶
func (e *Float64Encoder) Reset()
func (*Float64Encoder) WriteTo ¶
func (e *Float64Encoder) WriteTo(buf *pkg.BytesWriter)
type Int64Decoder ¶
type Int64Decoder struct { Uint64Decoder // contains filtered or unexported fields }
func (*Int64Decoder) Decode ¶
func (e *Int64Decoder) Decode(dst *int64) error
type Int64Encoder ¶
type Int64Encoder struct {
Uint64Encoder
}
func (*Int64Encoder) Encode ¶
func (e *Int64Encoder) Encode(val int64)
func (*Int64Encoder) IsEqual ¶
func (e *Int64Encoder) IsEqual(val int64) bool
type StringDecoder ¶
type StringDecoder struct {
// contains filtered or unexported fields
}
func (*StringDecoder) Continue ¶
func (d *StringDecoder) Continue()
func (*StringDecoder) Decode ¶
func (d *StringDecoder) Decode(dst *string) error
func (*StringDecoder) Init ¶
func (d *StringDecoder) Init(dict *StringDecoderDict, columns *pkg.ReadColumnSet) error
func (*StringDecoder) Reset ¶
func (d *StringDecoder) Reset()
type StringDecoderDict ¶
type StringDecoderDict struct {
// contains filtered or unexported fields
}
func (*StringDecoderDict) Init ¶
func (d *StringDecoderDict) Init()
func (*StringDecoderDict) Reset ¶ added in v0.0.4
func (d *StringDecoderDict) Reset()
type StringEncoder ¶
type StringEncoder struct {
// contains filtered or unexported fields
}
func (*StringEncoder) CollectColumns ¶
func (e *StringEncoder) CollectColumns(columnSet *pkg.WriteColumnSet)
func (*StringEncoder) Encode ¶
func (e *StringEncoder) Encode(val string)
func (*StringEncoder) Init ¶
func (e *StringEncoder) Init(dict *StringEncoderDict, limiter *pkg.SizeLimiter, columns *pkg.WriteColumnSet) error
func (*StringEncoder) Reset ¶
func (e *StringEncoder) Reset()
func (*StringEncoder) WriteTo ¶
func (e *StringEncoder) WriteTo(buf *pkg.BytesWriter)
type StringEncoderDict ¶
type StringEncoderDict struct {
// contains filtered or unexported fields
}
func (*StringEncoderDict) Init ¶
func (e *StringEncoderDict) Init(limiter *pkg.SizeLimiter)
func (*StringEncoderDict) Reset ¶
func (e *StringEncoderDict) Reset()
type Uint64Decoder ¶
type Uint64Decoder struct {
// contains filtered or unexported fields
}
func (*Uint64Decoder) Continue ¶
func (d *Uint64Decoder) Continue()
func (*Uint64Decoder) Decode ¶
func (d *Uint64Decoder) Decode(dst *uint64) error
func (*Uint64Decoder) Init ¶
func (d *Uint64Decoder) Init(columns *pkg.ReadColumnSet) error
func (*Uint64Decoder) Reset ¶
func (d *Uint64Decoder) Reset()
type Uint64Encoder ¶
type Uint64Encoder struct {
// contains filtered or unexported fields
}
func (*Uint64Encoder) CollectColumns ¶
func (e *Uint64Encoder) CollectColumns(columnSet *pkg.WriteColumnSet)
func (*Uint64Encoder) Encode ¶
func (e *Uint64Encoder) Encode(val uint64)
func (*Uint64Encoder) Init ¶
func (e *Uint64Encoder) Init(limiter *pkg.SizeLimiter, columns *pkg.WriteColumnSet) error
func (*Uint64Encoder) IsEqual ¶
func (e *Uint64Encoder) IsEqual(val uint64) bool
func (*Uint64Encoder) Reset ¶
func (e *Uint64Encoder) Reset()
func (*Uint64Encoder) WriteTo ¶
func (e *Uint64Encoder) WriteTo(buf *pkg.BytesWriter)
Click to show internal directories.
Click to hide internal directories.