Package

com.salesforce.op

testkit

Permalink

package testkit

Visibility
  1. Public
  2. All

Type Members

  1. trait InfiniteStream[+T] extends Iterator[T] with Serializable

    Permalink

    Generates data of given type; it never ends, and it's not resettable.

    Generates data of given type; it never ends, and it's not resettable. If you want to generate the same data again, instantiate a new generator with the same seed.

  2. trait PartiallyDefined extends AnyRef

    Permalink

    An aspect consisting of something being defined

  3. trait ProbabilityOfEmpty extends PartiallyDefined

    Permalink

    This trait allows the value to be empty

  4. case class RandomBinary(probabilityOfSuccess: Double) extends StandardRandomData[Binary] with ProbabilityOfEmpty with Product with Serializable

    Permalink

    Generates Binary FeatureType, that is, a stream of Booleans wrapped as FeatureType

    Generates Binary FeatureType, that is, a stream of Booleans wrapped as FeatureType

    probabilityOfSuccess

    the ratio of true values in the stream

  5. trait RandomData[FT <: FeatureType] extends InfiniteStream[FT] with PartiallyDefined

    Permalink

    Generates random data of given feature type; it never ends, and it's not resettable.

    Generates random data of given feature type; it never ends, and it's not resettable. If you want to generate the same data again, instantiate a new generator with the same seed.

    FT

    specific feature type

  6. case class RandomIntegral[DataType <: Integral](numbers: RandomStream[Long])(implicit evidence$1: scala.reflect.api.JavaUniverse.WeakTypeTag[DataType]) extends StandardRandomData[DataType] with ProbabilityOfEmpty with Product with Serializable

    Permalink

    Generator of data as integral numbers

    Generator of data as integral numbers

    DataType

    the feature type of the data generated

    numbers

    the stream of longs used as the source

  7. case class RandomList[DataType, ListType <: OPList[DataType]](values: RandomStream[Seq[DataType]])(implicit evidence$1: scala.reflect.api.JavaUniverse.WeakTypeTag[ListType]) extends StandardRandomData[ListType] with Product with Serializable

    Permalink

    Generator of lists

    Generator of lists

    DataType

    the type of data in lists

    ListType

    the feature type of the data generated

    values

    the stream of values used as the source

  8. case class RandomMap[DataType, MapType <: OPMap[DataType]](values: RandomStream[Seq[DataType]], keys: (Int) ⇒ String = "k" +, sources: Iterable[RandomData[_]] = None)(implicit evidence$1: scala.reflect.api.JavaUniverse.WeakTypeTag[MapType]) extends StandardRandomData[MapType] with Product with Serializable

    Permalink

    Generator of maps

    Generator of maps

    DataType

    the type of data in lists

    MapType

    the feature type of the data generated

    values

    the stream of values used as the source

  9. case class RandomReal[DataType <: Real](randomValues: RandomDataGenerator[Double], rng: Random = new Random)(implicit evidence$1: scala.reflect.api.JavaUniverse.WeakTypeTag[DataType]) extends FeatureFactoryOwner[DataType] with RandomData[DataType] with ProbabilityOfEmpty with Product with Serializable

    Permalink

    Generator of data as real numbers

    Generator of data as real numbers

    DataType

    the feature type of the data generated

    randomValues

    the rng (from spark) that generates doubles with the specified distribution

  10. case class RandomSet[DataType, SetType <: OPSet[DataType]](values: RandomStream[Set[DataType]])(implicit evidence$1: scala.reflect.api.JavaUniverse.WeakTypeTag[SetType]) extends StandardRandomData[SetType] with Product with Serializable

    Permalink

    Generator of sets

    Generator of sets

    DataType

    the type of data in sets

    SetType

    the feature type of the data generated

    values

    the stream of longs used as the source

  11. case class RandomStream[+T](producer: (Random) ⇒ T) extends (Random) ⇒ InfiniteStream[T] with Serializable with Product

    Permalink

    Random stream of data of given type T

    Random stream of data of given type T

    T

    the type of result

    producer

    a function that, given an RND, produces one value of type T

  12. case class RandomText[DataType <: Text](stream: RandomStream[String])(implicit evidence$1: scala.reflect.api.JavaUniverse.WeakTypeTag[DataType]) extends StandardRandomData[DataType] with ProbabilityOfEmpty with Product with Serializable

    Permalink

    Generator of random text-related FeatureTypes

    Generator of random text-related FeatureTypes

    DataType

    the type of generated results, a FeatureType that is a subtype of Text

    stream

    produces a stream of random strings

  13. case class RandomVector(values: RandomStream[Vector]) extends StandardRandomData[OPVector] with Product with Serializable

    Permalink

    Generator of vectors

    Generator of vectors

    values

    the stream of longs used as the source

  14. abstract class StandardRandomData[FT <: FeatureType] extends FeatureFactoryOwner[FT] with RandomData[FT]

    Permalink

    Data generator that uses standard Random

Value Members

  1. object DataSources

    Permalink

    References a bunch of geographic, statistical etc data.

    References a bunch of geographic, statistical etc data.

    See testkit/README.md in resources for the origins of data

  2. object RandomIntegral extends Serializable

    Permalink

    Generator of data as integral numbers

  3. object RandomList extends Serializable

    Permalink
  4. object RandomMap extends Serializable

    Permalink
  5. object RandomMultiPickList

    Permalink
  6. object RandomReal extends Serializable

    Permalink
  7. object RandomSet extends Serializable

    Permalink
  8. object RandomStream extends Serializable

    Permalink

    Random streams factory: bits, longs, doubles etc.

  9. object RandomText extends Serializable

    Permalink

    Generators of all kinds of random text data

  10. object RandomVector extends Serializable

    Permalink

Ungrouped