Packages

case class SamplingScan(limit: Long, seed: Long = Random.nextLong()) extends ScanType with Product with Serializable

Samples documents randomly from the collection until reaching limit documents.

seed

seed for the random number generator that selects the documents. If not specified, defaults to a random number. CAVEAT: Specifying the same seed does not guarantee the same documents are selected.

Linear Supertypes
Serializable, Product, Equals, ScanType, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SamplingScan
  2. Serializable
  3. Product
  4. Equals
  5. ScanType
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SamplingScan(limit: Long, seed: Long = Random.nextLong())

    seed

    seed for the random number generator that selects the documents. If not specified, defaults to a random number. CAVEAT: Specifying the same seed does not guarantee the same documents are selected.

Value Members

  1. val limit: Long
  2. def productElementNames: Iterator[String]
    Definition Classes
    Product
  3. val seed: Long