}
System.out.println("Processing field " + fieldName + " (containing " + documents.size() + " stored fields for " + numSamples + " documents)");
ArrayList<CompressionModel.ModelOptimizationResult> results = new ArrayList<CompressionModel.ModelOptimizationResult>();
CompressionModel model = buildModel(documents, results);
for (CompressionModel.ModelOptimizationResult result : results) {
CompressionModel.ModelOptimizationResult aggregateResult = null;
for (int i = 0, count = aggregateResults.size(); i < count; i++) {
if (aggregateResults.get(i).model.getClass() == result.model.getClass()) {
aggregateResult = aggregateResults.get(i);