flush

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flusher added in v1.2.7

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

Flusher represents a flusher/merger.

func ForCompaction added in v1.2.7

func ForCompaction(monitor monitor.Monitor, writer Writer, fileNameFunc func(map[string]interface{}) (string, error)) (*Flusher, error)

ForCompaction creates a new storage implementation.

func (*Flusher) Close added in v1.2.7

func (s *Flusher) Close() error

Close is used to gracefully close storage.

func (*Flusher) WriteBlock added in v1.2.7

func (s *Flusher) WriteBlock(blocks []block.Block, schema typeof.Schema) error

WriteBlock writes a one or multiple blocks to the underlying writer.

func (*Flusher) WriteRow added in v1.2.7

func (s *Flusher) WriteRow(r block.Row) error

WriteRow writes a single row to the underlying writer (i.e. streamer).

type Writer

type Writer interface {
	Write(key key.Key, blocks []block.Block) error
}

Writer represents a sink for the flusher.

Jump to

Keyboard shortcuts

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