@Override protected UnfilteredRowIterator initializeIterator() { sstable.incrementReadCount(); @SuppressWarnings("resource") // 'iter' is added to iterators which is closed on exception, or through the closing of the final merged iterator UnfilteredRowIterator iter = sstable.iterator(partitionKey(), filter.getSlices(metadata()), selectedColumns, filter.isReversed(), isForThrift); return iter; }
@Override protected UnfilteredRowIterator initializeIterator() { @SuppressWarnings("resource") // 'iter' is added to iterators which is closed on exception, or through the closing of the final merged iterator UnfilteredRowIterator iter = sstable.iterator(partitionKey(), filter.getSlices(metadata()), selectedColumns, filter.isReversed(), isForThrift, listener); return isForThrift && applyThriftTransformation ? ThriftResultsMerger.maybeWrap(iter, nowInSec) : iter; }
@Override protected UnfilteredRowIterator initializeIterator() { @SuppressWarnings("resource") // 'iter' is added to iterators which is closed on exception, or through the closing of the final merged iterator UnfilteredRowIterator iter = sstable.iterator(partitionKey(), filter.getSlices(metadata()), selectedColumns, filter.isReversed(), isForThrift, listener); return isForThrift && applyThriftTransformation ? ThriftResultsMerger.maybeWrap(iter, nowInSec) : iter; }
@Override protected UnfilteredRowIterator initializeIterator() { @SuppressWarnings("resource") // 'iter' is added to iterators which is closed on exception, or through the closing of the final merged iterator UnfilteredRowIterator iter = sstable.iterator(partitionKey(), filter.getSlices(metadata()), selectedColumns, filter.isReversed(), isForThrift, listener); return isForThrift && applyThriftTransformation ? ThriftResultsMerger.maybeWrap(iter, nowInSec) : iter; }
public UnfilteredRowIterator next() { ImmutableBTreePartition partition = toReturn.get(idx++); ClusteringIndexFilter filter = command.clusteringIndexFilter(partition.partitionKey()); // Pre-3.0, we would always request one more row than we actually needed and the command-level "start" would // be the last-returned cell name, so the response would always include it. UnfilteredRowIterator iterator = partition.unfilteredIterator(command.columnFilter(), filter.getSlices(command.metadata()), filter.isReversed()); // Wrap results with a ThriftResultMerger only if they're intended for the thrift command. if (command.isForThrift()) return ThriftResultsMerger.maybeWrap(iterator, command.nowInSec()); else return iterator; } };
public UnfilteredRowIterator next() { ImmutableBTreePartition partition = toReturn.get(idx++); ClusteringIndexFilter filter = command.clusteringIndexFilter(partition.partitionKey()); // Pre-3.0, we would always request one more row than we actually needed and the command-level "start" would // be the last-returned cell name, so the response would always include it. UnfilteredRowIterator iterator = partition.unfilteredIterator(command.columnFilter(), filter.getSlices(command.metadata()), filter.isReversed()); // Wrap results with a ThriftResultMerger only if they're intended for the thrift command. if (command.isForThrift()) return ThriftResultsMerger.maybeWrap(iterator, command.nowInSec()); else return iterator; } };
public UnfilteredRowIterator next() { ImmutableBTreePartition partition = toReturn.get(idx++); ClusteringIndexFilter filter = command.clusteringIndexFilter(partition.partitionKey()); // Pre-3.0, we would always request one more row than we actually needed and the command-level "start" would // be the last-returned cell name, so the response would always include it. UnfilteredRowIterator iterator = partition.unfilteredIterator(command.columnFilter(), filter.getSlices(command.metadata()), filter.isReversed()); // Wrap results with a ThriftResultMerger only if they're intended for the thrift command. if (command.isForThrift()) return ThriftResultsMerger.maybeWrap(iterator, command.nowInSec()); else return iterator; } };
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()); } } };