class LoadResult:
The outcome of Gateway.load_data.
Each reported entity's index is its position in its class's data file, so entities without an id can still be located.
| Instance Variable | class |
Per class, the exception that stopped its file being loaded at all (e.g. a json.JSONDecodeError for invalid JSON, or a ValueError for a malformed entity id). |
| Instance Variable | failed |
Per class, the entities that were not written and why (see FailedWrite.rejected for which need correcting). |
| Instance Variable | loaded |
The number of entities confirmed as written. |
| Instance Variable | remaining |
The classes not attempted because the load stopped early, in the order they would have been loaded. Only a result attached to an AuthenticationError or TokenRequestError has any. |
| Instance Variable | skipped |
Per class, why it was not loaded: no data file, an empty one, or (for a single requested class) no dataset. Base classes, whose data loads via their subclasses, are not included. |
| Instance Variable | timed |
Per class, the entities whose write timed out and may or may not have completed (see PutResult.timed_out for how to verify them before reloading). |
| Instance Variable | unsent |
Per class, the entities not written because the load stopped early on an AuthenticationError or TokenRequestError (see PutResult.unsent). Only a result attached to such an error (as its result) has any. |
| Property | failed |
The total number of entities that were not written. |
| Property | ok |
True when every entity found was confirmed as written. |
| Property | timed |
The total number of entities whose write timed out. |
| Property | unsent |
The total number of entities not written because the load stopped early. |
Per class, the exception that stopped its file being
loaded at all (e.g. a json.JSONDecodeError for invalid JSON, or a
ValueError for a malformed entity id).
Per class, the entities that were not written and why
(see FailedWrite.rejected for which need correcting).
The classes not attempted because the load stopped
early, in the order they would have been loaded. Only a result
attached to an AuthenticationError or TokenRequestError has any.
Per class, why it was not loaded: no data file, an empty one, or (for a single requested class) no dataset. Base classes, whose data loads via their subclasses, are not included.
Per class, the entities whose write timed out and may or
may not have completed (see PutResult.timed_out for how to verify
them before reloading).
Per class, the entities not written because the load
stopped early on an AuthenticationError or TokenRequestError
(see PutResult.unsent). Only a result attached to such an error (as
its result) has any.
True when every entity found was confirmed as written.
Skipped classes do not affect this: a class with no data file has nothing to load.