sealed trait ResultPager[TReq, TRes] extends Iterator[Item]
The ResultPager allows iteration over the results from a DynamoDB query/scan as a single stream of items, handling the necessary paging details in the background.
DynamoDB paginates the result of query/scan operations. The data returned from a Query or Scan operation is limited to 1 MB; this means that if the result set exceeds 1 MB of data, you'll need to perform another Query or Scan operation to retrieve the next 1 MB of data. In addition, the limit parameter controls the number of items that you want DynamoDB to process in a single request before returning results. See http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/QueryAndScan.html#Pagination
Each response from DynamoDB indicates if the processing has reached the end of the dataset, or if another request is needed in order to continue scanning where the last request finished.
When the items from a page is exhausted, the ResultPager will issue a new query/scan for the next page of results, until processing reaches the end of the dataset, or the client stops iterating over the result (as the return value is a Stream[Item])
- Alphabetic
- By Inheritance
- ResultPager
- Iterator
- IterableOnceOps
- IterableOnce
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]]
- Definition Classes
- Iterator
Abstract Value Members
- abstract def getCount(result: TRes): Int
- abstract def getItems(result: TRes): List[Map[String, com.amazonaws.services.dynamodbv2.model.AttributeValue]]
- abstract def getLastEvaluatedKey(result: TRes): Map[String, com.amazonaws.services.dynamodbv2.model.AttributeValue]
- abstract def invokeCallback(result: TRes): Unit
- abstract def operation: (TReq) => TRes
- abstract def request: TReq
- abstract def table: Table
- abstract def withExclusiveStartKey(request: TReq, lastKey: Map[String, com.amazonaws.services.dynamodbv2.model.AttributeValue]): TReq
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ++[B >: Item](xs: => IterableOnce[B]): Iterator[B]
- Definition Classes
- Iterator
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def addString(b: StringBuilder): StringBuilder
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def addString(b: StringBuilder, sep: String): StringBuilder
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
- Definition Classes
- IterableOnceOps
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def buffered: BufferedIterator[Item]
- Definition Classes
- Iterator
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def collect[B](pf: PartialFunction[Item, B]): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def collectFirst[B](pf: PartialFunction[Item, B]): Option[B]
- Definition Classes
- IterableOnceOps
- def concat[B >: Item](xs: => IterableOnce[B]): Iterator[B]
- Definition Classes
- Iterator
- def contains(elem: Any): Boolean
- Definition Classes
- Iterator
- def copyToArray[B >: Item](xs: Array[B], start: Int, len: Int): Int
- Definition Classes
- IterableOnceOps
- def copyToArray[B >: Item](xs: Array[B], start: Int): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding("This should always forward to the 3-arg version of this method", "2.13.4")
- def copyToArray[B >: Item](xs: Array[B]): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding("This should always forward to the 3-arg version of this method", "2.13.4")
- def corresponds[B](that: IterableOnce[B])(p: (Item, B) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def count(p: (Item) => Boolean): Int
- Definition Classes
- IterableOnceOps
- def distinct: Iterator[Item]
- Definition Classes
- Iterator
- def distinctBy[B](f: (Item) => B): Iterator[Item]
- Definition Classes
- Iterator
- def drop(n: Int): Iterator[Item]
- Definition Classes
- Iterator → IterableOnceOps
- def dropWhile(p: (Item) => Boolean): Iterator[Item]
- Definition Classes
- Iterator → IterableOnceOps
- def duplicate: (Iterator[Item], Iterator[Item])
- Definition Classes
- Iterator
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exists(p: (Item) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def filter(p: (Item) => Boolean): Iterator[Item]
- Definition Classes
- Iterator → IterableOnceOps
- def filterNot(p: (Item) => Boolean): Iterator[Item]
- Definition Classes
- Iterator → IterableOnceOps
- def find(p: (Item) => Boolean): Option[Item]
- Definition Classes
- IterableOnceOps
- def flatMap[B](f: (Item) => IterableOnce[B]): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def flatten[B](implicit ev: (Item) => IterableOnce[B]): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def fold[A1 >: Item](z: A1)(op: (A1, A1) => A1): A1
- Definition Classes
- IterableOnceOps
- def foldLeft[B](z: B)(op: (B, Item) => B): B
- Definition Classes
- IterableOnceOps
- def foldRight[B](z: B)(op: (Item, B) => B): B
- Definition Classes
- IterableOnceOps
- def forall(p: (Item) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def foreach[U](f: (Item) => U): Unit
- Definition Classes
- IterableOnceOps
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def grouped[B >: Item](size: Int): GroupedIterator[B]
- Definition Classes
- Iterator
- def hasNext: Boolean
- Definition Classes
- ResultPager → Iterator
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val index: Int
- def indexOf[B >: Item](elem: B, from: Int): Int
- Definition Classes
- Iterator
- def indexOf[B >: Item](elem: B): Int
- Definition Classes
- Iterator
- def indexWhere(p: (Item) => Boolean, from: Int): Int
- Definition Classes
- Iterator
- def isEmpty: Boolean
- Definition Classes
- Iterator → IterableOnceOps
- Annotations
- @deprecatedOverriding("isEmpty is defined as !hasNext; override hasNext instead", "2.13.0")
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraversableAgain: Boolean
- Definition Classes
- IterableOnceOps
- val items: Seq[Item]
- final def iterator: Iterator[Item]
- Definition Classes
- Iterator → IterableOnce
- Annotations
- @inline()
- def knownSize: Int
- Definition Classes
- IterableOnce
- val lastKey: Map[String, com.amazonaws.services.dynamodbv2.model.AttributeValue]
- final def length: Int
- Definition Classes
- Iterator
- Annotations
- @inline()
- def map[B](f: (Item) => B): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def max[B >: Item](implicit ord: Ordering[B]): Item
- Definition Classes
- IterableOnceOps
- def maxBy[B](f: (Item) => B)(implicit cmp: Ordering[B]): Item
- Definition Classes
- IterableOnceOps
- def maxByOption[B](f: (Item) => B)(implicit cmp: Ordering[B]): Option[Item]
- Definition Classes
- IterableOnceOps
- def maxOption[B >: Item](implicit ord: Ordering[B]): Option[Item]
- Definition Classes
- IterableOnceOps
- def min[B >: Item](implicit ord: Ordering[B]): Item
- Definition Classes
- IterableOnceOps
- def minBy[B](f: (Item) => B)(implicit cmp: Ordering[B]): Item
- Definition Classes
- IterableOnceOps
- def minByOption[B](f: (Item) => B)(implicit cmp: Ordering[B]): Option[Item]
- Definition Classes
- IterableOnceOps
- def minOption[B >: Item](implicit ord: Ordering[B]): Option[Item]
- Definition Classes
- IterableOnceOps
- final def mkString: String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(sep: String): String
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def mkString(start: String, sep: String, end: String): String
- Definition Classes
- IterableOnceOps
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def next(): Item
- Definition Classes
- ResultPager → Iterator
- def nextOption(): Option[Item]
- Definition Classes
- Iterator
- def nonEmpty: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding("nonEmpty is defined as !isEmpty; override isEmpty instead", "2.13.0")
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def padTo[B >: Item](len: Int, elem: B): Iterator[B]
- Definition Classes
- Iterator
- val pageNo: Int
- def partition(p: (Item) => Boolean): (Iterator[Item], Iterator[Item])
- Definition Classes
- Iterator
- def patch[B >: Item](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
- Definition Classes
- Iterator
- def product[B >: Item](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- def reduce[B >: Item](op: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeft[B >: Item](op: (B, Item) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeftOption[B >: Item](op: (B, Item) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceOption[B >: Item](op: (B, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceRight[B >: Item](op: (Item, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceRightOption[B >: Item](op: (Item, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reversed: Iterable[Item]
- Attributes
- protected
- Definition Classes
- IterableOnceOps
- def sameElements[B >: Item](that: IterableOnce[B]): Boolean
- Definition Classes
- Iterator
- def scanLeft[B](z: B)(op: (B, Item) => B): Iterator[B]
- Definition Classes
- Iterator → IterableOnceOps
- def size: Int
- Definition Classes
- IterableOnceOps
- def slice(from: Int, until: Int): Iterator[Item]
- Definition Classes
- Iterator → IterableOnceOps
- def sliceIterator(from: Int, until: Int): Iterator[Item]
- Attributes
- protected
- Definition Classes
- Iterator
- def sliding[B >: Item](size: Int, step: Int): GroupedIterator[B]
- Definition Classes
- Iterator
- def span(p: (Item) => Boolean): (Iterator[Item], Iterator[Item])
- Definition Classes
- Iterator → IterableOnceOps
- def splitAt(n: Int): (Iterator[Item], Iterator[Item])
- Definition Classes
- IterableOnceOps
- def stepper[S <: Stepper[_]](implicit shape: StepperShape[Item, S]): S
- Definition Classes
- IterableOnce
- def sum[B >: Item](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def take(n: Int): Iterator[Item]
- Definition Classes
- Iterator → IterableOnceOps
- def takeWhile(p: (Item) => Boolean): Iterator[Item]
- Definition Classes
- Iterator → IterableOnceOps
- def tapEach[U](f: (Item) => U): Iterator[Item]
- Definition Classes
- Iterator → IterableOnceOps
- def to[C1](factory: Factory[Item, C1]): C1
- Definition Classes
- IterableOnceOps
- def toArray[B >: Item](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- IterableOnceOps
- final def toBuffer[B >: Item]: Buffer[B]
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def toIndexedSeq: IndexedSeq[Item]
- Definition Classes
- IterableOnceOps
- def toList: List[Item]
- Definition Classes
- IterableOnceOps
- def toMap[K, V](implicit ev: <:<[Item, (K, V)]): Map[K, V]
- Definition Classes
- IterableOnceOps
- def toSeq: Seq[Item]
- Definition Classes
- IterableOnceOps
- def toSet[B >: Item]: Set[B]
- Definition Classes
- IterableOnceOps
- def toString(): String
- Definition Classes
- Iterator → AnyRef → Any
- def toVector: Vector[Item]
- Definition Classes
- IterableOnceOps
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def withFilter(p: (Item) => Boolean): Iterator[Item]
- Definition Classes
- Iterator
- def zip[B](that: IterableOnce[B]): Iterator[(Item, B)]
- Definition Classes
- Iterator
- def zipAll[A1 >: Item, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]
- Definition Classes
- Iterator
- def zipWithIndex: Iterator[(Item, Int)]
- Definition Classes
- Iterator → IterableOnceOps
Deprecated Value Members
- final def /:[B](z: B)(op: (B, Item) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldLeft instead of /:
- final def :\[B](z: B)(op: (Item, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldRight instead of :\
- def aggregate[B](z: => B)(seqop: (B, Item) => B, combop: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0)
aggregate
is not relevant for sequential collections. UsefoldLeft(z)(seqop)
instead.
- final def copyToBuffer[B >: Item](dest: Buffer[B]): Unit
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
dest ++= coll
instead
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
- final def hasDefiniteSize: Boolean
- Definition Classes
- Iterator → IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) hasDefiniteSize on Iterator is the same as isEmpty
- def scanRight[B](z: B)(op: (Item, B) => B): Iterator[B]
- Definition Classes
- Iterator
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Call scanRight on an Iterable instead.
- def seq: ResultPager.this.type
- Definition Classes
- Iterator
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Iterator.seq always returns the iterator itself
- final def toIterator: Iterator[Item]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator instead of .toIterator
- final def toStream: Stream[Item]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .to(LazyList) instead of .toStream