index_diff

package
v1.29.8 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type CompareChan

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

type CompareItem

type CompareItem struct {
	Doc  interface{} `json:"doc,omitempty"`
	Key  string      `json:"key,omitempty"`
	Hash string      `json:"hash,omitempty"`
}

func NewCompareItem

func NewCompareItem(key, hash string) CompareItem

func (*CompareItem) CompareHash

func (a *CompareItem) CompareHash(b *CompareItem) int

func (*CompareItem) CompareKey

func (a *CompareItem) CompareKey(b *CompareItem) int

type Config

type Config struct {
	PartitionSize      int  `config:"partition_size"`
	TextReportEnabled  bool `config:"text_report"`
	KeepSourceInResult bool `config:"keep_source"`
	BufferSize         int  `config:"buffer_size"`

	Queue            *OutputQueueConfig `config:"output_queue"`
	CleanOldFiles    bool               `config:"clean_old_files"`
	SourceInputQueue string             `config:"source_queue"`
	TargetInputQueue string             `config:"target_queue"`
	// DEPRECATED, use `output_queue` instead
	DiffQueue string `config:"diff_queue"`
}

func (*Config) GetLeftQueue

func (cfg *Config) GetLeftQueue(partitionID int) string

func (*Config) GetRightQueue

func (cfg *Config) GetRightQueue(partitionID int) string

func (*Config) GetSortedLeftQueue

func (cfg *Config) GetSortedLeftQueue(partitionID int) string

func (*Config) GetSortedRightQueue

func (cfg *Config) GetSortedRightQueue(partitionID int) string

type DiffResult

type DiffResult struct {
	DiffType string       `json:"type,omitempty"`
	Key      string       `json:"key,omitempty"`
	Source   *CompareItem `json:"source,omitempty"`
	Target   *CompareItem `json:"target,omitempty"`
}

type DiffStat

type DiffStat struct {
	Count int
	Keys  []string
}

type IndexDiffProcessor

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

func (*IndexDiffProcessor) Name

func (processor *IndexDiffProcessor) Name() string

func (*IndexDiffProcessor) Process

func (processor *IndexDiffProcessor) Process(ctx *pipeline.Context) error

type OutputQueueConfig

type OutputQueueConfig struct {
	Name   string                 `config:"name"`
	Labels map[string]interface{} `config:"labels"`
}

Jump to

Keyboard shortcuts

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