processing

package
v0.0.0-...-e20b040 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByLeft

type ByLeft []CompareResult

ByLeftRight implements sort.Interface for []CompareResult based on the SourceId and TargetId fields.

func (ByLeft) Len

func (a ByLeft) Len() int

func (ByLeft) Less

func (a ByLeft) Less(i, j int) bool

func (ByLeft) Swap

func (a ByLeft) Swap(i, j int)

type ByLeftRight

type ByLeftRight []CompareResult

ByLeftRight implements sort.Interface for []CompareResult based on the SourceId and TargetId fields.

func (ByLeftRight) Len

func (a ByLeftRight) Len() int

func (ByLeftRight) Less

func (a ByLeftRight) Less(i, j int) bool

func (ByLeftRight) Swap

func (a ByLeftRight) Swap(i, j int)

type ByRawItemId

type ByRawItemId interface {
	Len() int
	Swap(i, j int)
	Less(i, j int) bool
}

type ByRight

type ByRight []CompareResult

ByLeftRight implements sort.Interface for []CompareResult based on the SourceId and TargetId fields.

func (ByRight) Len

func (a ByRight) Len() int

func (ByRight) Less

func (a ByRight) Less(i, j int) bool

func (ByRight) Swap

func (a ByRight) Swap(i, j int)

type ByRightLeft

type ByRightLeft []CompareResult

ByLeftRight implements sort.Interface for []CompareResult based on the SourceId and TargetId fields.

func (ByRightLeft) Len

func (a ByRightLeft) Len() int

func (ByRightLeft) Less

func (a ByRightLeft) Less(i, j int) bool

func (ByRightLeft) Swap

func (a ByRightLeft) Swap(i, j int)

type ByTopMatch

type ByTopMatch []CompareResult

ByTopMatch implements sort.Interface for []CompareResult based on the SourceId asc and Weight desc fields.

func (ByTopMatch) Len

func (a ByTopMatch) Len() int

func (ByTopMatch) Less

func (a ByTopMatch) Less(i, j int) bool

func (ByTopMatch) Swap

func (a ByTopMatch) Swap(i, j int)

type CompareResult

type CompareResult struct {
	LeftId  int
	RightId int
	Weight  int
}

type CompareResultList

type CompareResultList struct {
	RuleType        rules.RuleType
	CompareResults  []CompareResult
	PostProcessList []PostProcess
}

func NewCompareResultList

func NewCompareResultList(ruleType rules.RuleType) *CompareResultList

func (*CompareResultList) AddPostProcess

func (i *CompareResultList) AddPostProcess(ruleType rules.RuleType, rule rules.Rule, leftList []int, rightList []int, indexValue string)

func (*CompareResultList) AddResult

func (i *CompareResultList) AddResult(entityIdSource int, entityIdTarget int, WeightValue int)

func (*CompareResultList) MergeRemainingWeightType

func (i *CompareResultList) MergeRemainingWeightType(remainingResults *CompareResultList)

func (*CompareResultList) ProcessMatches

func (i *CompareResultList) ProcessMatches(splitMatch bool, maxMatchValue int) []CompareResult

type MatchProcessing

type MatchProcessing struct {
	Source MatchProcessingEnv
	Target MatchProcessingEnv
	// contains filtered or unexported fields
}

func GenEntityProcessing

func GenEntityProcessing(entityPerTypeSource project.ConfigsPerType, entityPerTypeTarget project.ConfigsPerType, entitiesType string, isHierarchy bool) (*MatchProcessing, error)

func NewMatchProcessing

func NewMatchProcessing(rawMatchListSource RawMatchList, SourceType config.Type, rawMatchListTarget RawMatchList, TargetType config.Type) *MatchProcessing

func (*MatchProcessing) AdjustremainingMatch

func (e *MatchProcessing) AdjustremainingMatch(uniqueMatch *[]CompareResult)

func (*MatchProcessing) GetConfigType

func (e *MatchProcessing) GetConfigType() config.Type

func (*MatchProcessing) GetType

func (e *MatchProcessing) GetType() string

func (*MatchProcessing) PrepareRemainingMatch

func (e *MatchProcessing) PrepareRemainingMatch(keepSeeded bool, keepUnseeded bool, resultListPtr *CompareResultList)

type MatchProcessingEnv

type MatchProcessingEnv struct {
	RawMatchList          RawMatchList
	ConfigType            config.Type
	CurrentRemainingMatch *[]int
	RemainingMatch        []int
}

type PostProcess

type PostProcess struct {
	RuleType   rules.RuleType
	Rule       rules.Rule
	IndexValue string
	LeftMap    map[int]bool
	RightMap   map[int]bool
}

type RawMatchList

type RawMatchList interface {
	GetValues() *[]entitiesValues.Value
	GetValuesConfig() *[]interface{}
	Sort()
	Len() int
}

Jump to

Keyboard shortcuts

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