timeseries

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Membership

type Membership interface {
	Members() []string
}

Membership represents a contract required for recovering cluster information.

type Table

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

Table represents a timeseries table.

func New

func New(name string, cluster Membership, monitor monitor.Monitor, store storage.Storage, cfg *config.Table, stream storage.Streamer) *Table

New creates a new table implementation.

func (*Table) Append

func (t *Table) Append(block block.Block) error

Append appends a block to the store.

func (*Table) Close

func (t *Table) Close() error

Close implements io.Closer interface.

func (*Table) GetRows

func (t *Table) GetRows(splitID []byte, requestedColumns []string, maxBytes int64) (result *table.PageResult, err error)

GetRows retrieves the data

func (*Table) GetSplits

func (t *Table) GetSplits(desiredColumns []string, outputConstraint *presto.PrestoThriftTupleDomain, maxSplitCount int) ([]table.Split, error)

GetSplits retrieves the splits

func (*Table) HashBy added in v1.2.5

func (t *Table) HashBy() string

HashBy returns the column by which the table should be hashed.

func (*Table) Name

func (t *Table) Name() string

Name returns the name of the table.

func (*Table) Schema

func (t *Table) Schema() (typeof.Schema, bool)

Schema retrieves the metadata for the table

func (*Table) SortBy added in v1.2.5

func (t *Table) SortBy() string

SortBy returns the column by which the table should be sorted.

func (*Table) Stream added in v1.2.5

func (t *Table) Stream(row block.Row) error

Stream will stream the row and return errors if any

Jump to

Keyboard shortcuts

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