deduplicator

package
v1.23.0-verio.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2018 License: BSD-3-Clause Imports: 11 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignDatasetDataIdentityHashes added in v1.5.0

func AssignDatasetDataIdentityHashes(datasetData []data.Datum) ([]string, error)

func GenerateIdentityHash added in v1.5.0

func GenerateIdentityHash(identityFields []string) (string, error)

func IsVersionValid added in v1.8.0

func IsVersionValid(version string) bool

Types

type BaseDeduplicator added in v1.5.0

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

func NewBaseDeduplicator added in v1.5.0

func NewBaseDeduplicator(name string, version string, logger log.Logger, dataSession storeDEPRECATED.DataSession, dataset *upload.Upload) (*BaseDeduplicator, error)

func (*BaseDeduplicator) AddDatasetData added in v1.5.0

func (b *BaseDeduplicator) AddDatasetData(ctx context.Context, datasetData []data.Datum) error

func (*BaseDeduplicator) DeduplicateDataset added in v1.5.0

func (b *BaseDeduplicator) DeduplicateDataset(ctx context.Context) error

func (*BaseDeduplicator) DeleteDataset added in v1.5.0

func (b *BaseDeduplicator) DeleteDataset(ctx context.Context) error

func (*BaseDeduplicator) Name added in v1.5.0

func (b *BaseDeduplicator) Name() string

func (*BaseDeduplicator) RegisterDataset added in v1.5.0

func (b *BaseDeduplicator) RegisterDataset(ctx context.Context) error

func (*BaseDeduplicator) Version added in v1.8.0

func (b *BaseDeduplicator) Version() string

type BaseFactory added in v1.5.0

type BaseFactory struct {
	Factory
	// contains filtered or unexported fields
}

func NewBaseFactory added in v1.5.0

func NewBaseFactory(name string, version string) (*BaseFactory, error)

func (*BaseFactory) CanDeduplicateDataset added in v1.5.0

func (b *BaseFactory) CanDeduplicateDataset(dataset *upload.Upload) (bool, error)

func (*BaseFactory) IsRegisteredWithDataset added in v1.5.0

func (b *BaseFactory) IsRegisteredWithDataset(dataset *upload.Upload) (bool, error)

func (*BaseFactory) NewDeduplicatorForDataset added in v1.5.0

func (b *BaseFactory) NewDeduplicatorForDataset(logger log.Logger, dataSession storeDEPRECATED.DataSession, dataset *upload.Upload) (data.Deduplicator, error)

func (*BaseFactory) NewRegisteredDeduplicatorForDataset added in v1.5.0

func (b *BaseFactory) NewRegisteredDeduplicatorForDataset(logger log.Logger, dataSession storeDEPRECATED.DataSession, dataset *upload.Upload) (data.Deduplicator, error)

type DelegateFactory added in v1.4.0

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

func NewDelegateFactory added in v1.4.0

func NewDelegateFactory(factories []Factory) (*DelegateFactory, error)

func (*DelegateFactory) CanDeduplicateDataset added in v1.4.0

func (d *DelegateFactory) CanDeduplicateDataset(dataset *upload.Upload) (bool, error)

func (*DelegateFactory) IsRegisteredWithDataset added in v1.5.0

func (d *DelegateFactory) IsRegisteredWithDataset(dataset *upload.Upload) (bool, error)

func (*DelegateFactory) NewDeduplicatorForDataset added in v1.5.0

func (d *DelegateFactory) NewDeduplicatorForDataset(logger log.Logger, dataSession storeDEPRECATED.DataSession, dataset *upload.Upload) (data.Deduplicator, error)

func (*DelegateFactory) NewRegisteredDeduplicatorForDataset added in v1.5.0

func (d *DelegateFactory) NewRegisteredDeduplicatorForDataset(logger log.Logger, dataSession storeDEPRECATED.DataSession, dataset *upload.Upload) (data.Deduplicator, error)

type Factory

type Factory interface {
	CanDeduplicateDataset(dataset *upload.Upload) (bool, error)
	NewDeduplicatorForDataset(logger log.Logger, dataSession storeDEPRECATED.DataSession, dataset *upload.Upload) (data.Deduplicator, error)

	IsRegisteredWithDataset(dataset *upload.Upload) (bool, error)
	NewRegisteredDeduplicatorForDataset(logger log.Logger, dataSession storeDEPRECATED.DataSession, dataset *upload.Upload) (data.Deduplicator, error)
}

func NewContinuousFactory added in v1.20.0

func NewContinuousFactory() (Factory, error)

func NewHashDeactivateOldFactory added in v1.5.0

func NewHashDeactivateOldFactory() (Factory, error)

func NewTruncateFactory added in v1.4.0

func NewTruncateFactory() (Factory, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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