Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Commits
d0d3cdaa
Commit
d0d3cdaa
authored
3 years ago
by
Lorenz Boguhn
Browse files
Options
Downloads
Patches
Plain Diff
Refactor using import in beam-commons EventTimePolicy
parent
034c17c7
No related branches found
No related tags found
1 merge request
!187
Migrate Beam benchmark implementation
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/EventTimePolicy.java
+2
-2
2 additions, 2 deletions
...n/java/theodolite/commons/beam/kafka/EventTimePolicy.java
with
2 additions
and
2 deletions
theodolite-benchmarks/beam-commons/src/main/java/theodolite/commons/beam/kafka/EventTimePolicy.java
+
2
−
2
View file @
d0d3cdaa
package
theodolite.commons.beam.kafka
;
import
java.util.Optional
;
import
org.apache.beam.sdk.io.kafka.KafkaRecord
;
import
org.apache.beam.sdk.io.kafka.TimestampPolicy
;
import
org.apache.beam.sdk.transforms.windowing.BoundedWindow
;
import
org.joda.time.Instant
;
import
titan.ccp.model.records.ActivePowerRecord
;
/**
* TimeStampPolicy to use event time based on the timestamp of the record value.
*/
public
class
EventTimePolicy
extends
TimestampPolicy
<
String
,
titan
.
ccp
.
model
.
records
.
ActivePowerRecord
>
{
extends
TimestampPolicy
<
String
,
ActivePowerRecord
>
{
protected
Instant
currentWatermark
;
public
EventTimePolicy
(
final
Optional
<
Instant
>
previousWatermark
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment