Skip to content

Commit 31b469b

Browse files
committed
Add information about length conversion
1 parent 560aa8d commit 31b469b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

sdks/python/apache_beam/io/filebasedio_perf_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ class SyntheticRecordToStrFn(beam.DoFn):
7373
"""
7474
A DoFn that convert key-value bytes from synthetic source to string record.
7575
76+
It uses base64 to convert random bytes emitted from the synthetic source.
77+
Therefore, every 3 bytes give 4 bytes long ascii characters.
78+
7679
Output length = 4(ceil[len(key)/3] + ceil[len(value)/3]) + 1
7780
"""
7881
def process(self, element):

0 commit comments

Comments
 (0)