|
9 | 9 | import io.deephaven.engine.rowset.RowSetFactory;
|
10 | 10 | import io.deephaven.engine.rowset.impl.RowSetUtils;
|
11 | 11 | import io.deephaven.engine.rowset.chunkattributes.OrderedRowKeys;
|
| 12 | +import io.deephaven.internal.log.LoggerFactory; |
| 13 | +import io.deephaven.io.logger.Logger; |
12 | 14 | import io.deephaven.util.QueryConstants;
|
13 | 15 | import io.deephaven.chunk.Chunk;
|
14 | 16 | import io.deephaven.chunk.LongChunk;
|
|
26 | 28 | * its own offset in those arrays.
|
27 | 29 | */
|
28 | 30 | public class BucketState {
|
| 31 | + private static final Logger log = LoggerFactory.getLogger(BucketState.class); |
| 32 | + |
29 | 33 | private final WritableRowSet rowSet = RowSetFactory.empty();
|
30 | 34 |
|
31 | 35 | private RowSet cachedRowSet;
|
@@ -310,22 +314,16 @@ public void validate(final boolean usePrev, final DownsampleChunkContext context
|
310 | 314 | values[columnIndex].validate(offset, keyChunk.get(indexInChunk), valueChunks[columnIndex],
|
311 | 315 | indexInChunk, trackNulls ? nulls[columnIndex] : null);
|
312 | 316 | } catch (final RuntimeException e) {
|
313 |
| - System.out.println(rowSet); |
314 | 317 | final String msg =
|
315 | 318 | "Bad data! indexInChunk=" + indexInChunk + ", col=" + columnIndex + ", usePrev="
|
316 |
| - + usePrev + ", offset=" + offset + ", rowSet=" + keyChunk.get(indexInChunk); |
| 319 | + + usePrev + ", offset=" + offset + ", indexInChunk=" |
| 320 | + + keyChunk.get(indexInChunk); |
| 321 | + log.error().append(msg).append(", rowSet=").append(rowSet).endl(); |
317 | 322 | throw new IllegalStateException(msg, e);
|
318 | 323 | }
|
319 | 324 | }
|
320 | 325 | }
|
321 | 326 | }
|
322 | 327 | Assert.eqTrue(makeRowSet().subsetOf(rowSet), "makeRowSet().subsetOf(rowSet)");
|
323 | 328 | }
|
324 |
| - |
325 |
| - public void close() { |
326 |
| - if (cachedRowSet != null) { |
327 |
| - cachedRowSet.close(); |
328 |
| - } |
329 |
| - rowSet.close(); |
330 |
| - } |
331 | 329 | }
|
0 commit comments