Documentation ¶
Index ¶
- Constants
- Variables
- type ChangedRange
- type Quasar
- func (q *Quasar) DeleteRange(id uuid.UUID, start int64, end int64) error
- func (q *Quasar) Flush(id uuid.UUID) error
- func (q *Quasar) InsertValues(id uuid.UUID, r []qtree.Record)
- func (q *Quasar) IsPending() bool
- func (q *Quasar) QueryChangedRanges(id uuid.UUID, startgen uint64, endgen uint64, resolution uint8) ([]ChangedRange, uint64, error)
- func (q *Quasar) QueryGeneration(id uuid.UUID) (uint64, error)
- func (q *Quasar) QueryNearestValue(id uuid.UUID, time int64, backwards bool, gen uint64) (qtree.Record, uint64, error)
- func (q *Quasar) QueryStatisticalValues(id uuid.UUID, start int64, end int64, gen uint64, pointwidth uint8) ([]qtree.StatRecord, uint64, error)
- func (q *Quasar) QueryStatisticalValuesStream(id uuid.UUID, start int64, end int64, gen uint64, pointwidth uint8) (chan qtree.StatRecord, chan error, uint64)
- func (q *Quasar) QueryValues(id uuid.UUID, start int64, end int64, gen uint64) ([]qtree.Record, uint64, error)
- func (q *Quasar) QueryValuesStream(id uuid.UUID, start int64, end int64, gen uint64) (chan qtree.Record, chan error, uint64)
- func (q *Quasar) QueryWindow(id uuid.UUID, start int64, end int64, gen uint64, width uint64, depth uint8) (chan qtree.StatRecord, uint64)
- type QuasarConfig
Constants ¶
View Source
const LatestGeneration = bstore.LatestGeneration
View Source
const MaximumTime = (48 << 56)
View Source
const MinimumTime = -(16 << 56)
View Source
const VersionMajor = 3
View Source
const VersionMinor = 4
Variables ¶
View Source
var BuildDate string
View Source
var VersionString string
Will be set at build time to Major.Minor.Build
Functions ¶
This section is empty.
Types ¶
type ChangedRange ¶
type Quasar ¶
type Quasar struct {
// contains filtered or unexported fields
}
func NewQuasar ¶
func NewQuasar(cfg *QuasarConfig) (*Quasar, error)
func (*Quasar) DeleteRange ¶
func (*Quasar) IsPending ¶
Return true if there are uncommited results to be written to disk Should only be used during shutdown as it hogs the glock
func (*Quasar) QueryChangedRanges ¶
func (q *Quasar) QueryChangedRanges(id uuid.UUID, startgen uint64, endgen uint64, resolution uint8) ([]ChangedRange, uint64, error)
Resolution is how far down the tree to go when working out which blocks have changed. Higher resolutions are faster but will give you back coarser results.
func (*Quasar) QueryNearestValue ¶
func (*Quasar) QueryStatisticalValues ¶
func (*Quasar) QueryStatisticalValuesStream ¶
func (*Quasar) QueryValues ¶
func (q *Quasar) QueryValues(id uuid.UUID, start int64, end int64, gen uint64) ([]qtree.Record, uint64, error)
These functions are the API. TODO add all the bounds checking on PW, and sanity on start/end
func (*Quasar) QueryValuesStream ¶
type QuasarConfig ¶
type QuasarConfig struct { //Measured in the number of datablocks //So 1000 is 8 MB cache DatablockCacheSize uint64 //This enables the grouping of value inserts //with a commit every Interval millis //If the number of stored values exceeds //EarlyTrip TransactionCoalesceEnable bool TransactionCoalesceInterval uint64 TransactionCoalesceEarlyTrip uint64 Params map[string]string }
Click to show internal directories.
Click to hide internal directories.