count

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2018 License: Apache-2.0 Imports: 5 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Count

type Count struct {
	uda.AggInterface

	// Input arguments mapping
	ArgMap *functions.ArgumentMap

	Sum int64
}

func NewCount

func NewCount(inputColumns, optionalInputColumns []io.DataShape) (ca *Count)

CONCRETE - these may be suitable methods for general usage

func (*Count) Accum

func (ca *Count) Accum(cols io.ColumnInterface) error

Accum() sends new data to the aggregate

func (*Count) GetInitArgs

func (ca *Count) GetInitArgs() []io.DataShape

func (*Count) GetOptionalArgs

func (ca *Count) GetOptionalArgs() []io.DataShape

func (*Count) GetRequiredArgs

func (ca *Count) GetRequiredArgs() []io.DataShape

func (*Count) Init

func (ca *Count) Init(itf ...interface{}) error

func (Count) New

func (c Count) New() (out uda.AggInterface, am *functions.ArgumentMap)

Creates a new count using the arguments of the specific implementation for inputColumns and optionalInputColumns

func (*Count) Output

func (ca *Count) Output() *io.ColumnSeries

Output() returns the currently valid output of this aggregate

func (*Count) Reset

func (ca *Count) Reset()

Reset() puts the aggregate state back to "new"

Jump to

Keyboard shortcuts

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