max

molecule.boilerplate.api.Keywords.max
object max extends max

Attributes

Source
Keywords.scala
Graph
Supertypes
trait max
trait AggrKw
trait Kw
class Object
trait Matchable
class Any
Show all
Self type
max.type

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
Keywords.scala

Inherited methods

def apply(i: Int): maxs

Maximum n values of attribute.

Apply max(n) to attribute to return Vector of the n biggest values of entities matching the molecule.

Maximum n values of attribute.

Apply max(n) to attribute to return Vector of the n biggest values of entities matching the molecule.

for {
 _ <- Person.age.insert(25, 34, 37, 42, 70)
 _ <- Person.age(max(3)).get.map(_.head ==> List(37, 42, 70))
} yield ()

Attributes

Returns

List[attribute-type]

Note

max/max(n) supports all value types (via comparators).
Can at most return the number of values that match.

Inherited from:
max
Source
Keywords.scala