[ https://issues.apache.org/jira/browse/BEAM-6480?focusedWorklogId=272625&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-272625 ]
ASF GitHub Bot logged work on BEAM-6480: ---------------------------------------- Author: ASF GitHub Bot Created on: 05/Jul/19 14:33 Start Date: 05/Jul/19 14:33 Worklog Time Spent: 10m Work Description: iemejia commented on pull request #9005: [BEAM-6480] Adds AvroIO sink for generic records. URL: https://github.com/apache/beam/pull/9005#discussion_r300707248 ########## File path: sdks/java/core/src/main/java/org/apache/beam/sdk/io/AvroIO.java ########## @@ -1703,6 +1704,26 @@ public void populateDisplayData(DisplayData.Builder builder) { .build(); } + /** + * A {@link Sink} for use with {@link FileIO#write} and {@link FileIO#writeDynamic}, writing + * elements with a given (common) schema, like {@link #writeGenericRecords(Schema)}. + */ + public static <ElementT extends IndexedRecord> Sink<ElementT> sinkViaGeneric(Schema schema) { Review comment: Mark it too as `@Experimental` please. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 272625) Time Spent: 1h 20m (was: 1h 10m) > Add AvroIO.sink for IndexedRecord (FileIO compatible) > ----------------------------------------------------- > > Key: BEAM-6480 > URL: https://issues.apache.org/jira/browse/BEAM-6480 > Project: Beam > Issue Type: New Feature > Components: io-java-avro > Affects Versions: 2.9.0 > Reporter: Romain Manni-Bucau > Assignee: Ryan Skraba > Priority: Major > Time Spent: 1h 20m > Remaining Estimate: 0h > > More generally for sink there is no need to create a mapper API since the > previous PTransform can always map in a format the sink support so any sink > can assume the format is right. -- This message was sent by Atlassian JIRA (v7.6.3#76005)