/** * Removes ids obtained by the given iterator from the tracked references. * The iterator has to be closed by the caller. * * @param recs iterator over records to remove * @throws IOException */ protected void removeRecords(Iterator<String> recs) throws IOException { // Spool the ids to be deleted into a file and sort File deleted = createTempFile("deleted", null); writeStrings(recs, deleted, false); removeRecords(deleted); LOG.trace("Removed records"); }
/** * Removes ids obtained by the given iterator from the tracked references. * The iterator has to be closed by the caller. * * @param recs iterator over records to remove * @throws IOException */ protected void removeRecords(Iterator<String> recs) throws IOException { // Spool the ids to be deleted into a file and sort File deleted = createTempFile("deleted", null); writeStrings(recs, deleted, false); removeRecords(deleted); LOG.trace("Removed records"); }
/** * Removes ids obtained by the given iterator from the tracked references. * The iterator has to be closed by the caller. * * @param recs iterator over records to remove * @throws IOException */ protected void removeRecords(Iterator<String> recs) throws IOException { // Spool the ids to be deleted into a file and sort File deleted = createTempFile("deleted", null); writeStrings(recs, deleted, false); removeRecords(deleted); LOG.trace("Removed records"); }
@Override public void remove(File recs, Options options) throws IOException { globalMerge(); if (options == Options.ACTIVE_DELETION) { deleteTracker.track(recs); } store.removeRecords(recs); snapshot(true); }
@Override public void remove(File recs) throws IOException { globalMerge(); store.removeRecords(recs); snapshot(true); }
@Override public void remove(File recs, Options options) throws IOException { globalMerge(); if (options == Options.ACTIVE_DELETION) { deleteTracker.track(recs); } store.removeRecords(recs); snapshot(true); }
@Override public void remove(Iterator<String> recs) throws IOException { globalMerge(); store.removeRecords(recs); snapshot(true); }
@Override public void remove(Iterator<String> recs) throws IOException { globalMerge(); store.removeRecords(recs); snapshot(true); }
@Override public void remove(Iterator<String> recs) throws IOException { globalMerge(); store.removeRecords(recs); snapshot(true); }
@Override public void remove(File recs) throws IOException { globalMerge(); store.removeRecords(recs); snapshot(true); }
@Override public void remove(File recs) throws IOException { globalMerge(); store.removeRecords(recs); snapshot(true); }
private static void remove(BlobIdStore store, File temp, Set<String> initAdd, List<String> ints) throws IOException { writeStrings(ints.iterator(), temp, false); initAdd.removeAll(ints); store.removeRecords(temp); }
@Override public void remove(File recs, Options options) throws IOException { globalMerge(); if (options == Options.ACTIVE_DELETION) { deleteTracker.track(recs); } store.removeRecords(recs); snapshot(true); }