Documentation ¶
Index ¶
- func BoolType(se *sch.SchemaElement)
- func Float32Type(se *sch.SchemaElement)
- func Float64Type(se *sch.SchemaElement)
- func Gzip(p *ParquetWriter) error
- func Int32Type(se *sch.SchemaElement)
- func Int64Type(se *sch.SchemaElement)
- func MaxPageSize(m int) func(*ParquetWriter) error
- func Snappy(p *ParquetWriter) error
- func StringType(se *sch.SchemaElement)
- func Uint32Type(se *sch.SchemaElement)
- func Uint64Type(se *sch.SchemaElement)
- func Uncompressed(p *ParquetWriter) error
- type Field
- type Hobby
- type Int32OptionalField
- func (f *Int32OptionalField) Add(r Person)
- func (f *Int32OptionalField) Levels() ([]uint8, []uint8)
- func (f *Int32OptionalField) Read(r io.ReadSeeker, pg parquet.Page) error
- func (f *Int32OptionalField) Scan(r *Person)
- func (f *Int32OptionalField) Schema() parquet.Field
- func (f *Int32OptionalField) Write(w io.Writer, meta *parquet.Metadata) error
- type Levels
- type ParquetReader
- type ParquetWriter
- type Person
- type Skill
- type StringField
- func (f *StringField) Add(r Person)
- func (f *StringField) Levels() ([]uint8, []uint8)
- func (f *StringField) Read(r io.ReadSeeker, pg parquet.Page) error
- func (f *StringField) Scan(r *Person)
- func (f *StringField) Schema() parquet.Field
- func (f *StringField) Write(w io.Writer, meta *parquet.Metadata) error
- type StringOptionalField
- func (f *StringOptionalField) Add(r Person)
- func (f *StringOptionalField) Levels() ([]uint8, []uint8)
- func (f *StringOptionalField) Read(r io.ReadSeeker, pg parquet.Page) error
- func (f *StringOptionalField) Scan(r *Person)
- func (f *StringOptionalField) Schema() parquet.Field
- func (f *StringOptionalField) Write(w io.Writer, meta *parquet.Metadata) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolType ¶
func BoolType(se *sch.SchemaElement)
func Float32Type ¶
func Float32Type(se *sch.SchemaElement)
func Float64Type ¶
func Float64Type(se *sch.SchemaElement)
func Gzip ¶
func Gzip(p *ParquetWriter) error
func Int32Type ¶
func Int32Type(se *sch.SchemaElement)
func Int64Type ¶
func Int64Type(se *sch.SchemaElement)
func MaxPageSize ¶
func MaxPageSize(m int) func(*ParquetWriter) error
MaxPageSize is the maximum number of rows in each row groups' page.
func Snappy ¶
func Snappy(p *ParquetWriter) error
func StringType ¶
func StringType(se *sch.SchemaElement)
func Uint32Type ¶
func Uint32Type(se *sch.SchemaElement)
func Uint64Type ¶
func Uint64Type(se *sch.SchemaElement)
func Uncompressed ¶
func Uncompressed(p *ParquetWriter) error
Types ¶
type Field ¶
type Int32OptionalField ¶
type Int32OptionalField struct { parquet.OptionalField // contains filtered or unexported fields }
func NewInt32OptionalField ¶
func (*Int32OptionalField) Add ¶
func (f *Int32OptionalField) Add(r Person)
func (*Int32OptionalField) Levels ¶
func (f *Int32OptionalField) Levels() ([]uint8, []uint8)
func (*Int32OptionalField) Read ¶
func (f *Int32OptionalField) Read(r io.ReadSeeker, pg parquet.Page) error
func (*Int32OptionalField) Scan ¶
func (f *Int32OptionalField) Scan(r *Person)
func (*Int32OptionalField) Schema ¶
func (f *Int32OptionalField) Schema() parquet.Field
type ParquetReader ¶
type ParquetReader struct {
// contains filtered or unexported fields
}
ParquetReader reads one page from a row group.
func NewParquetReader ¶
func NewParquetReader(r io.ReadSeeker, opts ...func(*ParquetReader)) (*ParquetReader, error)
func (*ParquetReader) Error ¶
func (p *ParquetReader) Error() error
func (*ParquetReader) Levels ¶
func (p *ParquetReader) Levels() []Levels
func (*ParquetReader) Next ¶
func (p *ParquetReader) Next() bool
func (*ParquetReader) Rows ¶
func (p *ParquetReader) Rows() int64
func (*ParquetReader) Scan ¶
func (p *ParquetReader) Scan(x *Person)
type ParquetWriter ¶
type ParquetWriter struct {
// contains filtered or unexported fields
}
ParquetWriter reprents a row group
func NewParquetWriter ¶
func NewParquetWriter(w io.Writer, opts ...func(*ParquetWriter) error) (*ParquetWriter, error)
func (*ParquetWriter) Add ¶
func (p *ParquetWriter) Add(rec Person)
func (*ParquetWriter) Close ¶
func (p *ParquetWriter) Close() error
func (*ParquetWriter) Write ¶
func (p *ParquetWriter) Write() error
type StringField ¶
type StringField struct { parquet.RequiredField // contains filtered or unexported fields }
func NewStringField ¶
func NewStringField(read func(r Person) string, write func(r *Person, vals []string), path []string, opts ...func(*parquet.RequiredField)) *StringField
func (*StringField) Add ¶
func (f *StringField) Add(r Person)
func (*StringField) Levels ¶
func (f *StringField) Levels() ([]uint8, []uint8)
func (*StringField) Read ¶
func (f *StringField) Read(r io.ReadSeeker, pg parquet.Page) error
func (*StringField) Scan ¶
func (f *StringField) Scan(r *Person)
func (*StringField) Schema ¶
func (f *StringField) Schema() parquet.Field
type StringOptionalField ¶
type StringOptionalField struct { parquet.OptionalField // contains filtered or unexported fields }
func NewStringOptionalField ¶
func (*StringOptionalField) Add ¶
func (f *StringOptionalField) Add(r Person)
func (*StringOptionalField) Levels ¶
func (f *StringOptionalField) Levels() ([]uint8, []uint8)
func (*StringOptionalField) Read ¶
func (f *StringOptionalField) Read(r io.ReadSeeker, pg parquet.Page) error
func (*StringOptionalField) Scan ¶
func (f *StringOptionalField) Scan(r *Person)
func (*StringOptionalField) Schema ¶
func (f *StringOptionalField) Schema() parquet.Field
Click to show internal directories.
Click to hide internal directories.