public void removeDataFiles(Set<Integer> files) throws IOException { for (Integer key : files) { // Can't remove the data file (or subsequent files) that is currently being written to. if (key >= lastAppendLocation.get().getDataFileId()) { continue; } DataFile dataFile = null; synchronized (currentDataFile) { dataFile = fileMap.remove(key); if (dataFile != null) { fileByFileMap.remove(dataFile.getFile()); dataFile.unlink(); } } if (dataFile != null) { forceRemoveDataFile(dataFile); } } }
public void removeDataFiles(Set<Integer> files) throws IOException { for (Integer key : files) { // Can't remove the data file (or subsequent files) that is currently being written to. if (key >= lastAppendLocation.get().getDataFileId()) { continue; } DataFile dataFile = null; synchronized (currentDataFile) { dataFile = fileMap.remove(key); if (dataFile != null) { fileByFileMap.remove(dataFile.getFile()); dataFile.unlink(); } } if (dataFile != null) { forceRemoveDataFile(dataFile); } } }
public void removeDataFiles(Set<Integer> files) throws IOException { for (Integer key : files) { // Can't remove the data file (or subsequent files) that is currently being written to. if (key >= lastAppendLocation.get().getDataFileId()) { continue; } DataFile dataFile = null; synchronized (currentDataFile) { dataFile = fileMap.remove(key); if (dataFile != null) { fileByFileMap.remove(dataFile.getFile()); dataFile.unlink(); } } if (dataFile != null) { forceRemoveDataFile(dataFile); } } }
public void removeDataFiles(Set<Integer> files) throws IOException { for (Integer key : files) { // Can't remove the data file (or subsequent files) that is currently being written to. if (key >= lastAppendLocation.get().getDataFileId()) { continue; } DataFile dataFile = null; synchronized (currentDataFile) { dataFile = fileMap.remove(key); if (dataFile != null) { fileByFileMap.remove(dataFile.getFile()); dataFile.unlink(); } } if (dataFile != null) { forceRemoveDataFile(dataFile); } } }