case class Content[+Row](xs: ParIterable[Row]) extends Product with Serializable

Class to represent the rows of a Table.

At present, the rows are implemented as a ParIterable. However, we might later change the internal representation; thus xs is private.

In general, however, you should probably expect that storing rows inside Content will force an aggregation of all rows. There are alternatives (using InputProcessor) that allow you to process an Iterator[Input] and yield an Iterator[Row].

Row

the underlying Row type.

xs

a ParIterable[Row].

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

Instance Constructors

  1. new Content(xs: ParIterable[Row])

    xs

    a ParIterable[Row].

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++[B >: Row](other: Content[B]): Content[B]

    Method to concatenate two Contents.

    Method to concatenate two Contents. CONSIDER perhaps we should use the combiner functionality more directly? (It's what the ++ method uses).

    B

    the underlying type of the other Content and the result. Must be a super-type of Row.

    other

    the other Content.

    returns

    Content[B].

  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def drop(n: Int): Content[Row]

    Drops the first n elements from the underlying collection xs and returns a new Content instance containing the remaining elements.

    Drops the first n elements from the underlying collection xs and returns a new Content instance containing the remaining elements.

    The method does not modify the original collection but instead creates a new Content instance with the result of the drop operation applied to xs.

    n

    the number of elements to drop from the start of the collection. If n is greater than the size of the collection, an empty Content is returned.

    returns

    a new Content[Row] containing the elements of the collection after dropping the first n elements.

  8. def dropWhile(p: (Row) => Boolean): Content[Row]

    Drops elements from this Content[Row] collection as long as the given predicate p evaluates to true, and returns the remaining elements wrapped in a new Content.

    Drops elements from this Content[Row] collection as long as the given predicate p evaluates to true, and returns the remaining elements wrapped in a new Content.

    The elements are checked in their order, and once the predicate returns false for the first time, no further elements are dropped, and the remaining elements are included in the resulting Content.

    p

    a predicate function of type Row => Boolean. This function determines whether an element should be dropped. Elements for which the predicate returns true are removed from the start of the collection.

    returns

    a new Content[Row] containing the elements of this Content after all leading elements satisfying the predicate p have been removed.

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def filter(p: (Row) => Boolean): Content[Row]

    Filters the rows in this content based on the given predicate.

    Filters the rows in this content based on the given predicate.

    p

    a predicate function that determines whether a given Row should be included in the resulting Content. The function should return true for rows that should be included and false otherwise.

    returns

    a new Content[Row] containing only the rows from this content that satisfy the given predicate.

  11. def filterNot(p: (Row) => Boolean): Content[Row]

    Filters the rows of this Content[Row] by removing those that satisfy the given predicate function.

    Filters the rows of this Content[Row] by removing those that satisfy the given predicate function.

    p

    the predicate function that determines whether a Row should be excluded. Rows for which this function evaluates to true will be excluded from the resulting Content.

    returns

    a new Content[Row] containing only the rows that do not satisfy the given predicate function.

  12. def flatMap[B](f: (Row) => ParIterable[B]): Content[B]

    This is not, strictly speaking, the correct definition of flatMap for allowing Content to be a monad.

    This is not, strictly speaking, the correct definition of flatMap for allowing Content to be a monad.

    B

    the underlying type of the result.

    f

    a function of type Row=>ParIterable[B]

    returns

    a Content[B].

  13. def foldLeft[B](z: B)(op: (B, Row) => B): B

    Applies a binary operator to a start value and all elements of the underlying collection xs, going left to right, and returns a reduced value.

    Applies a binary operator to a start value and all elements of the underlying collection xs, going left to right, and returns a reduced value.

    This method performs a fold operation, where the initial value is provided by z and the binary operator op is applied successively to combine elements of the collection with the accumulated result.

    z

    The initial value of the fold operation.

    op

    A binary operator function that takes the current accumulated result and the next element of the collection, returning a new accumulated result. The function has the type (B, Row) => B, where B is the type of the accumulated result, and Row represents elements of the collection.

    returns

    The result of applying the fold operation over all elements of the collection. The result type is B.

  14. def foreach(f: (Row) => Unit): Unit

    Applies the given function f to each Row element in the collection.

    Applies the given function f to each Row element in the collection.

    This method iterates over all elements in the underlying sequence xs and applies the specified function f to each of them.

    f

    a function of type Row => Unit that is applied to each row in the collection. The function is invoked for its side effects on each element.

    returns

    Unit as this method is intended for side-effectful operations.

  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def head: Row

    This should be used only by unit tests and not by code.

    This should be used only by unit tests and not by code.

    returns

    the first element of xs.

  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def iterator: Iterator[Row]

    Provides an iterator to traverse the rows in this content.

    Provides an iterator to traverse the rows in this content. NOTE: do not expect an iterator on Content to be in any particular order.

    returns

    an Iterator over the Row elements of this content in their current order.

  19. def knownSize: Int

    Returns the known size of the collection underlying this Content instance.

    Returns the known size of the collection underlying this Content instance. If the size is known, the method will return the exact size. Otherwise, it will return -1.

    returns

    the known size of the collection, or -1 if the size cannot be determined.

  20. def map[B](f: (Row) => B): Content[B]

    Transforms each element in the current Content collection using the given function f.

    Transforms each element in the current Content collection using the given function f.

    f

    A function that takes an element of type Row and produces a new element of type B.

    returns

    A new Content instance containing the transformed elements of type B.

  21. def mapOptional[S](f: (Row) => Option[S]): Content[S]

    Transform (flatMap) this Table[Row] into a Table[S].

    Transform (flatMap) this Table[Row] into a Table[S].

    S

    the type of the rows of the result.

    f

    a function which transforms a Row into an IterableOnce[S].

    returns

    a Table[S] which is made up of a concatenation of the results of invoking f on each row this

  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. def productElementNames: Iterator[String]
    Definition Classes
    Product
  26. def sample(n: Int)(implicit random: Random): Content[Row]

    Method to randomly sample from this Content.

    Method to randomly sample from this Content.

    n

    the odds against choosing any particular element.

    random

    an (implicit) Random number generator.

    returns

    a new Content[Row] with approximately size/n elements.

  27. def size: Int

    Method to get the number of elements in the underlying collection xs.

    Method to get the number of elements in the underlying collection xs.

    returns

    the size of the collection as an integer.

  28. def slice(from: Int, until: Int): Content[Row]

    Produces a slice of the content by extracting elements within the specified range.

    Produces a slice of the content by extracting elements within the specified range.

    This method creates a new Content[Row] that contains elements from index from (inclusive) to index until (exclusive) of the underlying collection xs. If the range specified by from and until exceeds the bounds of the underlying collection, the slicing will silently handle it and only include the valid indices.

    from

    the starting index (inclusive) of the slice.

    until

    the ending index (exclusive) of the slice.

    returns

    a new Content[Row] containing the elements in the specified range.

  29. def sorted[S >: Row](implicit arg0: Ordering[S]): Content[S]

    Method to transform this Content[Row] into a sorted Content[S] where S is a super-class of Row and for which there is evidence of Ordering[S].

    Method to transform this Content[Row] into a sorted Content[S] where S is a super-class of Row and for which there is evidence of Ordering[S].

    S

    the underlying type of the resulting Table (a super-type of Row and for which there is evidence of Ordering[S]).

    returns

    a Content[S].

  30. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  31. def take(n: Int): Content[Row]

    Returns a new Content[Row] containing the first n elements from the current Content[Row].

    Returns a new Content[Row] containing the first n elements from the current Content[Row].

    If n is greater than the size of the underlying collection, all elements from the collection will be included in the returned Content[Row]. If n is less than or equal to zero, the result will be an empty Content[Row].

    n

    the number of elements to take from the beginning of the underlying collection. Must be a non-negative integer.

    returns

    a new Content[Row] containing up to the first n elements from the current content.

  32. def takeWhile(p: (Row) => Boolean): Content[Row]

    Selects elements from the beginning of the underlying collection of rows, as long as they satisfy the specified predicate.

    Selects elements from the beginning of the underlying collection of rows, as long as they satisfy the specified predicate. The operation stops as soon as a row is encountered that does not meet the condition.

    p

    a predicate function of type Row => Boolean that determines whether a row should be included. The function should return true to select the row and false to stop further selection.

    returns

    a new Content[Row] containing the rows from the start of the collection that satisfy the given predicate.

  33. def toArray[B >: Row](implicit arg0: ClassTag[B]): Array[B]

    Converts the underlying collection of elements to an array.

    Converts the underlying collection of elements to an array.

    B

    the type of elements in the resulting array. It must be a supertype of Row and have an implicit ClassTag.

    returns

    an array containing all elements of the collection.

  34. def toIndexedSeq: IndexedSeq[Row]

    Converts the content of xs into an IndexedSeq[Row].

    Converts the content of xs into an IndexedSeq[Row].

    returns

    an IndexedSeq containing all elements of xs.

  35. def toSeq: Seq[Row]

    Converts the underlying collection of rows to a sequence.

    Converts the underlying collection of rows to a sequence.

    returns

    a sequence (Seq[Row]) containing the rows of the content.

  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped