Skip to content

Instantly share code, notes, and snippets.

@samueleresca
Last active August 23, 2020 16:41
Show Gist options
  • Save samueleresca/921ce516e39ebae2a6a0f6a469b907cf to your computer and use it in GitHub Desktop.
Save samueleresca/921ce516e39ebae2a6a0f6a469b907cf to your computer and use it in GitHub Desktop.
namespace deequ.Analyzers
{
interface IAnalyzer<out M>
{
M Calculate(DataFrame data, Option<IStateLoader> aggregateWith = default, Option<IStatePersister> saveStateWith = default);
IEnumerable<Action<StructType>> Preconditions();
M ToFailureMetric(Exception e);
void AggregateStateTo(IStateLoader sourceA, IStateLoader sourceB, IStatePersister target);
M LoadStateAndComputeMetric(IStateLoader source);
void CopyStateTo(IStateLoader source, IStatePersister target);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment