Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ParallelScanIterator<T>

Iterates over each item returned by a parallel DynamoDB scan until no more pages are available.

Type parameters

  • T

Hierarchy

Implements

  • AsyncIterableIterator<T>

Index

Constructors

constructor

Properties

Protected Optional lastYielded

lastYielded: T

Accessors

consumedCapacity

  • get consumedCapacity(): ConsumedCapacity | undefined
  • Retrieve the reported capacity consumed by this iterator. Will be undefined unless returned consumed capacity is requested.

    Returns ConsumedCapacity | undefined

count

  • get count(): number
  • Retrieve the number of items yielded thus far by this iterator.

    Returns number

scannedCount

  • get scannedCount(): number
  • Retrieve the number of items scanned thus far during the execution of this iterator. This number should be the same as count unless a filter expression was used.

    Returns number

Methods

__@asyncIterator

  • __@asyncIterator(): this

next

  • next(): Promise<IteratorResult<T>>

pages

  • Detaches the underlying paginator from this iterator and returns it. The paginator will yield arrays of unmarshalled items, with each yielded array corresponding to a single call to the underlying API. As with the underlying API, pages may contain a variable number of items or no items, in which case an empty array will be yielded.

    Calling this method will disable further iteration.

    Returns ParallelScanPaginator<T>

return

  • return(): Promise<IteratorResult<T>>