Skip to main content

Interface IDataTypeChecker

Defines a contract for checking the data type of a value. Implementations of IDataTypeChecker are used in [Workspace.XBR.Xperiflow.Etl.Tabular.Utilities.ColumnInference](../Xperiflow.Etl.Tabular.Utilities/ColumnInference.md)

Namespace: Workspace.XBR.Xperiflow.Etl.Tabular.Utilities

Assembly: Xperiflow.dll

Declaration
public interface IDataTypeChecker

Properties

DataTypeName

The DataTypeChecker's data type name

Declaration
Type DataTypeName { get; }

MatchCount

The number of times the data type checker has matched a value

Declaration
int MatchCount { get; set; }

Methods

TryParse(string)

Implements a specific TryParse method for the data type checker

Declaration
bool TryParse(string value)
Returns

System.Boolean

true if the value is of the data type, false otherwise

Parameters
TypeNameDescription
System.StringvalueThe value to check

GetConfidenceLevel(int)

The confidence level of the data type checker, calculated as the MatchCount divided by the total number of samples

Declaration
float GetConfidenceLevel(int totalSamples)
Returns

System.Single

Parameters
TypeNameDescription
System.Int32totalSamplesThe total number of samples

Was this page helpful?