class documentation

Positions in the data passed to Client.put, shown as inclusive ranges in ascending order.

str(Positions.of(result.timed_out)) gives e.g. #100-199, #250: a compact summary for when the entities need no correcting, so listing each one would be noise. The ranges are only worked out when it is converted to a string, so a log message that is not emitted costs nothing to build.

Class Method of The positions of entities, e.g. the timed_out of a PutResult.
Class Method span The positions from first to last inclusive, e.g. those of one batch.
Method __str__ Undocumented
Instance Variable indices The distinct positions, in any order.
@classmethod
def of(cls, entities: Iterable[_SubmittedEntity]) -> Positions:

The positions of entities, e.g. the timed_out of a PutResult.

@classmethod
def span(cls, first: int, last: int) -> Positions:

The positions from first to last inclusive, e.g. those of one batch.

def __str__(self) -> str:

Undocumented

indices: Sequence[int] =

The distinct positions, in any order.