planner

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxEpoch = time.Unix(1<<63-62135596801, 999999999).Unix()
View Source
var MinEpoch = int64(0)

Functions

func ElementsEqual

func ElementsEqual(left, right []EnumElementType) (isEqual bool)

func NamesMatch

func NamesMatch(src, candidates []string) (match bool)

func NewQuery

func NewQuery(d *Directory) *query

func Query

func Query()

Method for composing simple queries

Types

type DateRange

type DateRange struct {
	Start, End         int64
	StartYear, EndYear int16
}

func NewDateRange

func NewDateRange() *DateRange

type ParseResult

type ParseResult struct {
	QualifiedFiles  []QualifiedFile
	Limit           *RowLimit
	Range           *DateRange
	IntervalsPerDay int64
	RootDir         string
	TimeQuals       []TimeQualFunc
}

func NewParseResult

func NewParseResult() *ParseResult

func (*ParseResult) GetCandleAttributes

func (pr *ParseResult) GetCandleAttributes() (cat map[TimeBucketKey]*CandleAttributes)

func (*ParseResult) GetDataShapes

func (pr *ParseResult) GetDataShapes() (dsv map[TimeBucketKey][]DataShape)

func (*ParseResult) GetRowLen

func (pr *ParseResult) GetRowLen() (rlenMap map[TimeBucketKey]int)

func (*ParseResult) GetRowType

func (pr *ParseResult) GetRowType() (rt map[TimeBucketKey]EnumRecordType)

type QualifiedFile

type QualifiedFile struct {
	Key  TimeBucketKey
	File *TimeBucketInfo
}

type RestrictionList

type RestrictionList map[string][]string //Key is category, items list is target

func NewRestrictionList

func NewRestrictionList() RestrictionList

func (RestrictionList) AddRestriction

func (r RestrictionList) AddRestriction(category string, item string)

func (RestrictionList) GetRestrictionMap

func (r RestrictionList) GetRestrictionMap() RestrictionList

type RowLimit

type RowLimit struct {
	Number int32
	// -1 backward, 1 forward
	Direction DirectionEnum
}

func NewRowLimit

func NewRowLimit() *RowLimit

type TimeQualFunc

type TimeQualFunc func(epoch int64) bool

Jump to

Keyboard shortcuts

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