flush

package
v0.0.0-...-7638244 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

Storage represents s3/flush storage.

func New

func New(monitor monitor.Monitor, writer writers.Writer, fileNameFunc func(map[string]interface{}) (string, error)) *Storage

New creates a new storage implementation.

func (*Storage) Append

func (s *Storage) Append(key key.Key, value []byte, ttl time.Duration) error

Append flushes the merged blocks to S3

func (*Storage) Close

func (s *Storage) Close() error

Close is used to gracefully close storage.

func (*Storage) Merge

func (s *Storage) Merge(blocks []block.Block, schema typeof.Schema) ([]byte, []byte)

Merge merges multiple blocks together and outputs a key and merged orc data

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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