Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove experimental declarations from fileio. #12873

Merged
merged 1 commit into from
Sep 30, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions sdks/python/apache_beam/io/fileio.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@
`destination` call is then passed to the `sink` call, to determine what sort of
sink will be used for each destination. The return type of the `destination`
parameter can be anything, as long as elements can be grouped by it.

No backward compatibility guarantees. Everything in this module is experimental.
"""

# pytype: skip-file
Expand Down Expand Up @@ -170,7 +168,6 @@ def process(self, file_pattern):
return match_result.metadata_list


@experimental()
class MatchFiles(beam.PTransform):
"""Matches a file pattern using ``FileSystems.match``.

Expand All @@ -187,7 +184,6 @@ def expand(self, pcoll):
return pcoll.pipeline | beam.Create([self._file_pattern]) | MatchAll()


@experimental()
class MatchAll(beam.PTransform):
"""Matches file patterns from the input PCollection via ``FileSystems.match``.

Expand Down Expand Up @@ -242,7 +238,6 @@ def read_utf8(self):
return self.open().read().decode('utf-8')


@experimental()
class ReadMatches(beam.PTransform):
"""Converts each result of MatchFiles() or MatchAll() to a ReadableFile.

Expand All @@ -259,8 +254,6 @@ def expand(self, pcoll):
class FileSink(object):
"""Specifies how to write elements to individual files in ``WriteToFiles``.

**NOTE: THIS CLASS IS EXPERIMENTAL.**

A Sink class must implement the following:

- The ``open`` method, which initializes writing to a file handler (it is not
Expand All @@ -286,8 +279,6 @@ def flush(self):
class TextSink(FileSink):
"""A sink that encodes utf8 elements, and writes to file handlers.

**NOTE: THIS CLASS IS EXPERIMENTAL.**

This sink simply calls file_handler.write(record.encode('utf8') + '\n') on all
records that come into it.
"""
Expand Down