deduplicator

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2017 License: BSD-3-Clause Imports: 9 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)

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, logger log.Logger, dataStoreSession store.Session, dataset *upload.Upload) (*BaseDeduplicator, error)

func (*BaseDeduplicator) AddDatasetData added in v1.5.0

func (b *BaseDeduplicator) AddDatasetData(datasetData []data.Datum) error

func (*BaseDeduplicator) DeduplicateDataset added in v1.5.0

func (b *BaseDeduplicator) DeduplicateDataset() error

func (*BaseDeduplicator) DeleteDataset added in v1.5.0

func (b *BaseDeduplicator) DeleteDataset() 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() error

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) (*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, dataStoreSession store.Session, dataset *upload.Upload) (data.Deduplicator, error)

func (*BaseFactory) NewRegisteredDeduplicatorForDataset added in v1.5.0

func (b *BaseFactory) NewRegisteredDeduplicatorForDataset(logger log.Logger, dataStoreSession store.Session, 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, dataStoreSession store.Session, dataset *upload.Upload) (data.Deduplicator, error)

func (*DelegateFactory) NewRegisteredDeduplicatorForDataset added in v1.5.0

func (d *DelegateFactory) NewRegisteredDeduplicatorForDataset(logger log.Logger, dataStoreSession store.Session, dataset *upload.Upload) (data.Deduplicator, error)

type Factory

type Factory interface {
	CanDeduplicateDataset(dataset *upload.Upload) (bool, error)
	NewDeduplicatorForDataset(logger log.Logger, dataStoreSession store.Session, dataset *upload.Upload) (data.Deduplicator, error)

	IsRegisteredWithDataset(dataset *upload.Upload) (bool, error)
	NewRegisteredDeduplicatorForDataset(logger log.Logger, dataStoreSession store.Session, dataset *upload.Upload) (data.Deduplicator, error)
}

func NewAfterDeactivateOldFactory added in v1.5.0

func NewAfterDeactivateOldFactory() (Factory, error)

func NewHashDeactivateOldFactory added in v1.5.0

func NewHashDeactivateOldFactory() (Factory, error)

func NewHashDropNewFactory added in v1.5.0

func NewHashDropNewFactory() (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