rdblue commented on a change in pull request #3977:
URL: https://github.com/apache/iceberg/pull/3977#discussion_r794847496
##########
File path: core/src/main/java/org/apache/iceberg/io/PartitionedFanoutWriter.java
##########
@@ -19,19 +19,52 @@
package org.apache.iceberg.io;
+import com.github.benmanes.caffeine.cache.Cache;
+import com.github.benmanes.caffeine.cache.Caffeine;
import java.io.IOException;
+import java.io.UncheckedIOException;
import java.util.Map;
+import java.util.concurrent.ConcurrentMap;
+import java.util.concurrent.TimeUnit;
import org.apache.iceberg.FileFormat;
import org.apache.iceberg.PartitionKey;
import org.apache.iceberg.PartitionSpec;
-import org.apache.iceberg.relocated.com.google.common.collect.Maps;
+import org.apache.iceberg.TableProperties;
+import org.apache.iceberg.util.PropertyUtil;
+import org.apache.iceberg.util.Tasks;
public abstract class PartitionedFanoutWriter<T> extends BaseTaskWriter<T> {
- private final Map<PartitionKey, RollingFileWriter> writers =
Maps.newHashMap();
+ private Cache<PartitionKey, RollingFileWriter> writers;
protected PartitionedFanoutWriter(PartitionSpec spec, FileFormat format,
FileAppenderFactory<T> appenderFactory,
- OutputFileFactory fileFactory, FileIO io, long
targetFileSize) {
+ OutputFileFactory fileFactory, FileIO io,
Review comment:
Can you fix indentation here, as long as these lines are changing?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]