bz1

package
v0.10.1-0...-8e10099 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultChunkSize = 1000

Variables

View Source
var NoFieldsFiltered uint64

Functions

This section is empty.

Types

type Reader

type Reader struct {
	ChunkSize int
	// contains filtered or unexported fields
}

Reader is used to read all data from a bz1 shard.

func NewReader

func NewReader(path string) *Reader

NewReader returns a reader for the bz1 shard at path.

func (*Reader) Close

func (r *Reader) Close() error

Close closes the reader.

func (*Reader) Next

func (r *Reader) Next() bool

Next returns whether there is any more data to be read.

func (*Reader) Open

func (r *Reader) Open() error

Open opens the reader.

func (*Reader) Read

func (r *Reader) Read() (string, []tsm.Value, error)

Read returns the next chunk of data in the shard, converted to tsm1 values. Data is emitted completely for every field, in every series, before the next field is processed. Data from Read() adheres to the requirements for writing to tsm1 shards

Jump to

Keyboard shortcuts

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