[
https://issues.apache.org/jira/browse/BEAM-2939?focusedWorklogId=170083&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-170083
]
ASF GitHub Bot logged work on BEAM-2939:
----------------------------------------
Author: ASF GitHub Bot
Created on: 28/Nov/18 01:09
Start Date: 28/Nov/18 01:09
Worklog Time Spent: 10m
Work Description: lukecwik commented on a change in pull request #6969:
[BEAM-2939] SplittableDoFn Java SDK API Changes
URL: https://github.com/apache/beam/pull/6969#discussion_r236908314
##########
File path:
sdks/java/core/src/main/java/org/apache/beam/sdk/transforms/splittabledofn/Backlogs.java
##########
@@ -0,0 +1,47 @@
+/*
+ * 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.sdk.transforms.splittabledofn;
+
+/** Definitions and convenience methods for reporting/consuming/updating
backlogs. */
+public final class Backlogs {
+ /**
+ * {@link RestrictionTracker}s which can provide a backlog should implement
this interface.
+ * Implementations that do not implement this interface will be assumed to
have an unknown
+ * backlog.
+ *
+ * <p>By default, the backlog partition identifier is represented as the
encoded element and
+ * restriction pair. See {@link HasPartitionedBacklog} for {@link
RestrictionTracker}s that report
+ * backlogs over a shared resource.
+ */
+ public interface HasBacklog {
+ Backlog getBacklog();
+ }
+
+ /**
+ * {@link RestrictionTracker}s which can provide a backlog that is from a
shared resource such as
+ * a message queue should implement this interface to provide the partition
identifier. The
+ * partition identifier is used by runners during backlog aggregation.
+ *
+ * <p>This allows runners to understand as to how to aggregate backlogs.
+ *
+ * <p>Returns the partition identifier.
+ */
+ public interface HasPartitionedBacklog extends HasBacklog {
+ byte[] getBacklogPartition();
Review comment:
I expanded on this.
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 170083)
Time Spent: 10h (was: 9h 50m)
> Fn API streaming SDF support
> ----------------------------
>
> Key: BEAM-2939
> URL: https://issues.apache.org/jira/browse/BEAM-2939
> Project: Beam
> Issue Type: Improvement
> Components: beam-model
> Reporter: Henning Rohde
> Assignee: Luke Cwik
> Priority: Major
> Labels: portability
> Time Spent: 10h
> Remaining Estimate: 0h
>
> The Fn API should support streaming SDF. Detailed design TBD.
> Once design is ready, expand subtasks similarly to BEAM-2822.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)