grouper

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2018 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

View Source
const Id = "_Id"

Variables

This section is empty.

Functions

func ExtractId

func ExtractId(inp map[string]interface{}) int

Types

type Grouper

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

func NewAggregate

func NewAggregate(
	constructor builder,
	by []string,
	key string,
	sortCol string) Grouper

func (Grouper) Flush

func (g Grouper) Flush()

func (Grouper) Process

func (g Grouper) Process(inp map[string]interface{})

type Merger

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

func NewMerger

func NewMerger(sortCol string) Merger

func (Merger) Flush

func (m Merger) Flush()

func (Merger) Process

func (m Merger) Process(inp map[string]interface{})

func (Merger) Write

func (m Merger) Write(inp map[string]interface{})

Jump to

Keyboard shortcuts

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