Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A2E8A200D56 for ; Tue, 28 Nov 2017 01:42:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A159E160C13; Tue, 28 Nov 2017 00:42:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E9716160C14 for ; Tue, 28 Nov 2017 01:42:03 +0100 (CET) Received: (qmail 86232 invoked by uid 500); 28 Nov 2017 00:42:03 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 86223 invoked by uid 99); 28 Nov 2017 00:42:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Nov 2017 00:42:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3B08C180676 for ; Tue, 28 Nov 2017 00:42:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id LMKs6JTr5qGF for ; Tue, 28 Nov 2017 00:42:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 2C9625F23E for ; Tue, 28 Nov 2017 00:42:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 9F568E0D1F for ; Tue, 28 Nov 2017 00:42:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 34009241BC for ; Tue, 28 Nov 2017 00:42:00 +0000 (UTC) Date: Tue, 28 Nov 2017 00:42:00 +0000 (UTC) From: "Tobi Vollebregt (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (BEAM-3262) Provide a withReadableByteChannelFactory on TextIO.Read MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 28 Nov 2017 00:42:04 -0000 [ https://issues.apache.org/jira/browse/BEAM-3262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tobi Vollebregt updated BEAM-3262: ---------------------------------- Description: Hi, I am prototyping a dataflow job that reads from GPG encrypted files. I got this working, but had to jump through some hoops to supply a new "compression" format to TextIO: I basically had to copy a good part of TextIO.Read only to add a {{withDecompressingChannelFactory}} method similar to {{withWritableByteChannelFactory}} in TextIO.Write. Would it be possible to add a method {{withDecompressingChannelFactory}} or {{withReadableByteChannelFactory}} to TextIO.Read to allow users to plug in custom decompression/decryption code? was: Hi, I am prototyping a dataflow job that reads from GPG encrypted files. I got this working, but had to jump through some hoops to supply a new "compression" format to TextIO: I basically had to copy a good part of TextIO.Read only to add a {{public Read withDecompressingChannelFactory(DecompressingChannelFactory decompressingChannelFactory)}} method similar to {{public TypedWrite withWritableByteChannelFactory(WritableByteChannelFactory writableByteChannelFactory)}} in TextIO.Write. Would it be possible to add a method {{withDecompressingChannelFactory}} or {{withReadableByteChannelFactory}} to TextIO.Read to allow users to plug in custom decompression/decryption code? > Provide a withReadableByteChannelFactory on TextIO.Read > ------------------------------------------------------- > > Key: BEAM-3262 > URL: https://issues.apache.org/jira/browse/BEAM-3262 > Project: Beam > Issue Type: Improvement > Components: sdk-java-core > Reporter: Tobi Vollebregt > Assignee: Kenneth Knowles > Priority: Minor > > Hi, > I am prototyping a dataflow job that reads from GPG encrypted files. I got this working, but had to jump through some hoops to supply a new "compression" format to TextIO: I basically had to copy a good part of TextIO.Read only to add a {{withDecompressingChannelFactory}} method similar to {{withWritableByteChannelFactory}} in TextIO.Write. > Would it be possible to add a method {{withDecompressingChannelFactory}} or {{withReadableByteChannelFactory}} to TextIO.Read to allow users to plug in custom decompression/decryption code? -- This message was sent by Atlassian JIRA (v6.4.14#64029)