From 4f590d5c5bbdbf169a493b6a95c89223812871e2 Mon Sep 17 00:00:00 2001 From: Piotr Findeisen Date: Mon, 9 Oct 2023 13:29:32 +0200 Subject: [PATCH] Remove deprecated FixedPageSource constructor --- .../java/io/trino/spi/connector/FixedPageSource.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/core/trino-spi/src/main/java/io/trino/spi/connector/FixedPageSource.java b/core/trino-spi/src/main/java/io/trino/spi/connector/FixedPageSource.java index fb238bb94e9d..39536c57ea75 100644 --- a/core/trino-spi/src/main/java/io/trino/spi/connector/FixedPageSource.java +++ b/core/trino-spi/src/main/java/io/trino/spi/connector/FixedPageSource.java @@ -29,21 +29,12 @@ public class FixedPageSource private long completedBytes; private boolean closed; - /** - * @deprecated This constructor hides the fact {@code pages} are iterated twice. - */ - @Deprecated - public FixedPageSource(Iterable pages) - { - this(pages.iterator(), memoryUsage(pages)); - } - public FixedPageSource(List pages) { this(pages.iterator(), memoryUsage(pages)); } - private static long memoryUsage(Iterable pages) + private static long memoryUsage(List pages) { long memoryUsageBytes = 0; for (Page page : pages) {