entities

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMatches

func AddMatches(configBasedMatches map[string]string)

func MatchEntities

func MatchEntities(fs afero.Fs, matchParameters match.MatchParameters, entityPerTypeSource project.ConfigsPerType, entityPerTypeTarget project.ConfigsPerType) (map[string]string, int, int, error)

func MatchEntitiesHierarchy

func MatchEntitiesHierarchy(fs afero.Fs, matchParameters match.MatchParameters, entityPerTypeSource project.ConfigsPerType, entityPerTypeTarget project.ConfigsPerType, stats map[string]string) (map[string]string, error)

Types

type ChildIdxParentId

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

type ChildIdxToParentIdx

type ChildIdxToParentIdx []int

type ExtractionInfo

type ExtractionInfo struct {
	From string `json:"from"`
	To   string `json:"to"`
}

type HierarchyRuleMapGenerator

type HierarchyRuleMapGenerator struct {
	SelfMatch bool
	// contains filtered or unexported fields
}

func NewHierarchyRuleMapGenerator

func NewHierarchyRuleMapGenerator(selfMatch bool, ruleList rules.HierarchyRuleTypeList) *HierarchyRuleMapGenerator

func (*HierarchyRuleMapGenerator) RunHierarchyRuleAll

func (i *HierarchyRuleMapGenerator) RunHierarchyRuleAll(entityProcessingPtrChild *processing.MatchProcessing, entityProcessingPtrParent *processing.MatchProcessing,
	entityMatchesChild MatchOutputType, entityMatchesParent MatchOutputType,
	childIdxToParentIdxSource *ChildIdxToParentIdx, childIdxToParentIdxTarget *ChildIdxToParentIdx,
	sourceHierarchy rules.HierarchySource) (*processing.CompareResultList, *map[int]int, *map[int]int)

type MatchKey

type MatchKey struct {
	Source ExtractionInfo `json:"source"`
	Target ExtractionInfo `json:"target"`
}

type MatchOutputPerType

type MatchOutputPerType map[string]MatchOutputType

func LoadMatches

func LoadMatches(fs afero.Fs, matchParameters match.MatchParameters) (MatchOutputPerType, error)

type MatchOutputType

type MatchOutputType struct {
	Type              string                        `json:"type"`
	MatchKey          MatchKey                      `json:"matchKey"`
	Matches           map[string]string             `json:"matches"`
	MultiMatched      map[string][]string           `json:"multiMatched"`
	UnMatched         []string                      `json:"unmatched"`
	PostProcessSource map[string]*PostProcessOutput `json:"postProcessSource"`
	PostProcessTarget map[string]*PostProcessOutput `json:"postProcessTarget"`
}

type PostProcessOutput

type PostProcessOutput struct {
	IndexValues []string `json:"indexValues"`
	TotalWeight int      `json:"totalWeight"`
	IDs         []string
}

type UnindexedMatches

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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