You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/07/02 15:59:00 UTC

[jira] [Work logged] (BEAM-4659) Add well known timer coder for Java SDK

     [ https://issues.apache.org/jira/browse/BEAM-4659?focusedWorklogId=118213&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-118213 ]

ASF GitHub Bot logged work on BEAM-4659:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/Jul/18 15:58
            Start Date: 02/Jul/18 15:58
    Worklog Time Spent: 10m 
      Work Description: lukecwik commented on a change in pull request #5794: [BEAM-4659] Add well known timer coder to Java SDK.
URL: https://github.com/apache/beam/pull/5794#discussion_r199544898
 
 

 ##########
 File path: runners/core-construction-java/src/main/java/org/apache/beam/runners/core/construction/Timer.java
 ##########
 @@ -0,0 +1,131 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.beam.runners.core.construction;
+
+import com.google.auto.value.AutoValue;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStream;
+import java.util.Collections;
+import java.util.List;
+import javax.annotation.Nullable;
+import org.apache.beam.sdk.coders.CoderException;
+import org.apache.beam.sdk.coders.InstantCoder;
+import org.apache.beam.sdk.coders.StructuredCoder;
+import org.apache.beam.sdk.util.common.ElementByteSizeObserver;
+import org.joda.time.Instant;
+
+/**
+ * A timer consists of a timestamp and a corresponding user supplied payload.
+ *
+ * <p>Note that this implementation is specifically used during execution within runners and inside
+ * the SDK harness. The {@link org.apache.beam.sdk.state.Timer} represents the current user facing
+ * API. Consider consolidating the two once {@link org.apache.beam.runners.core.TimerInternals} is
 
 Review comment:
   I'll swap the comment to not use a `@link`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 118213)
    Time Spent: 1h 20m  (was: 1h 10m)

> Add well known timer coder for Java SDK
> ---------------------------------------
>
>                 Key: BEAM-4659
>                 URL: https://issues.apache.org/jira/browse/BEAM-4659
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-java-core
>            Reporter: Luke Cwik
>            Assignee: Luke Cwik
>            Priority: Major
>              Labels: portability
>             Fix For: 2.6.0
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> Encoding is: [Instant, Payload]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)