File: //lib/python3/dist-packages/boto/dynamodb/__pycache__/layer2.cpython-312.pyc
�
ckF[� � � � d dl mZ d dlmZ d dlmZ d dlmZ d dlm Z m
Z
d dlmZm
Z
mZmZ G d� de� Z G d � d
e� Zy)� )�Layer1)�Table)�Schema)�Item)� BatchList�BatchWriteList)�get_dynamodb_type� Dynamizer�LossyFloatDynamizer�NonBooleanDynamizerc �b � e Zd ZdZd� Zed� � Zed� � Zed� � Zed� � Z d� Z
d� Zy )
�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 � � || _ || _ |�dn|| _ || _ || _ d| _ d | _ d| _ d| _ d | _ y )N���� r )
�table�callable� remaining�
item_class�kwargs�_consumed_units�last_evaluated_key�_count�_scanned_count� _response)�selfr r r r r s �6/usr/lib/python3/dist-packages/boto/dynamodb/layer2.py�__init__zTableGenerator.__init__0 sR � ���
� ��
�(�0��i���$������"���"&������������ c �2 � | j | j S )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 s r �countzTableGenerator.count<