Documentation ¶
Index ¶
- type ByLeft
- type ByLeftRight
- type ByRawItemId
- type ByRight
- type ByRightLeft
- type ByTopMatch
- type CompareResult
- type CompareResultList
- func (i *CompareResultList) AddPostProcess(ruleType rules.RuleType, rule rules.Rule, leftList []int, rightList []int, ...)
- func (i *CompareResultList) AddResult(entityIdSource int, entityIdTarget int, WeightValue int)
- func (i *CompareResultList) MergeRemainingWeightType(remainingResults *CompareResultList)
- func (i *CompareResultList) ProcessMatches(splitMatch bool, maxMatchValue int) []CompareResult
- type MatchProcessing
- type MatchProcessingEnv
- type PostProcess
- type RawMatchList
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.
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 ByRight ¶
type ByRight []CompareResult
ByLeftRight implements sort.Interface for []CompareResult based on the SourceId and TargetId fields.
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 CompareResultList ¶
type CompareResultList struct { RuleType rules.RuleType CompareResults []CompareResult PostProcessList []PostProcess }
func NewCompareResultList ¶
func NewCompareResultList(ruleType rules.RuleType) *CompareResultList
func (*CompareResultList) AddPostProcess ¶
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 RawMatchList ¶
type RawMatchList interface { GetValues() *[]entitiesValues.Value GetValuesConfig() *[]interface{} Sort() Len() int }
Click to show internal directories.
Click to hide internal directories.