processor

package
v0.0.0-...-f36bde2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MIN_VALUE int64 = -int64(^uint(0)>>1) - 1
View Source
const WILDCARD string = "@"

Variables

This section is empty.

Functions

func ChainProcessors

func ChainProcessors(processors []ProcessorInterface) chan interface{}

Types

type AvgExtraValues

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

type DBProcessorInterface

type DBProcessorInterface interface {
	ProcessorInterface
}

type DataSchema

type DataSchema struct {
	Group []string    `json:"group"`
	Stat  []*StatData `json:"stat"`
}

type FilterProcessor

type FilterProcessor struct {
	Processor
	// contains filtered or unexported fields
}

func NewFilterProcessor

func NewFilterProcessor(w query.WhereQuery) *FilterProcessor

type JsonParseProcessor

type JsonParseProcessor struct {
	Processor
	// contains filtered or unexported fields
}

func NewJsonParseProcessor

func NewJsonParseProcessor(q *query.Query) *JsonParseProcessor

type Processor

type Processor struct {
}

type ProcessorInterface

type ProcessorInterface interface {
	// contains filtered or unexported methods
}

type RethinkDBProcessor

type RethinkDBProcessor struct {
	Processor
	// contains filtered or unexported fields
}

func NewRethinkDBProcessor

func NewRethinkDBProcessor(pipelineId string, query *query.Query) *RethinkDBProcessor

type RethinkDataSchema

type RethinkDataSchema struct {
	UserId    string        `json:"_userId"`
	Interval  time.Duration `json:"interval"`
	StartTime string        `json:"starttime"`
	EndTime   string        `json:"endtime"`
	GroupBy   []string      `json:"groupBy"`
	Data      []DataSchema  `json:"Data"`
}

type StatData

type StatData struct {
	Column    string `json:"column"`
	Operation string `json:"operation"`
	Value     int64  `json:"value"`
	// contains filtered or unexported fields
}

func NewStatisticData

func NewStatisticData(column string) *StatData

type StatTrieData

type StatTrieData struct {
	DataMap map[string]*StatData
}

func NewStatisticTrieData

func NewStatisticTrieData() *StatTrieData

type StatisticProcessor

type StatisticProcessor struct {
	Processor

	SelectQueryList  []query.SelectQueryItem
	GroupByQueryList []query.GroupByQueryItem

	HasGroupBy bool

	Interval time.Duration
	// contains filtered or unexported fields
}

func NewStatisticProcessor

func NewStatisticProcessor(interval time.Duration, s []query.SelectQueryItem, g []query.GroupByQueryItem) *StatisticProcessor

Jump to

Keyboard shortcuts

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