shards

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(shard uint64) string

func Parse

func Parse(str string) uint64

Types

type DB

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

func New

func New(base string) (*DB, error)

func (*DB) Close

func (db *DB) Close() error

func (*DB) Get

func (db *DB) Get() *pebble.DB

func (*DB) Iter

func (db *DB) Iter(re encoding.Resolution,
	start, end time.Time,
	filters []models.Field,
	f func(cu *cursor.Cursor, shard uint64, from, to int64, match *ro2.Bitmap, exists map[models.Field]*ro2.Bitmap) error) error

func (*DB) Shard

func (db *DB) Shard(shard uint64) *Shard

type Shard

type Shard struct {
	ID uint64
	DB *pebble.DB
}

func NewShard

func NewShard(base string, shard uint64) *Shard

type Views

type Views [encoding.Month + 1]*ro2.Bitmap

func (*Views) Init

func (v *Views) Init()

func (*Views) Reset

func (v *Views) Reset()

Jump to

Keyboard shortcuts

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