[
https://issues.apache.org/jira/browse/AVRO-2753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zoltan Csizmadia updated AVRO-2753:
-----------------------------------
Description:
# If a stream is used to open DataFileReader or DataFileWriter, an optional
leaveOpen (default=false) should exist as an additional argument to flag the
object not to close and dispose the stream when the reader/writer object is
disposed.
# The stream objects are not disposed (only closed) as of now, leaving the
reader and writer objects not disposed.
leaveOpen follows the Stream pattern which used in other Stream related areas.
This can be useful if streams are chained together, e.g.
Compressor/decompressor streams chained together with Avro reader/writer
objects.
> Add leaveOpen option to DataFileReader and Writer to keep Stream open
> ---------------------------------------------------------------------
>
> Key: AVRO-2753
> URL: https://issues.apache.org/jira/browse/AVRO-2753
> Project: Apache Avro
> Issue Type: Improvement
> Reporter: Zoltan Csizmadia
> Assignee: Zoltan Csizmadia
> Priority: Minor
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> # If a stream is used to open DataFileReader or DataFileWriter, an optional
> leaveOpen (default=false) should exist as an additional argument to flag the
> object not to close and dispose the stream when the reader/writer object is
> disposed.
> # The stream objects are not disposed (only closed) as of now, leaving the
> reader and writer objects not disposed.
>
> leaveOpen follows the Stream pattern which used in other Stream related
> areas. This can be useful if streams are chained together, e.g.
> Compressor/decompressor streams chained together with Avro reader/writer
> objects.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)