diffprof

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColumnProfileDiff

type ColumnProfileDiff struct {
	Name        string        `json:"name"`
	NewAddition bool          `json:"newAddition,omitempty"`
	Removed     bool          `json:"removed,omitempty"`
	Stats       []interface{} `json:"stats"`
}

func (*ColumnProfileDiff) CollectStats

func (c *ColumnProfileDiff) CollectStats(newTblSum, oldTblSum *objects.TableProfile, newColSum, oldColSum *objects.ColumnProfile)

func (*ColumnProfileDiff) Unchanged added in v0.8.3

func (c *ColumnProfileDiff) Unchanged() bool

type Float64Stat

type Float64Stat struct {
	Name      string   `json:"name"`
	ShortName string   `json:"shortName"`
	Old       *float64 `json:"old"`
	New       *float64 `json:"new"`
}

func (*Float64Stat) Unchanged added in v0.8.3

func (s *Float64Stat) Unchanged() bool

type PercentileDiff

type PercentileDiff struct {
	Old float64 `json:"old"`
	New float64 `json:"new"`
}

func (*PercentileDiff) Unchanged added in v0.8.3

func (s *PercentileDiff) Unchanged() bool

type PercentilesStat

type PercentilesStat struct {
	Name        string            `json:"name"`
	ShortName   string            `json:"shortName"`
	NewAddition bool              `json:"newAddition,omitempty"`
	Removed     bool              `json:"removed,omitempty"`
	Values      []*PercentileDiff `json:"values"`
}

func (*PercentilesStat) Unchanged added in v0.8.3

func (s *PercentilesStat) Unchanged() bool

type TableProfileDiff

type TableProfileDiff struct {
	OldRowsCount uint32               `json:"oldRowsCount"`
	NewRowsCount uint32               `json:"newRowsCount"`
	Columns      []*ColumnProfileDiff `json:"columns"`
}

func DiffTableProfiles

func DiffTableProfiles(newProf, oldProf *objects.TableProfile) *TableProfileDiff

func (*TableProfileDiff) Unchanged added in v0.8.3

func (d *TableProfileDiff) Unchanged() bool

type TopValuesStat

type TopValuesStat struct {
	Name        string           `json:"name"`
	ShortName   string           `json:"shortName"`
	NewAddition bool             `json:"newAddition,omitempty"`
	Removed     bool             `json:"removed,omitempty"`
	Values      []ValueCountDiff `json:"values"`
}

func (*TopValuesStat) Unchanged added in v0.8.3

func (s *TopValuesStat) Unchanged() bool

type Uint16Stat

type Uint16Stat struct {
	Name      string `json:"name"`
	ShortName string `json:"shortName"`
	Old       uint16 `json:"old"`
	New       uint16 `json:"new"`
}

func (*Uint16Stat) Unchanged added in v0.8.3

func (s *Uint16Stat) Unchanged() bool

type Uint32Stat

type Uint32Stat struct {
	Name      string `json:"name"`
	ShortName string `json:"shortName"`
	Old       uint32 `json:"old"`
	New       uint32 `json:"new"`
}

func (*Uint32Stat) Unchanged added in v0.8.3

func (s *Uint32Stat) Unchanged() bool

type ValueCountDiff

type ValueCountDiff struct {
	Value    string `json:"value"`
	OldCount uint32 `json:"oldCount"`
	NewCount uint32 `json:"newCount"`
	OldPct   byte   `json:"oldPct"`
	NewPct   byte   `json:"newPct"`
}

func (*ValueCountDiff) Unchanged added in v0.8.3

func (s *ValueCountDiff) Unchanged() bool

Jump to

Keyboard shortcuts

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