slicedwriter

package
v1.3.2-0...-808ebe2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

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

Writer writes CSV to a sliced table directory. Each part is one file in the directory. When maxRows/maxBytes is reached -> a new file/slice is created.

func New

func New(cfg config.Config, totalInputSize datasize.ByteSize, outPath string) (*Writer, error)

func (*Writer) AlLBytes

func (w *Writer) AlLBytes() datasize.ByteSize

func (*Writer) AllRows

func (w *Writer) AllRows() uint64

func (*Writer) Close

func (w *Writer) Close() error

func (*Writer) GzipEnabled

func (w *Writer) GzipEnabled() bool

func (*Writer) IsSpaceForNextRowInSlice

func (w *Writer) IsSpaceForNextRowInSlice(rowLength uint64) bool

func (*Writer) Slices

func (w *Writer) Slices() uint32

func (*Writer) Write

func (w *Writer) Write(row []byte) error

Jump to

Keyboard shortcuts

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