LazyStatistics

com.phasmidsoftware.tableparser.core.table.MaybeStatistics.LazyStatistics
final case class LazyStatistics(compute: () => Option[Statistics])

Lazy statistics, deferred as a thunk for later evaluation. Useful for expensive computations (e.g., column scan) that you may not need.

Value parameters

compute

a function that computes the Statistics when called.

Attributes

Members list

Value members

Inherited methods

def getStatistics(): Option[Statistics]

Force evaluation of statistics. If eager, returns immediately. If lazy, executes the thunk.

Force evaluation of statistics. If eager, returns immediately. If lazy, executes the thunk.

Attributes

Returns

an optional Statistics (None if computation fails or thunk returns None).

Inherited from:
MaybeStatistics
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product