segment

package
v0.0.0-...-bbf0bf7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalParquet

type LocalParquet struct {
	// contains filtered or unexported fields
}

func NewLocalParquet

func NewLocalParquet(dir, filename string) (*LocalParquet, error)

func (*LocalParquet) Close

func (lp *LocalParquet) Close() error

func (*LocalParquet) Open

func (lp *LocalParquet) Open(name string) (*LocalParquet, error)

func (*LocalParquet) Read

func (lp *LocalParquet) Read(b []byte) (cnt int, err error)

func (*LocalParquet) Seek

func (lp *LocalParquet) Seek(offset int64, pos int) (int64, error)

func (*LocalParquet) Write

func (lp *LocalParquet) Write(b []byte) (n int, err error)

type Segment

type Segment struct {
	ID uuid.UUID `json:"-"`
	// contains filtered or unexported fields
}

func NewSegment

func NewSegment(dir string, partition int, schema *arrow.Schema) (*Segment, error)

func (*Segment) Flush

func (s *Segment) Flush(record arrow.Record) error

Flush persist the segment on disk

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL