groupLocally

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2017 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package groupLocally is the implementation of the group stage that runs locally.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStage

func NewStage(groupOptions *group.Options) *analysis.Stage

NewStage - GroupLocally stage factory.

Types

type Accumulator

type Accumulator struct {
	Count uint64

	ConvertObjectIdToDate bool

	StoreMinMaxValue bool
	MinValue         interface{}
	MaxValue         interface{}

	StoreAvgValue bool
	ValuesSum     float64

	StoreMinMaxAvgLength bool
	MinLength            uint
	MaxLength            uint
	LengthSum            uint64

	StoreValueDistribution       bool
	StoreLengthDistribution      bool
	StoreDateWeekdayDistribution bool
	StoreDateHourDistribution    bool
}

Accumulator represents aggregation in one group worker.

type GroupId

type GroupId struct {
	Name string
	Type string
}

GroupId - values are grouped by field name and type.

type GroupResults

type GroupResults map[GroupId]*Accumulator

GroupResults are partial results from one go routine.

Jump to

Keyboard shortcuts

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