Documentation ¶
Overview ¶
Package plain implements the PLAIN parquet encoding.
https://github.com/apache/parquet-format/blob/master/Encodings.md#plain-plain--0
Index ¶
- Constants
- func AppendBoolean(b []byte, n int, v bool) []byte
- func AppendByteArray(b, v []byte) []byte
- func AppendByteArrayLength(b []byte, n int) []byte
- func AppendByteArrayString(b []byte, v string) []byte
- func AppendDouble(b []byte, v float64) []byte
- func AppendFloat(b []byte, v float32) []byte
- func AppendInt32(b []byte, v int32) []byte
- func AppendInt64(b []byte, v int64) []byte
- func AppendInt96(b []byte, v deprecated.Int96) []byte
- func Boolean(v bool) []byte
- func ByteArray(v []byte) []byte
- func ByteArrayLength(b []byte) int
- func Double(v float64) []byte
- func ErrTooLarge(length int) error
- func ErrTooShort(length int) error
- func Float(v float32) []byte
- func Int32(v int32) []byte
- func Int64(v int64) []byte
- func Int96(v deprecated.Int96) []byte
- func NextByteArray(b []byte) (v, r []byte, err error)
- func PutByteArrayLength(b []byte, n int)
- func RangeByteArray(b []byte, do func([]byte) error) (err error)
- type DictionaryEncoding
- type Encoding
- func (e *Encoding) CanDecodeInPlace() bool
- func (e *Encoding) DecodeBoolean(dst []byte, src []byte) ([]byte, error)
- func (e *Encoding) DecodeByteArray(dst []byte, src []byte, offsets []uint32) ([]byte, []uint32, error)
- func (e *Encoding) DecodeDouble(dst []float64, src []byte) ([]float64, error)
- func (e *Encoding) DecodeFixedLenByteArray(dst []byte, src []byte, size int) ([]byte, error)
- func (e *Encoding) DecodeFloat(dst []float32, src []byte) ([]float32, error)
- func (e *Encoding) DecodeInt32(dst []int32, src []byte) ([]int32, error)
- func (e *Encoding) DecodeInt64(dst []int64, src []byte) ([]int64, error)
- func (e *Encoding) DecodeInt96(dst []deprecated.Int96, src []byte) ([]deprecated.Int96, error)
- func (e *Encoding) EncodeBoolean(dst []byte, src []byte) ([]byte, error)
- func (e *Encoding) EncodeByteArray(dst []byte, src []byte, offsets []uint32) ([]byte, error)
- func (e *Encoding) EncodeDouble(dst []byte, src []float64) ([]byte, error)
- func (e *Encoding) EncodeFixedLenByteArray(dst []byte, src []byte, size int) ([]byte, error)
- func (e *Encoding) EncodeFloat(dst []byte, src []float32) ([]byte, error)
- func (e *Encoding) EncodeInt32(dst []byte, src []int32) ([]byte, error)
- func (e *Encoding) EncodeInt64(dst []byte, src []int64) ([]byte, error)
- func (e *Encoding) EncodeInt96(dst []byte, src []deprecated.Int96) ([]byte, error)
- func (e *Encoding) Encoding() format.Encoding
- func (e *Encoding) EstimateDecodeByteArraySize(src []byte) int
- func (e *Encoding) String() string
Constants ¶
View Source
const ( ByteArrayLengthSize = 4 MaxByteArrayLength = math.MaxInt32 )
Variables ¶
This section is empty.
Functions ¶
func AppendByteArray ¶
func AppendByteArrayLength ¶
func AppendByteArrayString ¶
func AppendDouble ¶
func AppendFloat ¶
func AppendInt32 ¶
func AppendInt64 ¶
func AppendInt96 ¶
func AppendInt96(b []byte, v deprecated.Int96) []byte
func ByteArrayLength ¶
func ErrTooLarge ¶
func ErrTooShort ¶
func Int96 ¶
func Int96(v deprecated.Int96) []byte
func NextByteArray ¶
func PutByteArrayLength ¶
Types ¶
type DictionaryEncoding ¶
type DictionaryEncoding struct { encoding.NotSupported // contains filtered or unexported fields }
func (*DictionaryEncoding) DecodeInt32 ¶
func (e *DictionaryEncoding) DecodeInt32(dst []int32, src []byte) ([]int32, error)
func (*DictionaryEncoding) EncodeInt32 ¶
func (e *DictionaryEncoding) EncodeInt32(dst []byte, src []int32) ([]byte, error)
func (*DictionaryEncoding) Encoding ¶
func (e *DictionaryEncoding) Encoding() format.Encoding
func (*DictionaryEncoding) String ¶
func (e *DictionaryEncoding) String() string
type Encoding ¶
type Encoding struct {
encoding.NotSupported
}
func (*Encoding) CanDecodeInPlace ¶
func (*Encoding) DecodeBoolean ¶
func (*Encoding) DecodeByteArray ¶
func (*Encoding) DecodeDouble ¶
func (*Encoding) DecodeFixedLenByteArray ¶
func (*Encoding) DecodeFloat ¶
func (*Encoding) DecodeInt32 ¶
func (*Encoding) DecodeInt64 ¶
func (*Encoding) DecodeInt96 ¶
func (e *Encoding) DecodeInt96(dst []deprecated.Int96, src []byte) ([]deprecated.Int96, error)
func (*Encoding) EncodeBoolean ¶
func (*Encoding) EncodeByteArray ¶
func (*Encoding) EncodeDouble ¶
func (*Encoding) EncodeFixedLenByteArray ¶
func (*Encoding) EncodeFloat ¶
func (*Encoding) EncodeInt32 ¶
func (*Encoding) EncodeInt64 ¶
func (*Encoding) EncodeInt96 ¶
func (*Encoding) EstimateDecodeByteArraySize ¶
Click to show internal directories.
Click to hide internal directories.