buf.append(" not found\n");
continue;
}
for (int entryIx = 0; entryIx < index.getEntryCount(); ++entryIx) {
buf.append("\n Entry ").append(entryIx).append(":");
RowIndexEntry entry = index.getEntry(entryIx);
if (entry == null) {
buf.append("unknown\n");
continue;
}
OrcProto.ColumnStatistics colStats = entry.getStatistics();
if (colStats == null) {
buf.append("no stats at ");
} else {
ColumnStatistics cs = ColumnStatisticsImpl.deserialize(colStats);
Object min = RecordReaderImpl.getMin(cs), max = RecordReaderImpl.getMax(cs);
buf.append(" count: ").append(cs.getNumberOfValues());
buf.append(" min: ").append(min);
buf.append(" max: ").append(max);
}
buf.append(" positions: ");
for (int posIx = 0; posIx < entry.getPositionsCount(); ++posIx) {
if (posIx != 0) {
buf.append(",");
}
buf.append(entry.getPositions(posIx));
}
}
System.out.println(buf);
}
}