[ 
https://issues.apache.org/jira/browse/FLINK-10003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Flink Jira Bot updated FLINK-10003:
-----------------------------------
    Labels: auto-deprioritized-major stale-minor  (was: 
auto-deprioritized-major)

I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help 
the community manage its development. I see this issues has been marked as 
Minor but is unassigned and neither itself nor its Sub-Tasks have been updated 
for 180 days. I have gone ahead and marked it "stale-minor". If this ticket is 
still Minor, please either assign yourself or give an update. Afterwards, 
please remove the label or in 7 days the issue will be deprioritized.


> Encoder interface inefficient when wanting to use more sophisticated 
> outputstreams
> ----------------------------------------------------------------------------------
>
>                 Key: FLINK-10003
>                 URL: https://issues.apache.org/jira/browse/FLINK-10003
>             Project: Flink
>          Issue Type: Improvement
>          Components: Connectors / Common
>    Affects Versions: 1.6.0
>            Reporter: Chesnay Schepler
>            Priority: Minor
>              Labels: auto-deprioritized-major, stale-minor
>
> The {{StreamingFileSink}} uses the {{Encoder}} interface to serialize data.
> {code}
> public interface Encoder<IN> extends Serializable {
>       void encode(IN element, OutputStream stream) throws IOException;
> }
> {code}
> The implementation (with the exception for strings) must be provided by the 
> user.
> To use any {{OutputStream}} implementation that is a little more convenient 
> than the base {{OutputStream}} (like {{DataOutputStream}}) requires creating 
> a new stream for every single record. If an implementation is used that 
> potentially buffers data users additionally have to call {{flush()}}.
> Instead we could allow specifying an optional factory for the streams, that 
> would be called once for each part file, and modify the {{Encoder}} interface 
> to have a generic type for the output stream.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to