file

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteBuffer

func WriteBuffer(buffer *bufio.Writer, rows vector.Vector) error

Types

type Info

type Info struct {
	Reader     io.Reader
	Allocate   *vector.Allocate
	OutputPath string

	PrintMemUsage bool
	// contains filtered or unexported fields
}

func (*Info) CreateSortedChunks

func (f *Info) CreateSortedChunks(ctx context.Context, chunkFolder string, dumpSize int, maxWorkers int64) ([]string, error)

CreateSortedChunks Scan a file and divide it into small sorted chunks. Store all the chunks in a folder an returns all the paths.

func (*Info) MergeSort

func (f *Info) MergeSort(chunkPaths []string, k int) (err error)

type MemUsage

type MemUsage struct {
	MaxAlloc uint64
	MaxSys   uint64
	NumGc    uint32
}

func (*MemUsage) Collect

func (mu *MemUsage) Collect()

func (*MemUsage) PrintMemUsage

func (mu *MemUsage) PrintMemUsage()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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