CURRENT PATH:
/
opt
/
gsutil
/
gslib
/
__pycache__
/
[ ⬅ KEMBALI ]
|
[ HOME ]
Upload File:
Upload Ke Sini
Dir Baru
File Baru
Editing:
seek_ahead_thread.cpython-39.pyc
a +(Wgt � @ s� d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlZddlZddlm Z ddl mZ dd l mZ ej ZG d d� de�ZG dd � d ej�ZdS )zIThreading code for estimating total work of long-running gsutil commands.� )�absolute_import)�print_function)�division)�unicode_literalsN)�thread_message)� constants)�parallelism_framework_utilc @ s e Zd ZdZddd�ZdS )�SeekAheadResultz�Result class for seek_ahead_iterator results. A class is used instead of a namedtuple, making it easier to document and use default keyword arguments. � r c C s || _ || _dS )a� Create a SeekAheadResult. Args: est_num_ops: Number of operations the iterated result represents. Operation is loosely defined as a single API call for a single object. The total number of API calls may not be known at the time of iteration, so this number is approximate. data_bytes: Number of data bytes that will be transferred (uploaded, downloaded, or rewritten) for this iterated result. N)�est_num_ops� data_bytes)�selfr r � r �&/opt/gsutil/gslib/seek_ahead_thread.py�__init__'