Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrReadingDataRow is returned when an error occurs while reading a data row. ErrReadingDataRow = errors.New("error while reading datarow") // ErrOrphanRow is returned when a original row does not have a masked version, or the other way around. ErrOrphanRow = errors.New("error datarow is orphan") )
Functions ¶
This section is empty.
Types ¶
type DataRowReader ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func NewDriver ¶
func NewDriver(realReader DataRowReader, maskedReader DataRowReader, subs ...EventSubscriber) Driver
type EventSubscriber ¶
type Metrics ¶
type Metrics struct { TotalCount int64 // TotalCount is the number of values analyzed NilCount int64 // NilCount is the number of null values in real data EmptyCount int64 // EmptyCount is the number of empty values in real data (empty string or numbers at 0 value) MaskedCount int64 // MaskedCount is the number of non-blank real values masked Coherence Multimap // Coherence is a multimap used to compute the coherence rate Identifiant Multimap // Identifiant is a multimap used to compute the identifiable rate }
func NewMetrics ¶
func NewMetrics() Metrics
func (Metrics) BlankCount ¶
BlankCount is the number of blank (null or empty) values in real data.
func (Metrics) MaskedRate ¶
MaskedRate is equal to
Number of non-blank real values masked / (Number of values analyzed - Number of blank (null or empty) values in real data) ).
func (Metrics) NonBlankCount ¶
NonBlankCount is the number of non-blank (non-null and non-empty) values in real data.
func (Metrics) NonMaskedCount ¶
NonMaskedCount is the number of non-blank (non-null and non-empty) values in real data that were not masked.
type Multimap ¶
type Report ¶
func NewReport ¶
func NewReport(subs []EventSubscriber) Report
func (Report) ColumnMetric ¶
type Suscribers ¶
type Suscribers []EventSubscriber
func (Suscribers) PostFirstNonMaskedValue ¶
func (subs Suscribers) PostFirstNonMaskedValue(fieldname string, value any)
func (Suscribers) PostNewField ¶
func (subs Suscribers) PostNewField(fieldname string)
Click to show internal directories.
Click to hide internal directories.