protected void doPrepare() { iwriter.prepareToCommit(); // write sstable statistics dataFile.prepareToCommit(); writeMetadata(descriptor, finalizeMetadata()); // save the table of components SSTable.appendTOC(descriptor, components); if (openResult) finalReader = openFinal(SSTableReader.OpenReason.NORMAL); }
@Override protected void doPrepare() { syncInternal(); digestFile.ifPresent(crcMetadata::writeFullChecksum); crcWriter.prepareToCommit(); } }
@Override protected void doPrepare() { syncInternal(); digestFile.ifPresent(crcMetadata::writeFullChecksum); crcWriter.prepareToCommit(); } }
protected void doPrepare() { iwriter.prepareToCommit(); // write sstable statistics dataFile.prepareToCommit(); writeMetadata(descriptor, finalizeMetadata()); // save the table of components SSTable.appendTOC(descriptor, components); if (openResult) finalReader = openFinal(SSTableReader.OpenReason.NORMAL); }
@Override protected void doPrepare() { syncInternal(); digestFile.ifPresent(crcMetadata::writeFullChecksum); crcWriter.prepareToCommit(); } }
protected void doPrepare() { iwriter.prepareToCommit(); // write sstable statistics dataFile.prepareToCommit(); writeMetadata(descriptor, finalizeMetadata()); // save the table of components SSTable.appendTOC(descriptor, components); if (openResult) finalReader = openFinal(SSTableReader.OpenReason.NORMAL); }
protected void doPrepare() { iwriter.prepareToCommit(); // write sstable statistics dataFile.prepareToCommit(); writeMetadata(descriptor, finalizeMetadata()); // save the table of components SSTable.appendTOC(descriptor, components); //if (openResult) // finalReader = openFinal(SSTableReader.OpenReason.NORMAL); }
@Override protected void doPrepare() { syncInternal(); digestFile.ifPresent(crcMetadata::writeFullChecksum); crcWriter.prepareToCommit(); } }
protected void doPrepare() { flushBf(); // truncate index file //long position = indexFile.position(); indexFile.prepareToCommit(); //FileUtils.truncate(indexFile.getPath(), position); // save summary summary.prepareToCommit(); try (IndexSummary indexSummary = summary.build(getPartitioner())) { SSTableReader.saveSummary(descriptor, first, last, indexSummary); } }
protected void doPrepare() { flushBf(); // truncate index file long position = indexFile.position(); indexFile.prepareToCommit(); FileUtils.truncate(indexFile.getPath(), position); // save summary summary.prepareToCommit(); try (IndexSummary indexSummary = summary.build(getPartitioner())) { SSTableReader.saveSummary(descriptor, first, last, indexSummary); } }
protected void doPrepare() { flushBf(); // truncate index file long position = indexFile.position(); indexFile.prepareToCommit(); FileUtils.truncate(indexFile.getPath(), position); // save summary summary.prepareToCommit(); try (IndexSummary indexSummary = summary.build(getPartitioner())) { SSTableReader.saveSummary(descriptor, first, last, indexSummary); } }
protected void doPrepare() { flushBf(); // truncate index file long position = indexFile.position(); indexFile.prepareToCommit(); FileUtils.truncate(indexFile.getPath(), position); // save summary summary.prepareToCommit(); try (IndexSummary indexSummary = summary.build(getPartitioner())) { SSTableReader.saveSummary(descriptor, first, last, indexSummary); } }