result.put(index, stats);
}
protected Histogram parseHistogram(Object obj, Index index, int firstColumn, int columnCount) {
if (!(obj instanceof Iterable))
throw new AkibanInternalException("Histogram not in expected format");
List<HistogramEntry> entries = new ArrayList<>();
for (Object eobj : (Iterable)obj) {
if (!(eobj instanceof Map))
throw new AkibanInternalException("Entry not in expected format");
Map<?,?> emap = (Map<?,?>)eobj;
Key key = encodeKey(index, firstColumn, columnCount,
(List<?>)emap.get(HISTOGRAM_KEY_ARRAY_KEY));
String keyString = key.toString();
byte[] keyBytes = new byte[key.getEncodedSize()];