adutra commented on code in PR #282:
URL: https://github.com/apache/polaris/pull/282#discussion_r1762607377
##########
polaris-core/src/main/java/org/apache/polaris/core/PolarisCallContext.java:
##########
@@ -21,56 +21,44 @@
import java.time.Clock;
import java.time.ZoneId;
import org.apache.polaris.core.persistence.PolarisMetaStoreSession;
+import org.apache.polaris.immutables.PolarisImmutable;
+import org.immutables.value.Value;
import org.jetbrains.annotations.NotNull;
/**
* The Call context is allocated each time a new REST request is processed. It
contains instances of
* low-level services required to process that request
*/
-public class PolarisCallContext {
+@PolarisImmutable
+public interface PolarisCallContext {
- // meta store which is used to persist Polaris entity metadata
- private final PolarisMetaStoreSession metaStore;
+ @Value.Parameter(order = 0)
Review Comment:
It's required to trigger the generation of
`ImmutablePolarisCallContext.of(...)` factory methods.
--
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]