abstract class RenderableTable[Row] extends Table[Row] with TableRenderable[Row]
CONSIDER eliminating this base class or, perhaps, rename it.
- Row
the underlying type of each Row
- Self Type
- RenderableTable[Row]
- Alphabetic
- By Inheritance
- RenderableTable
- TableRenderable
- Table
- Iterable
- IterableFactoryDefaults
- IterableOps
- IterableOnceOps
- IterableOnce
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
Abstract Value Members
- abstract def column(name: String): Iterator[Option[String]]
Method to get all the elements of a particular column.
Method to get all the elements of a particular column.
Complexity: N + C where N is the number of rows and C is the number of columns.
- name
the column name.
- returns
an Iterator of Option[String].
- Definition Classes
- Table
- abstract def content: Content[Row]
Method to access the individual rows of this table.
Method to access the individual rows of this table.
- returns
the rows, in the same sequence in which they were parsed.
- Definition Classes
- Table
- abstract def unit[S](ss: Iterable[S], maybeHeader: Option[Header]): Table[S]
Method to generate a Table[S] for a set of rows.
Method to generate a Table[S] for a set of rows. Although declared as an instance method, this method produces its result independent of this.
- S
the underlying type of the rows and the result.
- ss
a sequence of S.
- maybeHeader
an optional Header to be used in the resulting Table.
- returns
a new instance of Table[S].
- Definition Classes
- Table
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ++[S >: Row](table: Table[S]): Table[S]
Method to concatenate two Content
Method to concatenate two Content
- S
the type of the rows of the result.
- table
a table to be concatenated with this table.
- returns
a new table, which is concatenated to this table, by rows.
- Definition Classes
- Table
- final def ++[B >: Row](suffix: IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def addString(b: StringBuilder): b.type
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- final def addString(b: StringBuilder, sep: String): b.type
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def addString(b: StringBuilder, start: String, sep: String, end: String): b.type
- Definition Classes
- IterableOnceOps
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def className: String
- Attributes
- protected[this]
- Definition Classes
- Iterable
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def coll: RenderableTable.this.type
- Attributes
- protected
- Definition Classes
- Iterable → IterableOps
- def collect[B](pf: PartialFunction[Row, B]): Iterable[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def collectFirst[B](pf: PartialFunction[Row, B]): Option[B]
- Definition Classes
- IterableOnceOps
- def concat[B >: Row](suffix: IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps
- def copyToArray[B >: Row](dest: Array[B], start: Int, n: Int): Int
- Definition Classes
- IterableOnceOps
- def copyToArray[B >: Row](dest: Array[B], start: Int): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def copyToArray[B >: Row](dest: Array[B]): Int
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- def corresponds[B](that: IterableOnce[B])(p: (Row, B) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def count(p: (Row) => Boolean): Int
- Definition Classes
- IterableOnceOps
- def drop(n: Int): Table[Row]
drop (as defined by Iterable).
drop (as defined by Iterable).
- n
the number of rows to drop.
- returns
a Table like this Table but without its first n rows.
- Definition Classes
- Table → IterableOps → IterableOnceOps
- def dropRight(n: Int): Iterable[Row]
- Definition Classes
- IterableOps
- def dropWhile(p: (Row) => Boolean): Table[Row]
dropWhile (as defined by Iterable).
dropWhile (as defined by Iterable).
- p
the predicate.
- returns
a Table like this Table but with dropWhile(p) rows.
- Definition Classes
- Table → IterableOps → IterableOnceOps
- def empty: Table[Row]
Method to return an empty Table of type Row.
Method to return an empty Table of type Row.
- returns
a Table[Row] without any rows.
- Definition Classes
- Table → IterableFactoryDefaults → IterableOps
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exists(p: (Row) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def filter(p: (Row) => Boolean): Table[Row]
Method to filter the rows of a table (as defined by Iterable).
Method to filter the rows of a table (as defined by Iterable).
- p
a predicate to be applied to each row.
- returns
a Table[Row] consisting only of rows which satisfy the predicate p.
- Definition Classes
- Table → IterableOps → IterableOnceOps
- def filterByKey[T >: Row](p: (String) => Boolean)(implicit arg0: HasKey[T]): Table[Row]
Filter method which operates on the (primary) key of each row.
Filter method which operates on the (primary) key of each row.
TESTME (probably tested only in it)
- T
a super-class of Row, which provides evidence of HasKey[T].
- p
a predicate which takes a String.
- returns
a filtered Table[Row].
- Definition Classes
- Table
- def filterNot(p: (Row) => Boolean): Table[Row]
Method to filter out the rows of a table (as defined by Iterable).
Method to filter out the rows of a table (as defined by Iterable).
- p
a predicate to be applied to each row.
- returns
a Table[Row] consisting only of rows which do not satisfy the predicate p.
- Definition Classes
- Table → IterableOps → IterableOnceOps
- def filterNotByKey[T >: Row](p: (String) => Boolean)(implicit arg0: HasKey[T]): Table[Row]
Filter method which operates on the (primary) key of each row.
Filter method which operates on the (primary) key of each row.
- T
a super-class of Row, which provides evidence of HasKey[T].
- p
a predicate which takes a String.
- returns
a filtered Table[Row].
- Definition Classes
- Table
- def filterValid(implicit rv: Validity[Row]): Table[Row]
Method to retain only the rows which satisfy the isValid method of ev (i.e.
Method to retain only the rows which satisfy the isValid method of ev (i.e. a Validity[Row]).
- rv
(implicit) a Validity[Row].
- returns
Table[Row] consisting only of rows which satisfy Validity.
- Definition Classes
- Table
- def find(p: (Row) => Boolean): Option[Row]
- Definition Classes
- IterableOnceOps
- def flatMap[S](f: (Row) => Iterable[S]): Table[S]
Transform (flatMap) this Table[Row] into a Table[S].
Transform (flatMap) this Table[Row] into a Table[S].
CONSIDER rewriting this method or redefining it as it can be a major source of inefficiency. In particular, we are doing a ++ operation, which is inherently bad.
- 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
- Definition Classes
- Table
- def flatMap[B](f: (Row) => IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def flatten[B](implicit asIterable: (Row) => IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def fold[A1 >: Row](z: A1)(op: (A1, A1) => A1): A1
- Definition Classes
- IterableOnceOps
- def foldLeft[B](z: B)(op: (B, Row) => B): B
- Definition Classes
- IterableOnceOps
- def foldRight[B](z: B)(op: (Row, B) => B): B
- Definition Classes
- IterableOnceOps
- def forall(p: (Row) => Boolean): Boolean
- Definition Classes
- IterableOnceOps
- def foreach[U](f: (Row) => U): Unit
- Definition Classes
- IterableOnceOps
- def fromSpecific(coll: IterableOnce[Row]): Iterable[Row]
- Attributes
- protected
- Definition Classes
- IterableFactoryDefaults → IterableOps
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def groupBy[K](f: (Row) => K): Map[K, Iterable[Row]]
- Definition Classes
- IterableOps
- def groupMap[K, B](key: (Row) => K)(f: (Row) => B): Map[K, Iterable[B]]
- Definition Classes
- IterableOps
- def groupMapReduce[K, B](key: (Row) => K)(f: (Row) => B)(reduce: (B, B) => B): Map[K, B]
- Definition Classes
- IterableOps
- def grouped(size: Int): Iterator[Iterable[Row]]
- Definition Classes
- IterableOps
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def head: Row
- Definition Classes
- IterableOps
- def headOption: Option[Row]
- Definition Classes
- IterableOps
- def init: Iterable[Row]
- Definition Classes
- IterableOps
- def inits: Iterator[Iterable[Row]]
- Definition Classes
- IterableOps
- def isEmpty: Boolean
- Definition Classes
- IterableOnceOps
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraversableAgain: Boolean
- Definition Classes
- IterableOps → IterableOnceOps
- def iterableFactory: IterableFactory[Iterable]
- Definition Classes
- Iterable → IterableOps
- def iterator: Iterator[Row]
Method to return the rows of this table as an iterator.
Method to return the rows of this table as an iterator.
- returns
the rows in the form of Iterator[Row]
- Definition Classes
- Table → IterableOnce
- def knownSize: Int
- Definition Classes
- IterableOnce
- def last: Row
- Definition Classes
- IterableOps
- def lastOption: Option[Row]
- Definition Classes
- IterableOps
- def lazyZip[B](that: Iterable[B]): LazyZip2[Row, B, RenderableTable.this.type]
- Definition Classes
- Iterable
- def map[S](f: (Row) => S): Table[S]
Transform (map) this Table[Row] into a Table[S].
Transform (map) 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 S.
- returns
a Table[S] where each row has value f(x) where x is the value of the corresponding row in this.
- Definition Classes
- Table → IterableOps → IterableOnceOps
- def mapOptional[S](f: (Row) => Option[S]): Table[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
- Definition Classes
- Table
- def max[B >: Row](implicit ord: Ordering[B]): Row
- Definition Classes
- IterableOnceOps
- def maxBy[B](f: (Row) => B)(implicit ord: Ordering[B]): Row
- Definition Classes
- IterableOnceOps
- def maxByOption[B](f: (Row) => B)(implicit ord: Ordering[B]): Option[Row]
- Definition Classes
- IterableOnceOps
- def maxOption[B >: Row](implicit ord: Ordering[B]): Option[Row]
- Definition Classes
- IterableOnceOps
- def maybeColumnNames: Option[Seq[String]]
Retrieves an optional sequence of column names derived from a possible header.
Retrieves an optional sequence of column names derived from a possible header.
- returns
An
Optioncontaining aSeq[String]of column names if the header exists, otherwiseNone.
- Definition Classes
- Table
- val maybeHeader: Option[Header]
Optional value of the Header of this Table, if there is one.
Optional value of the Header of this Table, if there is one.
- Definition Classes
- RenderableTable → Table
- def min[B >: Row](implicit ord: Ordering[B]): Row
- Definition Classes
- IterableOnceOps
- def minBy[B](f: (Row) => B)(implicit ord: Ordering[B]): Row
- Definition Classes
- IterableOnceOps
- def minByOption[B](f: (Row) => B)(implicit ord: Ordering[B]): Option[Row]
- Definition Classes
- IterableOnceOps
- def minOption[B >: Row](implicit ord: Ordering[B]): Option[Row]
- 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 newSpecificBuilder: Builder[Row, Iterable[Row]]
- Attributes
- protected
- Definition Classes
- IterableFactoryDefaults → IterableOps
- def nonEmpty: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecatedOverriding()
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def partition(p: (Row) => Boolean): (Iterable[Row], Iterable[Row])
- Definition Classes
- IterableOps
- def partitionMap[A1, A2](f: (Row) => Either[A1, A2]): (Iterable[A1], Iterable[A2])
- Definition Classes
- IterableOps
- def processRows[S](f: (Content[Row]) => Content[S]): Table[S]
Method to process the rows as an Iterable into an Iterable which will make up the resulting Table.
Method to process the rows as an Iterable into an Iterable which will make up the resulting Table. NOTE: if you need the rows processed individually, use processRowsMap or flatMap.
- S
the underlying type of the result.
- f
a function which takes an Iterable[Row] and returns an Iterable[S]
- returns
a table[S]
- Definition Classes
- Table
- def processRowsMap[S](f: (Row) => S): Table[S]
Method to process the rows as an Iterable into an Iterable which will make up the resulting Table.
Method to process the rows as an Iterable into an Iterable which will make up the resulting Table.
TESTME
- S
the underlying type of the result.
- f
a function which takes an Iterable[Row] and returns an Iterable[S]
- returns
a table[S]
- Definition Classes
- Table
- Annotations
- @unused()
- def product[B >: Row](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- def reduce[B >: Row](op: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeft[B >: Row](op: (B, Row) => B): B
- Definition Classes
- IterableOnceOps
- def reduceLeftOption[B >: Row](op: (B, Row) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceOption[B >: Row](op: (B, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def reduceRight[B >: Row](op: (Row, B) => B): B
- Definition Classes
- IterableOnceOps
- def reduceRightOption[B >: Row](op: (Row, B) => B): Option[B]
- Definition Classes
- IterableOnceOps
- def render[O](implicit ev: Renderer[Table[Row], O]): O
- O
the type of the result.
- ev
implicit evidence for Renderer of Table of X.
- returns
an instance of O.
- Definition Classes
- RenderableTable → TableRenderable
- def renderHierarchical[U](style: String, attributes: Map[String, String] = Map())(implicit arg0: TreeWriter[U], xr: HierarchicalRenderer[Row]): U
Method to render a table in a hierarchical fashion.
Method to render a table in a hierarchical fashion.
NOTE: if your output structure is not hierarchical in nature, then simply loop through the rows of this table, outputting each row as you go.
- U
a class which supports TreeWriter (i.e. there is evidence of TreeWriter[U]).
- style
the "style" to be used for the node which will represent this table.
- attributes
the attributes to be applied to the top level node for this table.
- xr
an (implicit) HierarchicalRenderer[Row]
- returns
a new instance of U which represents this Table as a tree of some sort.
- Definition Classes
- RenderableTable → TableRenderable
- def renderHierarchicalSequenced[U](style: String, attributes: Map[String, String] = Map())(implicit arg0: TreeWriter[U], rr: HierarchicalRenderer[Indexed[Row]]): U
Method to render a table in a hierarchical fashion.
Method to render a table in a hierarchical fashion.
NOTE: if your output structure is not hierarchical in nature, then simply loop through the rows of this table, outputting each row as you go.
- U
a class which supports TreeWriter (i.e. there is evidence of TreeWriter[U]).
- style
the "style" to be used for the node which will represent this table.
- attributes
the attributes to be applied to the top level node for this table.
- rr
an (implicit) HierarchicalRenderer[ Indexed [ Row ] ]
- returns
a new instance of U which represents this Table as a tree of some sort.
- Definition Classes
- RenderableTable → TableRenderable
- def renderToWritable[O](implicit z: Writable[O]): O
CONSIDER redefining the definition of Renderer such that we can accommodate the various different types of output.
CONSIDER redefining the definition of Renderer such that we can accommodate the various different types of output.
Method to render a table in a sequential (serialized) fashion.
- O
a type which supports Writable (via evidence of type Writable[O])
- returns
a new (or possibly old) instance of O.
- Definition Classes
- RenderableTable → TableRenderable
- def replaceHeader(ho: Option[Header]): Table[Row]
Method to clone this Table but with a different Header.
Method to clone this Table but with a different Header.
- ho
an optional Header.
- returns
a Table[Row] with the same rows as this, but with
hoas itsmaybeHeader.
- Definition Classes
- Table
- def reversed: Iterable[Row]
- Attributes
- protected
- Definition Classes
- IterableOnceOps
- def sample(n: Int)(implicit random: Random): Table[Row]
Method to randomly sample from this Table.
Method to randomly sample from this Table.
- n
the odds against choosing any particular element.
- random
an (implicit) Random number generator.
- returns
a new Table[Row] with approximately size/n elements.
- Definition Classes
- Table
- def scan[B >: Row](z: B)(op: (B, B) => B): Iterable[B]
- Definition Classes
- IterableOps
- def scanLeft[B](z: B)(op: (B, Row) => B): Iterable[B]
- Definition Classes
- IterableOps → IterableOnceOps
- def scanRight[B](z: B)(op: (Row, B) => B): Iterable[B]
- Definition Classes
- IterableOps
- def select(n: Int): Table[Row]
Method to select those rows defined by the given range.
Method to select those rows defined by the given range.
NOTE: the rows are numbered 1..N.
NOTE: unless explicitly ordered, the content might be in random order.
- n
the desired row.
- returns
a new Table[Row] consisting only the row requested.
- Definition Classes
- Table
- def select(range: Range): Table[Row]
Method to select those rows defined by the given range.
Method to select those rows defined by the given range. NOTE: the rows are numbered 1..N.
- range
a Range
- returns
a new Table[Row] consisting only of those rows in the given range.
- Definition Classes
- Table
- lazy val shuffle: Table[Row]
Method to shuffle this Table[Row].
- def size: Int
- Definition Classes
- IterableOnceOps
- def sizeCompare(that: Iterable[_]): Int
- Definition Classes
- IterableOps
- def sizeCompare(otherSize: Int): Int
- Definition Classes
- IterableOps
- final def sizeIs: SizeCompareOps
- Definition Classes
- IterableOps
- Annotations
- @inline()
- def slice(from: Int, until: Int): Table[Row]
slice (as defined by Iterable).
slice (as defined by Iterable).
- from
the index at which to begin the slice (1-based counting).
- until
the index at which to end the slice (1-based counting).
- returns
a Table like this Table but with slice(from, until) rows.
- Definition Classes
- Table → IterableOps → IterableOnceOps
- def sliding(size: Int, step: Int): Iterator[Iterable[Row]]
- Definition Classes
- IterableOps
- def sliding(size: Int): Iterator[Iterable[Row]]
- Definition Classes
- IterableOps
- def sort[S >: Row](implicit arg0: Ordering[S]): Table[S]
Method to transform this Table[Row] into a sorted Table[S] where S is a super-class of Row and for which there is evidence of Ordering[S].
Method to transform this Table[Row] into a sorted Table[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 Table[S].
- Definition Classes
- Table
- def span(p: (Row) => Boolean): (Iterable[Row], Iterable[Row])
- Definition Classes
- IterableOps → IterableOnceOps
- def splitAt(n: Int): (Iterable[Row], Iterable[Row])
- Definition Classes
- IterableOps → IterableOnceOps
- def stepper[S <: Stepper[_]](implicit shape: StepperShape[Row, S]): S
- Definition Classes
- IterableOnce
- def stringPrefix: String
- Attributes
- protected[this]
- Definition Classes
- Iterable
- Annotations
- @deprecatedOverriding()
- def sum[B >: Row](implicit num: Numeric[B]): B
- Definition Classes
- IterableOnceOps
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tail: Iterable[Row]
- Definition Classes
- IterableOps
- def tails: Iterator[Iterable[Row]]
- Definition Classes
- IterableOps
- def take(n: Int): Table[Row]
take (as defined by Iterable).
take (as defined by Iterable).
- n
the number of rows to take.
- returns
a Table like this Table but with only its first n rows.
- Definition Classes
- Table → IterableOps → IterableOnceOps
- def takeRight(n: Int): Iterable[Row]
- Definition Classes
- IterableOps
- def takeWhile(p: (Row) => Boolean): Table[Row]
takeWhile (as defined by Iterable).
takeWhile (as defined by Iterable).
- p
the predicate.
- returns
a Table like this Table but with takeWhile(p) rows.
- Definition Classes
- Table → IterableOps → IterableOnceOps
- def tapEach[U](f: (Row) => U): Iterable[Row]
- Definition Classes
- IterableOps → IterableOnceOps
- def to[C1](factory: Factory[Row, C1]): C1
- Definition Classes
- IterableOnceOps
- def toArray[Element >: Row](implicit arg0: ClassTag[Element]): Array[Element]
Method to yield an Array from the rows of this Table.
Method to yield an Array from the rows of this Table.
- Element
the element type of the resulting Array.
- returns
an Array[Element].
- Definition Classes
- Table → IterableOnceOps
- final def toBuffer[B >: Row]: Buffer[B]
- Definition Classes
- IterableOnceOps
- Annotations
- @inline()
- def toCSV(implicit rcr: CsvRenderer[Row], rgr: CsvGenerator[Row], csvAttributes: CsvAttributes): Try[String]
Method to render this Table[T] as a CSV String with (maybe) header.
Method to render this Table[T] as a CSV String with (maybe) header.
- rcr
implicit value of CsvRenderer[Row].
- rgr
implicit value of CsvProductGenerator[Row].
- csvAttributes
implicit value of CsvAttributes.
- returns
a String.
- Definition Classes
- Table
- def toIndexedSeq: IndexedSeq[Row]
- Definition Classes
- IterableOnceOps
- def toList: List[Row]
- Definition Classes
- IterableOnceOps
- def toMap[K, V](implicit ev: <:<[Row, (K, V)]): Map[K, V]
- Definition Classes
- IterableOnceOps
- def toSeq: Seq[Row]
Method to yield a Seq of the rows of this Table.
Method to yield a Seq of the rows of this Table.
- returns
a Seq[Row]
- Definition Classes
- Table → IterableOnceOps
- def toSet[B >: Row]: Set[B]
- Definition Classes
- IterableOnceOps
- def toString(): String
- Definition Classes
- RenderableTable → Iterable → AnyRef → Any
- def toVector: Vector[Row]
- Definition Classes
- IterableOnceOps
- def transpose[B](implicit asIterable: (Row) => Iterable[B]): Iterable[Iterable[B]]
- Definition Classes
- IterableOps
- def unit[S](sr: Content[S], maybeHeader: Option[Header]): Table[S]
Method to generate a Table[S] for a set of rows.
Method to generate a Table[S] for a set of rows. Although declared as an instance method, this method produces its result independent of this.
- S
the underlying type of the rows and the result.
- sr
a sequence of S.
- maybeHeader
an optional Header to be used in the resulting Table.
- returns
a new instance of Table[S].
- Definition Classes
- RenderableTable → Table
- def unit[S](ss: Iterable[S]): Table[S]
Method to generate a Table[S] for a set of rows.
Method to generate a Table[S] for a set of rows. Although declared as an instance method, this method produces its result independent of this.
- S
the underlying type of the rows and the result.
- ss
a sequence of S.
- returns
a new instance of Table[S].
- Definition Classes
- Table
- def unzip[A1, A2](implicit asPair: (Row) => (A1, A2)): (Iterable[A1], Iterable[A2])
- Definition Classes
- IterableOps
- def unzip3[A1, A2, A3](implicit asTriple: (Row) => (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
- Definition Classes
- IterableOps
- def view: View[Row]
- Definition Classes
- IterableOps
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
- def withFilter(p: (Row) => Boolean): WithFilter[Row, Iterable]
- Definition Classes
- IterableOps
- def writeCSVFile(path: Path)(implicit renderer: CsvRenderer[Row], generator: CsvGenerator[Row], csvAttributes: CsvAttributes): Unit
Writes the contents of the current table to a CSV file at the specified path.
Writes the contents of the current table to a CSV file at the specified path.
- path
The file system path where the CSV file will be written.
- renderer
Implicit parameter that provides a mechanism to render rows to CSV format.
- generator
Implicit parameter that is used to generate CSV rows from the data.
- csvAttributes
Implicit parameter containing attributes for customizing the CSV formatting.
- returns
Unit, indicating the operation does not return a value.
- Definition Classes
- Table
- def writeCSVPath(outputPath: Path)(implicit r: CsvRenderer[Row], g: CsvGenerator[Row], ca: CsvAttributes): Unit
Converts the table to a CSV file and writes it to the specified output path.
Converts the table to a CSV file and writes it to the specified output path.
- outputPath
the path where the CSV file will be written
- r
an implicit CsvRenderer instance for rendering rows
- g
an implicit CsvGenerator instance for generating CSV data from rows
- ca
an implicit CsvAttributes instance specifying CSV configuration attributes
- returns
Unit
- Definition Classes
- Table
- Exceptions thrown
TableExceptionif the CSV file cannot be written to the specified output path
- def zip[R](rt: Table[R]): Table[(Row, R)]
Method to zip two Tables together such that the rows of the resulting table are tuples of the rows of the input tables.
Method to zip two Tables together such that the rows of the resulting table are tuples of the rows of the input tables.
- R
the underlying type of the other Table.
- rt
a Table[R].
- returns
a Table of (Row, R).
- Definition Classes
- Table
- def zip[B](that: IterableOnce[B]): Iterable[(Row, B)]
- Definition Classes
- IterableOps
- def zipAll[A1 >: Row, B](that: Iterable[B], thisElem: A1, thatElem: B): Iterable[(A1, B)]
- Definition Classes
- IterableOps
- def zipWithIndex: Iterable[(Row, Int)]
- Definition Classes
- IterableOps → IterableOnceOps
Deprecated Value Members
- def ++:[B >: Row](that: IterableOnce[B]): Iterable[B]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use ++ instead of ++: for collections of type Iterable
- final def /:[B](z: B)(op: (B, Row) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use foldLeft instead of /:
- final def :\[B](z: B)(op: (Row, 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, Row) => B, combop: (B, B) => B): B
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) For sequential collections, prefer
foldLeft(z)(seqop). For parallel collections, useParIterableLike#aggregate.
- def companion: IterableFactory[Iterable]
- Definition Classes
- IterableOps
- Annotations
- @deprecated @deprecatedOverriding() @inline()
- Deprecated
(Since version 2.13.0) Use iterableFactory instead
- final def copyToBuffer[B >: Row](dest: Buffer[B]): Unit
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use
dest ++= collinstead
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)
- def hasDefiniteSize: Boolean
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)
- final def repr: Iterable[Row]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use coll instead of repr in a collection implementation, use the collection value itself from the outside
- def seq: RenderableTable.this.type
- Definition Classes
- Iterable
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Iterable.seq always returns the iterable itself
- final def toIterable: RenderableTable.this.type
- Definition Classes
- Iterable → IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.7) toIterable is internal and will be made protected; its name is similar to
toListortoSeq, but it doesn't copy non-immutable collections
- final def toIterator: Iterator[Row]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .iterator instead of .toIterator
- final def toStream: Stream[Row]
- Definition Classes
- IterableOnceOps
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.13.0) Use .to(LazyList) instead of .toStream
- final def toTraversable: Traversable[Row]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) toTraversable is internal and will be made protected; its name is similar to
toListortoSeq, but it doesn't copy non-immutable collections
- def view(from: Int, until: Int): View[Row]
- Definition Classes
- IterableOps
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use .view.slice(from, until) instead of .view(from, until)
- def writeCSVFile(file: File)(implicit renderer: CsvRenderer[Row], generator: CsvGenerator[Row], csvAttributes: CsvAttributes): Unit
Method to render this Table[T] as a CSV file with (maybe) header.
Method to render this Table[T] as a CSV file with (maybe) header.
TESTME (probably tested only in it)
- file
instance of File where the output should be stored.
- renderer
implicit value of CsvRenderer[Row].
- generator
implicit value of CsvProductGenerator[Row].
- csvAttributes
implicit value of CsvAttributes.
- Definition Classes
- Table
- Annotations
- @deprecated
- Deprecated
(Since version 1.3.0) Use writeCSVFile(Path) instead