@@ -0,0 +1,536 @@
+package simpledb;%0D%0A%0D%0Aimport java.util.Collection;%0D%0A%0D%0Apublic class ImputeFactory %7B%0D%0A%09public static Impute newImpute(String imputationMethod, Collection%3CString%3E arg1, DbIterator arg2)%7B%0D%0A%09%09if (imputationMethod.equals(%22REGRESSION_TREE%22))%7B%0D%0A%09%09%09return new ImputeRegressionTree(arg1, arg2);%0D%0A%09%09%7D else if (imputationMethod.equals(%22HOTDECK%22))%7B%0D%0A%09%09%09return new ImputeHotDeck(arg1, arg2);%0D%0A%09%09%7D else if (imputationMethod.equals(%22MEAN%22))%7B%0D%0A%09%09%09return new ImputeMean(arg1, arg2);%0D%0A%09%09%7D else %7B%0D%0A%09%09%09throw new UnsupportedOperationException();%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%7D%0D%0A

Add ImputeFactory