Documentation ¶
Index ¶
- func AssignDatasetDataIdentityHashes(datasetData []data.Datum) ([]string, error)
- func GenerateIdentityHash(identityFields []string) (string, error)
- func IsVersionValid(version string) bool
- type BaseDeduplicator
- func (b *BaseDeduplicator) AddDatasetData(datasetData []data.Datum) error
- func (b *BaseDeduplicator) DeduplicateDataset() error
- func (b *BaseDeduplicator) DeleteDataset() error
- func (b *BaseDeduplicator) Name() string
- func (b *BaseDeduplicator) RegisterDataset() error
- func (b *BaseDeduplicator) Version() string
- type BaseFactory
- func (b *BaseFactory) CanDeduplicateDataset(dataset *upload.Upload) (bool, error)
- func (b *BaseFactory) IsRegisteredWithDataset(dataset *upload.Upload) (bool, error)
- func (b *BaseFactory) NewDeduplicatorForDataset(logger log.Logger, dataStoreSession store.Session, dataset *upload.Upload) (data.Deduplicator, error)
- func (b *BaseFactory) NewRegisteredDeduplicatorForDataset(logger log.Logger, dataStoreSession store.Session, dataset *upload.Upload) (data.Deduplicator, error)
- type DelegateFactory
- func (d *DelegateFactory) CanDeduplicateDataset(dataset *upload.Upload) (bool, error)
- func (d *DelegateFactory) IsRegisteredWithDataset(dataset *upload.Upload) (bool, error)
- func (d *DelegateFactory) NewDeduplicatorForDataset(logger log.Logger, dataStoreSession store.Session, dataset *upload.Upload) (data.Deduplicator, error)
- func (d *DelegateFactory) NewRegisteredDeduplicatorForDataset(logger log.Logger, dataStoreSession store.Session, dataset *upload.Upload) (data.Deduplicator, error)
- type Factory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignDatasetDataIdentityHashes ¶ added in v1.5.0
func GenerateIdentityHash ¶ added in v1.5.0
func IsVersionValid ¶ added in v1.8.0
Types ¶
type BaseDeduplicator ¶ added in v1.5.0
type BaseDeduplicator struct {
// contains filtered or unexported fields
}
func NewBaseDeduplicator ¶ added in v1.5.0
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
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, 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 NewHashDeactivateOldFactory ¶ added in v1.5.0
func NewTruncateFactory ¶ added in v1.4.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.