[
https://issues.apache.org/jira/browse/BEAM-3342?focusedWorklogId=240427&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-240427
]
ASF GitHub Bot logged work on BEAM-3342:
----------------------------------------
Author: ASF GitHub Bot
Created on: 10/May/19 21:26
Start Date: 10/May/19 21:26
Worklog Time Spent: 10m
Work Description: mf2199 commented on pull request #8457: [BEAM-3342]
Initial version of Google Cloud Bigtable IO connector
URL: https://github.com/apache/beam/pull/8457#discussion_r283047761
##########
File path: sdks/python/apache_beam/io/gcp/bigtableio.py
##########
@@ -141,3 +148,129 @@ def expand(self, pvalue):
| beam.ParDo(_BigTableWriteFn(beam_options['project_id'],
beam_options['instance_id'],
beam_options['table_id'])))
+
+
+class BigtableSource(iobase.BoundedSource):
+ def __init__(self, project_id, instance_id, table_id, filter_=None):
+ """ Constructor of the Read connector of Bigtable
+
+ Args:
+ project_id: [string] GCP Project of to write the Rows
+ instance_id: [string] GCP Instance to write the Rows
+ table_id: [string] GCP Table to write the `DirectRows`
+ filter_: [RowFilter] Filter to apply to columns in a row.
+ """
+ super(self.__class__, self).__init__()
+ self._init({'project_id': project_id,
+ 'instance_id': instance_id,
+ 'table_id': table_id,
+ 'filter_': filter_})
+
+ def __getstate__(self):
+ return self.beam_options
+
+ def __setstate__(self, options):
+ self._init(options)
+
+ def _init(self, options):
+ self.beam_options = options
Review comment:
Done.
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 240427)
Time Spent: 21h 20m (was: 21h 10m)
> Create a Cloud Bigtable Python connector
> ----------------------------------------
>
> Key: BEAM-3342
> URL: https://issues.apache.org/jira/browse/BEAM-3342
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core
> Reporter: Solomon Duskis
> Assignee: Solomon Duskis
> Priority: Major
> Time Spent: 21h 20m
> Remaining Estimate: 0h
>
> I would like to create a Cloud Bigtable python connector.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)