mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-05 20:48:22 +00:00
key (which is time) can be negative as well
This commit is contained in:
parent
07d361816e
commit
d2a70b21cd
@ -229,7 +229,7 @@ public class InternalCountDateHistogramFacet extends InternalDateHistogramFacet
|
||||
} else {
|
||||
counts = new TLongLongHashMap(size);
|
||||
for (int i = 0; i < size; i++) {
|
||||
long key = in.readVLong();
|
||||
long key = in.readLong();
|
||||
counts.put(key, in.readVLong());
|
||||
}
|
||||
}
|
||||
@ -241,7 +241,7 @@ public class InternalCountDateHistogramFacet extends InternalDateHistogramFacet
|
||||
out.writeVInt(counts.size());
|
||||
for (TLongLongIterator it = counts.iterator(); it.hasNext();) {
|
||||
it.advance();
|
||||
out.writeVLong(it.key());
|
||||
out.writeLong(it.key());
|
||||
out.writeVLong(it.value());
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user