thiagotnunes commented on a change in pull request #17200:
URL: https://github.com/apache/beam/pull/17200#discussion_r837126701
##########
File path:
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/restriction/TimestampRangeTracker.java
##########
@@ -45,12 +49,20 @@
public class TimestampRangeTracker extends RestrictionTracker<TimestampRange,
Timestamp>
implements HasProgress {
+ private static final Logger LOG =
LoggerFactory.getLogger(TimestampRangeTracker.class);
protected TimestampRange range;
protected @Nullable Timestamp lastAttemptedPosition;
protected @Nullable Timestamp lastClaimedPosition;
+ protected TimeFunction timeFunction;
Review comment:
Oh never mind, you can not, because we need a google cloud Timestamp
##########
File path:
sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/spanner/changestreams/restriction/TimestampRangeTracker.java
##########
@@ -45,12 +49,20 @@
public class TimestampRangeTracker extends RestrictionTracker<TimestampRange,
Timestamp>
implements HasProgress {
+ private static final Logger LOG =
LoggerFactory.getLogger(TimestampRangeTracker.class);
protected TimestampRange range;
protected @Nullable Timestamp lastAttemptedPosition;
protected @Nullable Timestamp lastClaimedPosition;
+ protected TimeFunction timeFunction;
Review comment:
You can use Java Clock instead:
https://docs.oracle.com/javase/8/docs/api/java/time/Clock.html
--
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]