Documentation ΒΆ
Index ΒΆ
- Variables
- type Schema
- func (s *Schema[T]) Append(value T)
- func (s *Schema[T]) NewRecord() arrow.Record
- func (s *Schema[T]) Parquet() *schema.Schema
- func (s *Schema[T]) Proto(r arrow.Record, rows []int) []T
- func (s *Schema[T]) ReadParquet(ctx context.Context, r parquet.ReaderAtSeeker, columns []int) (arrow.Record, error)
- func (s *Schema[T]) Release()
- func (s *Schema[T]) Schema() *arrow.Schema
- func (s *Schema[T]) WriteParquet(w io.Writer) error
- func (s *Schema[T]) WriteParquetRecords(w io.Writer, records ...arrow.Record) error
Constants ΒΆ
This section is empty.
Variables ΒΆ
View Source
var ErrMxDepth = errors.New("max depth reached, either the message is deeply nested or a circular dependency was introduced")
Functions ΒΆ
This section is empty.
Types ΒΆ
type Schema ΒΆ
func (*Schema[T]) Append ΒΆ
func (s *Schema[T]) Append(value T)
Append appends protobuf value to the schema builder.This method is not safe for concurrent use.
func (*Schema[T]) NewRecord ΒΆ
NewRecord returns buffered builder value as an arrow.Record. The builder is reset and can be reused to build new records.
func (*Schema[T]) ReadParquet ΒΆ
func (s *Schema[T]) ReadParquet(ctx context.Context, r parquet.ReaderAtSeeker, columns []int) (arrow.Record, error)
ReadParquet specified columns from parquet source r and returns an Arrow record. The returned record must be released by the caller.
func (*Schema[T]) Release ΒΆ
func (s *Schema[T]) Release()
Release releases the reference on the message builder
Click to show internal directories.
Click to hide internal directories.