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, v bool) []byte
- func AppendByteArray(b, v []byte) []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 Double(v float64) []byte
- 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 RangeByteArrays(b []byte, do func([]byte) error) (err error)
- type Decoder
- func (d *Decoder) DecodeBoolean(data []bool) (int, error)
- func (d *Decoder) DecodeByteArray(data *encoding.ByteArrayList) (n int, err error)
- func (d *Decoder) DecodeDouble(data []float64) (int, error)
- func (d *Decoder) DecodeFixedLenByteArray(size int, data []byte) (int, error)
- func (d *Decoder) DecodeFloat(data []float32) (int, error)
- func (d *Decoder) DecodeInt32(data []int32) (int, error)
- func (d *Decoder) DecodeInt64(data []int64) (int, error)
- func (d *Decoder) DecodeInt96(data []deprecated.Int96) (int, error)
- func (d *Decoder) Reset(r io.Reader)
- func (d *Decoder) SetBitWidth(bitWidth int)
- type DictionaryEncoding
- type Encoder
- func (e *Encoder) EncodeBoolean(data []bool) error
- func (e *Encoder) EncodeByteArray(data encoding.ByteArrayList) (err error)
- func (e *Encoder) EncodeDouble(data []float64) error
- func (e *Encoder) EncodeFixedLenByteArray(size int, data []byte) error
- func (e *Encoder) EncodeFloat(data []float32) error
- func (e *Encoder) EncodeInt32(data []int32) error
- func (e *Encoder) EncodeInt64(data []int64) error
- func (e *Encoder) EncodeInt96(data []deprecated.Int96) error
- func (e *Encoder) Reset(w io.Writer)
- func (e *Encoder) SetBitWidth(bitWidth int)
- type Encoding
- type Type
Constants ¶
View Source
const (
ByteArrayLengthSize = 4
)
Variables ¶
This section is empty.
Functions ¶
func AppendBoolean ¶
func AppendByteArray ¶
func AppendDouble ¶
func AppendFloat ¶
func AppendInt32 ¶
func AppendInt64 ¶
func AppendInt96 ¶
func AppendInt96(b []byte, v deprecated.Int96) []byte
func Int96 ¶
func Int96(v deprecated.Int96) []byte
func NextByteArray ¶
func PutByteArrayLength ¶
Types ¶
type Decoder ¶
type Decoder struct { encoding.NotSupportedDecoder // contains filtered or unexported fields }
func NewDecoder ¶
func (*Decoder) DecodeByteArray ¶
func (d *Decoder) DecodeByteArray(data *encoding.ByteArrayList) (n int, err error)
func (*Decoder) DecodeFixedLenByteArray ¶
func (*Decoder) DecodeInt96 ¶
func (d *Decoder) DecodeInt96(data []deprecated.Int96) (int, error)
func (*Decoder) SetBitWidth ¶
type DictionaryEncoding ¶
type DictionaryEncoding struct { }
func (DictionaryEncoding) Encoding ¶
func (e DictionaryEncoding) Encoding() format.Encoding
func (DictionaryEncoding) NewDecoder ¶
func (e DictionaryEncoding) NewDecoder(r io.Reader) encoding.Decoder
func (DictionaryEncoding) NewEncoder ¶
func (e DictionaryEncoding) NewEncoder(w io.Writer) encoding.Encoder
func (DictionaryEncoding) String ¶
func (e DictionaryEncoding) String() string
type Encoder ¶
type Encoder struct { encoding.NotSupportedEncoder // contains filtered or unexported fields }
func NewEncoder ¶
func (*Encoder) EncodeBoolean ¶
func (*Encoder) EncodeByteArray ¶
func (e *Encoder) EncodeByteArray(data encoding.ByteArrayList) (err error)
func (*Encoder) EncodeDouble ¶
func (*Encoder) EncodeFixedLenByteArray ¶
func (*Encoder) EncodeFloat ¶
func (*Encoder) EncodeInt32 ¶
func (*Encoder) EncodeInt64 ¶
func (*Encoder) EncodeInt96 ¶
func (e *Encoder) EncodeInt96(data []deprecated.Int96) error
func (*Encoder) SetBitWidth ¶
Click to show internal directories.
Click to hide internal directories.