key (which is time) can be negative as well

This commit is contained in:
kimchy 2011-01-02 22:03:52 +02:00
parent 07d361816e
commit d2a70b21cd
1 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@ public class InternalCountDateHistogramFacet extends InternalDateHistogramFacet
} else { } else {
counts = new TLongLongHashMap(size); counts = new TLongLongHashMap(size);
for (int i = 0; i < size; i++) { for (int i = 0; i < size; i++) {
long key = in.readVLong(); long key = in.readLong();
counts.put(key, in.readVLong()); counts.put(key, in.readVLong());
} }
} }
@ -241,7 +241,7 @@ public class InternalCountDateHistogramFacet extends InternalDateHistogramFacet
out.writeVInt(counts.size()); out.writeVInt(counts.size());
for (TLongLongIterator it = counts.iterator(); it.hasNext();) { for (TLongLongIterator it = counts.iterator(); it.hasNext();) {
it.advance(); it.advance();
out.writeVLong(it.key()); out.writeLong(it.key());
out.writeVLong(it.value()); out.writeVLong(it.value());
} }
} }