From f9f6df39b5449ada64d33c0c58311bd473a1c068 Mon Sep 17 00:00:00 2001 From: mcheah Date: Mon, 26 Nov 2018 15:44:21 -0800 Subject: [PATCH] Make HadoopTableOperations public with protected constructor. Allows custom implementations that share most of the behavior, but protected constructor prevents it from being instantiated improperly. --- .../com/netflix/iceberg/hadoop/HadoopTableOperations.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/netflix/iceberg/hadoop/HadoopTableOperations.java b/core/src/main/java/com/netflix/iceberg/hadoop/HadoopTableOperations.java index 345caa09edae..da2fc6f6677c 100644 --- a/core/src/main/java/com/netflix/iceberg/hadoop/HadoopTableOperations.java +++ b/core/src/main/java/com/netflix/iceberg/hadoop/HadoopTableOperations.java @@ -45,7 +45,7 @@ *

* This maintains metadata in a "metadata" folder under the table location. */ -class HadoopTableOperations implements TableOperations { +public class HadoopTableOperations implements TableOperations { private static final Logger LOG = LoggerFactory.getLogger(HadoopTableOperations.class); private final Configuration conf; @@ -54,7 +54,7 @@ class HadoopTableOperations implements TableOperations { private Integer version = null; private boolean shouldRefresh = true; - HadoopTableOperations(Path location, Configuration conf) { + protected HadoopTableOperations(Path location, Configuration conf) { this.conf = conf; this.location = location; }