test

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datum

type Datum struct {
	ID                                   string
	InitInvocations                      int
	MetaInvocations                      int
	MetaOutputs                          []interface{}
	ParseInvocations                     int
	ParseInputs                          []data.ObjectParser
	ParseOutputs                         []error
	ValidateInvocations                  int
	ValidateInputs                       []data.Validator
	ValidateOutputs                      []error
	NormalizeInvocations                 int
	NormalizeInputs                      []data.Normalizer
	NormalizeOutputs                     []error
	IdentityFieldsInvocations            int
	IdentityFieldsOutputs                []IdentityFieldsOutput
	SetUserIDInvocations                 int
	SetUserIDInputs                      []string
	SetGroupIDInvocations                int
	SetGroupIDInputs                     []string
	SetDatasetIDInvocations              int
	SetDatasetIDInputs                   []string
	SetActiveInvocations                 int
	SetActiveInputs                      []bool
	SetCreatedTimeInvocations            int
	SetCreatedTimeInputs                 []string
	SetCreatedUserIDInvocations          int
	SetCreatedUserIDInputs               []string
	SetModifiedTimeInvocations           int
	SetModifiedTimeInputs                []string
	SetModifiedUserIDInvocations         int
	SetModifiedUserIDInputs              []string
	SetDeletedTimeInvocations            int
	SetDeletedTimeInputs                 []string
	SetDeletedUserIDInvocations          int
	SetDeletedUserIDInputs               []string
	DeduplicatorDescriptorInvocations    int
	DeduplicatorDescriptorOutputs        []*data.DeduplicatorDescriptor
	SetDeduplicatorDescriptorInvocations int
	SetDeduplicatorDescriptorInputs      []*data.DeduplicatorDescriptor
}

func NewDatum

func NewDatum() *Datum

func (*Datum) DeduplicatorDescriptor

func (d *Datum) DeduplicatorDescriptor() *data.DeduplicatorDescriptor

func (*Datum) IdentityFields

func (d *Datum) IdentityFields() ([]string, error)

func (*Datum) Init

func (d *Datum) Init()

func (*Datum) Meta

func (d *Datum) Meta() interface{}

func (*Datum) Normalize

func (d *Datum) Normalize(normalizer data.Normalizer) error

func (*Datum) Parse

func (d *Datum) Parse(parser data.ObjectParser) error

func (*Datum) SetActive

func (d *Datum) SetActive(active bool)

func (*Datum) SetCreatedTime

func (d *Datum) SetCreatedTime(createdTime string)

func (*Datum) SetCreatedUserID

func (d *Datum) SetCreatedUserID(createdUserID string)

func (*Datum) SetDatasetID

func (d *Datum) SetDatasetID(datasetID string)

func (*Datum) SetDeduplicatorDescriptor

func (d *Datum) SetDeduplicatorDescriptor(deduplicatorDescriptor *data.DeduplicatorDescriptor)

func (*Datum) SetDeletedTime

func (d *Datum) SetDeletedTime(deletedTime string)

func (*Datum) SetDeletedUserID

func (d *Datum) SetDeletedUserID(deletedUserID string)

func (*Datum) SetGroupID

func (d *Datum) SetGroupID(groupID string)

func (*Datum) SetModifiedTime

func (d *Datum) SetModifiedTime(modifiedTime string)

func (*Datum) SetModifiedUserID

func (d *Datum) SetModifiedUserID(modifiedUserID string)

func (*Datum) SetUserID

func (d *Datum) SetUserID(userID string)

func (*Datum) UnusedOutputsCount

func (d *Datum) UnusedOutputsCount() int

func (*Datum) Validate

func (d *Datum) Validate(validator data.Validator) error

type Deduplicator

type Deduplicator struct {
	ID                           string
	InitializeDatasetInvocations int
	InitializeDatasetOutputs     []error
	AddDataToDatasetInvocations  int
	AddDataToDatasetInputs       [][]data.Datum
	AddDataToDatasetOutputs      []error
	FinalizeDatasetInvocations   int
	FinalizeDatasetOutputs       []error
}

func NewDeduplicator

func NewDeduplicator() *Deduplicator

func (*Deduplicator) AddDataToDataset

func (d *Deduplicator) AddDataToDataset(datasetData []data.Datum) error

func (*Deduplicator) FinalizeDataset

func (d *Deduplicator) FinalizeDataset() error

func (*Deduplicator) InitializeDataset

func (d *Deduplicator) InitializeDataset() error

func (*Deduplicator) UnusedOutputsCount

func (d *Deduplicator) UnusedOutputsCount() int

type IdentityFieldsOutput

type IdentityFieldsOutput struct {
	IdentityFields []string
	Error          error
}

Jump to

Keyboard shortcuts

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