diff --git a/presto-main/src/main/java/io/prestosql/operator/PartitionedConsumption.java b/presto-main/src/main/java/io/prestosql/operator/PartitionedConsumption.java index cd69da644924..9ba07c684be3 100644 --- a/presto-main/src/main/java/io/prestosql/operator/PartitionedConsumption.java +++ b/presto-main/src/main/java/io/prestosql/operator/PartitionedConsumption.java @@ -46,12 +46,12 @@ public final class PartitionedConsumption @Nullable private List> partitions; - public PartitionedConsumption(int consumersCount, Iterable partitionNumbers, IntFunction> loader, IntConsumer disposer) + PartitionedConsumption(int consumersCount, Iterable partitionNumbers, IntFunction> loader, IntConsumer disposer) { this(consumersCount, immediateFuture(null), partitionNumbers, loader, disposer); } - public PartitionedConsumption( + private PartitionedConsumption( int consumersCount, ListenableFuture activator, Iterable partitionNumbers, @@ -83,7 +83,7 @@ private List> createPartitions( return partitions.build(); } - public Iterator> beginConsumption() + Iterator> beginConsumption() { Queue> partitions = new ArrayDeque<>(requireNonNull(this.partitions, "partitions is already null")); if (consumed.incrementAndGet() >= consumersCount) {