@SuppressWarnings("resource") // caller to close @Override public UnfilteredRowIterator simpleIterator(FileDataInput dfile, DecoratedKey key, RowIndexEntry position, boolean tombstoneOnly) { return SSTableIdentityIterator.create(this, dfile, position, key, tombstoneOnly); }
@SuppressWarnings("resource") // caller to close @Override public UnfilteredRowIterator simpleIterator(FileDataInput dfile, DecoratedKey key, RowIndexEntry position, boolean tombstoneOnly) { return SSTableIdentityIterator.create(this, dfile, position, key, tombstoneOnly); }
@SuppressWarnings("resource") // caller to close @Override public UnfilteredRowIterator simpleIterator(FileDataInput dfile, DecoratedKey key, RowIndexEntry position, boolean tombstoneOnly) { return SSTableIdentityIterator.create(this, dfile, position, key, tombstoneOnly); }
@SuppressWarnings("resource") // caller to close @Override public UnfilteredRowIterator simpleIterator(FileDataInput dfile, DecoratedKey key, RowIndexEntry position, boolean tombstoneOnly) { return SSTableIdentityIterator.create(this, dfile, position, key, tombstoneOnly); }
/** * Only wrap with {@link FixNegativeLocalDeletionTimeIterator} if {@link #reinsertOverflowedTTLRows} option * is specified */ private UnfilteredRowIterator getIterator(DecoratedKey key) { RowMergingSSTableIterator rowMergingIterator = new RowMergingSSTableIterator(SSTableIdentityIterator.create(sstable, dataFile, key)); return reinsertOverflowedTTLRows ? new FixNegativeLocalDeletionTimeIterator(rowMergingIterator, outputHandler, negativeLocalDeletionInfoMetrics) : rowMergingIterator; }
/** * Only wrap with {@link FixNegativeLocalDeletionTimeIterator} if {@link #reinsertOverflowedTTLRows} option * is specified */ private UnfilteredRowIterator getIterator(DecoratedKey key) { RowMergingSSTableIterator rowMergingIterator = new RowMergingSSTableIterator(SSTableIdentityIterator.create(sstable, dataFile, key)); return reinsertOverflowedTTLRows ? new FixNegativeLocalDeletionTimeIterator(rowMergingIterator, outputHandler, negativeLocalDeletionInfoMetrics) : rowMergingIterator; }
/** * Only wrap with {@link FixNegativeLocalDeletionTimeIterator} if {@link #reinsertOverflowedTTLRows} option * is specified */ private UnfilteredRowIterator getIterator(DecoratedKey key) { RowMergingSSTableIterator rowMergingIterator = new RowMergingSSTableIterator(SSTableIdentityIterator.create(sstable, dataFile, key)); return reinsertOverflowedTTLRows ? new FixNegativeLocalDeletionTimeIterator(rowMergingIterator, outputHandler, negativeLocalDeletionInfoMetrics) : rowMergingIterator; }
try (UnfilteredRowIterator iterator = SSTableIdentityIterator.create(sstable, dataFile, key))
try (UnfilteredRowIterator iterator = SSTableIdentityIterator.create(sstable, dataFile, key))
try (SSTableIdentityIterator partition = SSTableIdentityIterator.create(sstable, dataFile, key))
try (SSTableIdentityIterator partition = SSTableIdentityIterator.create(sstable, dataFile, key))
try (UnfilteredRowIterator iterator = SSTableIdentityIterator.create(sstable, dataFile, key))
try (SSTableIdentityIterator partition = SSTableIdentityIterator.create(sstable, dataFile, key))
protected UnfilteredRowIterator initializeIterator() { if (startScan != -1) bytesScanned += dfile.getFilePointer() - startScan; try { if (dataRange == null) { dfile.seek(currentEntry.position); startScan = dfile.getFilePointer(); ByteBufferUtil.skipShortLength(dfile); // key return SSTableIdentityIterator.create(sstable, dfile, partitionKey()); } else { startScan = dfile.getFilePointer(); } ClusteringIndexFilter filter = dataRange.clusteringIndexFilter(partitionKey()); return sstable.iterator(dfile, partitionKey(), currentEntry, filter.getSlices(BigTableScanner.this.metadata()), columns, filter.isReversed(), isForThrift); } catch (CorruptSSTableException | IOException e) { sstable.markSuspect(); throw new CorruptSSTableException(e, sstable.getFilename()); } } };
protected UnfilteredRowIterator initializeIterator() { if (startScan != -1) bytesScanned += dfile.getFilePointer() - startScan; try { if (dataRange == null) { dfile.seek(currentEntry.position); startScan = dfile.getFilePointer(); ByteBufferUtil.skipShortLength(dfile); // key return SSTableIdentityIterator.create(sstable, dfile, partitionKey()); } else { startScan = dfile.getFilePointer(); } ClusteringIndexFilter filter = dataRange.clusteringIndexFilter(partitionKey()); return sstable.iterator(dfile, partitionKey(), currentEntry, filter.getSlices(BigTableScanner.this.metadata()), columns, filter.isReversed(), isForThrift); } catch (CorruptSSTableException | IOException e) { sstable.markSuspect(); throw new CorruptSSTableException(e, sstable.getFilename()); } } };
protected UnfilteredRowIterator initializeIterator() { if (startScan != -1) bytesScanned += dfile.getFilePointer() - startScan; try { if (dataRange == null) { dfile.seek(currentEntry.position); startScan = dfile.getFilePointer(); ByteBufferUtil.skipShortLength(dfile); // key return SSTableIdentityIterator.create(sstable, dfile, partitionKey()); } else { startScan = dfile.getFilePointer(); } ClusteringIndexFilter filter = dataRange.clusteringIndexFilter(partitionKey()); return sstable.iterator(dfile, partitionKey(), currentEntry, filter.getSlices(BigTableScanner.this.metadata()), columns, filter.isReversed(), isForThrift); } catch (CorruptSSTableException | IOException e) { sstable.markSuspect(); throw new CorruptSSTableException(e, sstable.getFilename()); } } };
protected UnfilteredRowIterator initializeIterator() { if (startScan != -1) bytesScanned += dfile.getFilePointer() - startScan; try { if (dataRange == null) { dfile.seek(currentEntry.position); startScan = dfile.getFilePointer(); ByteBufferUtil.skipShortLength(dfile); // key return SSTableIdentityIterator.create(sstable, dfile, partitionKey()); } else { startScan = dfile.getFilePointer(); } ClusteringIndexFilter filter = dataRange.clusteringIndexFilter(partitionKey()); return sstable.iterator(dfile, partitionKey(), currentEntry, filter.getSlices(BigTableScanner.this.metadata()), columns, filter.isReversed(), isForThrift); } catch (CorruptSSTableException | IOException e) { sstable.markSuspect(); throw new CorruptSSTableException(e, sstable.getFilename()); } } };