File: //usr/lib/python3/dist-packages/boto/dynamodb/__pycache__/layer2.cpython-310.pyc
o
ckF[� � @ s| d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z m
Z
d dlmZm
Z
mZmZ G dd� de�ZG d d
� d
e�ZdS )� )�Layer1)�Table)�Schema)�Item)� BatchList�BatchWriteList)�get_dynamodb_type� Dynamizer�LossyFloatDynamizer�NonBooleanDynamizerc @ sX e Zd ZdZdd� Zedd� �Zedd� �Zedd � �Zed
d� �Z dd
� Z
dd� ZdS )�TableGeneratora
This is an object that wraps up the table_generator function.
The only real reason to have this is that we want to be able
to accumulate and return the ConsumedCapacityUnits element that
is part of each response.
:ivar last_evaluated_key: A sequence representing the key(s)
of the item last evaluated, or None if no additional
results are available.
:ivar remaining: The remaining quantity of results requested.
:ivar table: The table to which the call was made.
c C sL || _ || _|d u rdn|| _|| _|| _d| _d | _d| _d| _d | _ d S )N���� r )
�table�callable� remaining�
item_class�kwargs�_consumed_units�last_evaluated_key�_count�_scanned_count� _response)�selfr r r r r � r �6/usr/lib/python3/dist-packages/boto/dynamodb/layer2.py�__init__0 s
zTableGenerator.__init__c C � | j | jS )z�
The total number of items retrieved thus far. This value changes with
iteration and even when issuing a call with count=True, it is necessary
to complete the iteration to assert an accurate count value.
)�responser �r r r r �count<