SOLR-10796: comment out debug printing

This commit is contained in:
Steve Rowe 2017-07-12 11:59:15 -04:00
parent 6188c8ce38
commit 00b5930cc9
1 changed files with 7 additions and 7 deletions

View File

@ -269,7 +269,7 @@ public class TestPointFields extends SolrTestCaseJ4 {
int numValues = 10 * RANDOM_MULTIPLIER; int numValues = 10 * RANDOM_MULTIPLIER;
// don't produce numbers with exponents, since XPath comparison operators can't handle them // don't produce numbers with exponents, since XPath comparison operators can't handle them
List<Integer> values = getRandomInts(numValues, false, 9999999); List<Integer> values = getRandomInts(numValues, false, 9999999);
System.err.println(Arrays.toString(values.toArray(new Integer[values.size()]))); // System.err.println(Arrays.toString(values.toArray(new Integer[values.size()])));
List<Integer> sortedValues = values.stream().sorted().collect(Collectors.toList()); List<Integer> sortedValues = values.stream().sorted().collect(Collectors.toList());
double min = (double)sortedValues.get(0); double min = (double)sortedValues.get(0);
double max = (double)sortedValues.get(sortedValues.size() - 1); double max = (double)sortedValues.get(sortedValues.size() - 1);
@ -680,7 +680,7 @@ public class TestPointFields extends SolrTestCaseJ4 {
// don't produce numbers with exponents, since XPath comparison operators can't handle them: 7 digits of precision // don't produce numbers with exponents, since XPath comparison operators can't handle them: 7 digits of precision
List<Float> values = getRandomInts(numValues, false, 9999999).stream() List<Float> values = getRandomInts(numValues, false, 9999999).stream()
.map(v -> (float)((double)v * Math.pow(10D, -1 * random().nextInt(8)))).collect(Collectors.toList()); .map(v -> (float)((double)v * Math.pow(10D, -1 * random().nextInt(8)))).collect(Collectors.toList());
System.err.println(Arrays.toString(values.toArray(new Float[values.size()]))); // System.err.println(Arrays.toString(values.toArray(new Float[values.size()])));
List<Float> sortedValues = values.stream().sorted().collect(Collectors.toList()); List<Float> sortedValues = values.stream().sorted().collect(Collectors.toList());
double min = (double)sortedValues.get(0); double min = (double)sortedValues.get(0);
double max = (double)sortedValues.get(sortedValues.size() - 1); double max = (double)sortedValues.get(sortedValues.size() - 1);
@ -980,7 +980,7 @@ public class TestPointFields extends SolrTestCaseJ4 {
// don't produce numbers with exponents, since XPath comparison operators can't handle them: 7 digits of precision // don't produce numbers with exponents, since XPath comparison operators can't handle them: 7 digits of precision
List<Float> values = getRandomInts(numValues, false, 9999999).stream() List<Float> values = getRandomInts(numValues, false, 9999999).stream()
.map(v -> (float)((double)v * Math.pow(10D, -1 * random().nextInt(8)))).collect(Collectors.toList()); .map(v -> (float)((double)v * Math.pow(10D, -1 * random().nextInt(8)))).collect(Collectors.toList());
System.err.println(Arrays.toString(values.toArray(new Float[values.size()]))); // System.err.println(Arrays.toString(values.toArray(new Float[values.size()])));
List<Float> sortedValues = values.stream().sorted().collect(Collectors.toList()); List<Float> sortedValues = values.stream().sorted().collect(Collectors.toList());
double min = (double)sortedValues.get(0); double min = (double)sortedValues.get(0);
double max = (double)sortedValues.get(sortedValues.size() - 1); double max = (double)sortedValues.get(sortedValues.size() - 1);
@ -1193,14 +1193,14 @@ public class TestPointFields extends SolrTestCaseJ4 {
int[] bucketCount = new int[numBuckets]; int[] bucketCount = new int[numBuckets];
int bucketNum = 0; int bucketNum = 0;
long minBucketVal = min; long minBucketVal = min;
System.err.println("min:" + min + " max: " + max + " gap: " + gap); // System.err.println("min:" + min + " max: " + max + " gap: " + gap);
System.err.println("bucketNum: " + bucketNum + " minBucketVal: " + minBucketVal); // System.err.println("bucketNum: " + bucketNum + " minBucketVal: " + minBucketVal);
for (Long value : sortedValues) { for (Long value : sortedValues) {
System.err.println("value: " + value); // System.err.println("value: " + value);
while (BigInteger.valueOf(value).subtract(BigInteger.valueOf(minBucketVal)).compareTo(bigIntGap) > 0) { while (BigInteger.valueOf(value).subtract(BigInteger.valueOf(minBucketVal)).compareTo(bigIntGap) > 0) {
++bucketNum; ++bucketNum;
minBucketVal += gap; minBucketVal += gap;
System.err.println("bucketNum: " + bucketNum + " minBucketVal: " + minBucketVal); // System.err.println("bucketNum: " + bucketNum + " minBucketVal: " + minBucketVal);
} }
++bucketCount[bucketNum]; ++bucketCount[bucketNum];
} }