use of com.facebook.presto.verifier.checksum.FloatingPointColumnValidator in project presto by prestodb.
the class VerifierTestUtil method createChecksumValidator.
public static ChecksumValidator createChecksumValidator(VerifierConfig verifierConfig) {
Map<Column.Category, Provider<ColumnValidator>> lazyValidators = new HashMap<>();
Map<Column.Category, Provider<ColumnValidator>> validators = ImmutableMap.of(Column.Category.SIMPLE, SimpleColumnValidator::new, Column.Category.FLOATING_POINT, () -> new FloatingPointColumnValidator(verifierConfig), Column.Category.ARRAY, ArrayColumnValidator::new, Column.Category.ROW, () -> new RowColumnValidator(lazyValidators), Column.Category.MAP, MapColumnValidator::new);
lazyValidators.putAll(validators);
return new ChecksumValidator(validators);
}
Aggregations