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
Type | Name | Description |
---|---|---|
System.String | value | The 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
Type | Name | Description |
---|---|---|
System.Int32 | totalSamples | The total number of samples |