You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@phoenix.apache.org by st...@apache.org on 2023/11/09 06:26:31 UTC

(phoenix) branch master updated: PHOENIX-7102 phoenix-connectors doesn't compile with core HEAD

This is an automated email from the ASF dual-hosted git repository.

stoty pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/phoenix.git


The following commit(s) were added to refs/heads/master by this push:
     new 20529a62b8 PHOENIX-7102 phoenix-connectors doesn't compile with core HEAD
20529a62b8 is described below

commit 20529a62b8e8f6859ee246d3edc0ee568e93dacd
Author: Istvan Toth <st...@apache.org>
AuthorDate: Tue Nov 7 18:19:27 2023 +0100

    PHOENIX-7102 phoenix-connectors doesn't compile with core HEAD
---
 .../phoenix/iterate/TableResultIterator.java       | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/phoenix-core/src/main/java/org/apache/phoenix/iterate/TableResultIterator.java b/phoenix-core/src/main/java/org/apache/phoenix/iterate/TableResultIterator.java
index 9ef7eb8200..9087411c4f 100644
--- a/phoenix-core/src/main/java/org/apache/phoenix/iterate/TableResultIterator.java
+++ b/phoenix-core/src/main/java/org/apache/phoenix/iterate/TableResultIterator.java
@@ -155,6 +155,29 @@ public class TableResultIterator implements ResultIterator {
         ScanUtil.setScanAttributesForClient(scan, table, plan.getContext().getConnection());
     }
 
+    // Constructors without maxQueryEndTime to maintain API compatibility for phoenix-connectors
+    public TableResultIterator(MutationState mutationState, Scan scan, ScanMetricsHolder scanMetricsHolder,
+            long renewLeaseThreshold, QueryPlan plan, ParallelScanGrouper scanGrouper) throws SQLException {
+        this(mutationState, scan, scanMetricsHolder, renewLeaseThreshold, plan, scanGrouper, null, false, Long.MAX_VALUE);
+    }
+
+    public TableResultIterator(MutationState mutationState, Scan scan, ScanMetricsHolder scanMetricsHolder,
+            long renewLeaseThreshold, QueryPlan plan, ParallelScanGrouper scanGrouper,Map<ImmutableBytesPtr,ServerCache> caches) throws SQLException {
+        this(mutationState, scan, scanMetricsHolder, renewLeaseThreshold, plan, scanGrouper, caches, false, Long.MAX_VALUE);
+    }
+
+    public TableResultIterator(MutationState mutationState, Scan scan, ScanMetricsHolder scanMetricsHolder,
+            long renewLeaseThreshold, QueryPlan plan, ParallelScanGrouper scanGrouper, boolean isMapReduceContext) throws SQLException {
+        this(mutationState, scan, scanMetricsHolder, renewLeaseThreshold, plan, scanGrouper, null, isMapReduceContext, Long.MAX_VALUE);
+    }
+
+    public TableResultIterator(MutationState mutationState, Scan scan, ScanMetricsHolder scanMetricsHolder,
+            long renewLeaseThreshold, QueryPlan plan, ParallelScanGrouper scanGrouper,Map<ImmutableBytesPtr,ServerCache> caches,
+            boolean isMapReduceContext) throws SQLException {
+            this(mutationState, scan, scanMetricsHolder, renewLeaseThreshold, plan, scanGrouper, caches, isMapReduceContext, Long.MAX_VALUE);
+    }
+    // End Constructors without maxQueryEndTime to maintain API compatibility for phoenix-connectors
+
     @Override
     public void close() throws SQLException {
         try {