trait Values extends AnyRef
- Alphabetic
- By Inheritance
- Values
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
!=(value: T, moreValues: T*): Ns with Attr
Match negated value(s) of filtered map attribute.
Match negated value(s) of filtered map attribute.
for { _ <- Greeting.id.strMap insert List( (1, Map("en" -> "Hi there", "da" -> "Hejsa")), (2, Map("en" -> "Oh, Hi", "da" -> "Hilser", "fr" -> "Bonjour", "it" -> "Bon giorno")), (3, Map("en" -> "Hello", "da" -> "Hej")), (4, Map("da" -> "Hej")) ) // Apply key filter only _ <- Greeting.id.strMap_.k("en").get.map(_ ==> List(1, 2, 3)) // Apply additional negation value filter _ <- Greeting.id.strMap_.k("en").!=("Hello").get.map(_ ==> List(1, 2)) _ <- Greeting.id.strMap.k("en").!=("Hello").get.map(_ ==> List( (1, Map("en" -> "Hi there")), (2, Map("en" -> "Oh, Hi")) )) // Apply multiple negation value filters (OR semantics) _ <- Greeting.id.strMap_.k("en").!=("Hello", "Hi there").get.map(_ ==> List(2)) // Same as _ <- Greeting.id.strMap_.k("en").not("Hello", "Hi there").get.map(_ ==> List(2)) } yield ()
- value
Filter value
- moreValues
Optional additional filter values
- returns
Filtered molecule
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
<(upper: T): Ns with Attr
Match values of filtered map attribute less than upper value.
Match values of filtered map attribute less than upper value.
for { _ <- Greeting.id.strMap insert List( (1, Map("en" -> "Hi there", "da" -> "Hejsa")), (2, Map("en" -> "Oh, Hi", "da" -> "Hilser", "fr" -> "Bonjour", "it" -> "Bon giorno")), (3, Map("en" -> "Hello", "da" -> "Hej")), (4, Map("da" -> "Hej")) ) // Apply key filter only _ <- Greeting.id.strMap_.k("en").get.map(_ ==> List(1, 2, 3)) // Apply additional less-than value filter _ <- Greeting.id.strMap_.k("en").<("Hi").get.map(_ ==> List(3)) _ <- Greeting.id.strMap.k("en").<("Hi").get.map(_ ==> List( (3, Map("en" -> "Hello")) )) } yield ()
- upper
Upper value
- returns
Filtered molecule
-
def
<=(upper: T): Ns with Attr
Match values of filtered map attribute less than or equal to upper value.
Match values of filtered map attribute less than or equal to upper value.
for { _ <- Greeting.id.strMap insert List( (1, Map("en" -> "Hi there", "da" -> "Hejsa")), (2, Map("en" -> "Oh, Hi", "da" -> "Hilser", "fr" -> "Bonjour", "it" -> "Bon giorno")), (3, Map("en" -> "Hello", "da" -> "Hej")), (4, Map("da" -> "Hej")) ) // Apply key filter only _ <- Greeting.id.strMap_.k("en").get.map(_ ==> List(1, 2, 3)) // Apply additional less-than-or-equal-to value filter _ <- Greeting.id.strMap_.k("en").<=("Hi").get.map(_ ==> List(1, 3)) _ <- Greeting.id.strMap.k("en").<=("Hi").get.map(_ ==> List( (1, Map("en" -> "Hi there")), (3, Map("en" -> "Hello")) )) } yield ()
- upper
Upper value
- returns
Filtered molecule
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
>(lower: T): Ns with Attr
Match values of filtered map attribute bigger than lower value.
Match values of filtered map attribute bigger than lower value.
for { _ <- Greeting.id.strMap insert List( (1, Map("en" -> "Hi there", "da" -> "Hejsa")), (2, Map("en" -> "Oh, Hi", "da" -> "Hilser", "fr" -> "Bonjour", "it" -> "Bon giorno")), (3, Map("en" -> "Hello", "da" -> "Hej")), (4, Map("da" -> "Hej")) ) // Apply key filter only _ <- Greeting.id.strMap_.k("en").get.map(_ ==> List(1, 2, 3)) // Apply additional bigger-than value filter _ <- Greeting.id.strMap_.k("en").>("Hi").get.map(_ ==> List(2)) _ <- Greeting.id.strMap.k("en").>("Hi").get.map(_ ==> List( (2, Map("en" -> "Oh, Hi")) )) } yield ()
- lower
Lower value
- returns
Filtered molecule
-
def
>=(lower: T): Ns with Attr
Match values of filtered map attribute bigger than or equal to lower value.
Match values of filtered map attribute bigger than or equal to lower value.
for { _ <- Greeting.id.strMap insert List( (1, Map("en" -> "Hi there", "da" -> "Hejsa")), (2, Map("en" -> "Oh, Hi", "da" -> "Hilser", "fr" -> "Bonjour", "it" -> "Bon giorno")), (3, Map("en" -> "Hello", "da" -> "Hej")), (4, Map("da" -> "Hej")) ) // Apply key filter only _ <- Greeting.id.strMap_.k("en").get.map(_ ==> List(1, 2, 3)) // Apply additional bigger-than-or-equal-to value filter _ <- Greeting.id.strMap_.k("en").>=("Hi").get.map(_ ==> List(1, 2)) _ <- Greeting.id.strMap.k("en").>=("Hi").get.map(_ ==> List( (1, Map("en" -> "Hi there")), (2, Map("en" -> "Oh, Hi")) )) } yield ()
- lower
Lower value
- returns
Filtered molecule
-
def
apply(or: Or[T]): Ns with Attr
Match OR expression of value(s) of filtered map attribute.
Match OR expression of value(s) of filtered map attribute.
for { _ <- Greeting.id.strMap insert List( (1, Map("en" -> "Hi there", "da" -> "Hejsa")), (2, Map("en" -> "Oh, Hi", "da" -> "Hilser", "fr" -> "Bonjour", "it" -> "Bon giorno")), (3, Map("en" -> "Hello", "da" -> "Hej")), (4, Map("da" -> "Hej")) ) // Apply key filter only _ <- Greeting.id.strMap_.k("da").get.map(_ ==> List(1, 2, 3, 4)) // Apply additional value filters as OR expression _ <- Greeting.id.strMap_.k("da")("Hej" or "Hejsa").get.map(_ ==> List(1, 3, 4)) _ <- Greeting.id.strMap_.k("da")("Hej" or "Hejsa" or "Hilser").get.map(_ ==> List(1, 2, 3, 4)) } yield ()
- or
OR expression of filtering values
- returns
Filtered molecule
-
def
apply(values: Iterable[T]): Ns with Attr
Match Iterable of value(s) of filtered map attribute.
Match Iterable of value(s) of filtered map attribute.
for { _ <- Greeting.id.strMap insert List( (1, Map("en" -> "Hi there", "da" -> "Hejsa")), (2, Map("en" -> "Oh, Hi", "da" -> "Hilser", "fr" -> "Bonjour", "it" -> "Bon giorno")), (3, Map("en" -> "Hello", "da" -> "Hej")), (4, Map("da" -> "Hej")) ) // Apply key filter only _ <- Greeting.id.strMap_.k("da").get.map(_ ==> List(1, 2, 3, 4)) // Apply Seq of additional value filters (OR semantics) _ <- Greeting.id.strMap_.k("da")(Seq("Hej", "Hejsa")).get.map(_ ==> List(1, 3, 4)) } yield ()
- values
Iterable of filtering value(s)
- returns
Filtered molecule
-
def
apply(value: T, moreValues: T*): Ns with Attr
Match value(s) of filtered map attribute.
Match value(s) of filtered map attribute.
for { _ <- Greeting.id.strMap insert List( (1, Map("en" -> "Hi there", "da" -> "Hejsa")), (2, Map("en" -> "Oh, Hi", "da" -> "Hilser", "fr" -> "Bonjour", "it" -> "Bon giorno")), (3, Map("en" -> "Hello", "da" -> "Hej")), (4, Map("da" -> "Hej")) ) // Apply key filter only _ <- Greeting.id.strMap_.k("da").get.map(_ ==> List(1, 2, 3, 4)) // Apply additional value filter _ <- Greeting.id.strMap_.k("da")("Hej").get.map(_ ==> List(3, 4)) // Apply additional value filters as OR expression _ <- Greeting.id.strMap_.k("da")("Hej", "Hejsa").get.map(_ ==> List(1, 3, 4)) } yield ()
- value
Filtering value
- moreValues
Optional additional filtering values
- returns
Filtered molecule
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
contains(word: T): Ns with Attr
Match word values of filtered String map attribute.
Match word values of filtered String map attribute.
Fulltext searches are case-insensitive and only searches for whole words.for { _ <- Greeting.id.strMap insert List( (1, Map("en" -> "Hi there", "da" -> "Hejsa")), (2, Map("en" -> "Oh, Hi", "da" -> "Hilser", "fr" -> "Bonjour", "it" -> "Bon giorno")), (3, Map("en" -> "Hello", "da" -> "Hej")), (4, Map("da" -> "Hej")) ) // Apply key filter only _ <- Greeting.id.strMap_.k("en").get.map(_ ==> List(1, 2, 3)) // Apply additional less-than-or-equal-to value filter _ <- Greeting.id.strMap_.k("en").contains("Hi").get.map(_ ==> List(1, 2)) _ <- Greeting.id.strMap.k("en").contains("Hi").get.map(_ ==> List( (1, Map("en" -> "Hi there")), (2, Map("en" -> "Oh, Hi")) )) // Regex can be used _ <- Greeting.id.strMap_.k("en").contains("Hi|Hello").get.map(_ ==> List(1, 2, 3)) } yield ()
- word
Search word or regex
- returns
Filtered molecule
- Note
Fulltext search is constrained by several defaults (which cannot be altered): searches are case insensitive, remove apostrophe or apostrophe and s sequences, and filter out the following common English stop words: "a", "an", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
not(value: T, moreValues: T*): Ns with Attr
Match negated value(s) of filtered map attribute.
Match negated value(s) of filtered map attribute.
for { _ <- Greeting.id.strMap insert List( (1, Map("en" -> "Hi there", "da" -> "Hejsa")), (2, Map("en" -> "Oh, Hi", "da" -> "Hilser", "fr" -> "Bonjour", "it" -> "Bon giorno")), (3, Map("en" -> "Hello", "da" -> "Hej")), (4, Map("da" -> "Hej")) ) // Apply key filter only _ <- Greeting.id.strMap_.k("en").get.map(_ ==> List(1, 2, 3)) // Apply additional negation value filter _ <- Greeting.id.strMap_.k("en").not("Hello").get.map(_ ==> List(1, 2)) _ <- Greeting.id.strMap.k("en").not("Hello").get.map(_ ==> List( (1, Map("en" -> "Hi there")), (2, Map("en" -> "Oh, Hi")) )) // Apply multiple negation value filters (OR semantics) _ <- Greeting.id.strMap_.k("en").not("Hello", "Hi there").get.map(_ ==> List(2)) // Same as _ <- Greeting.id.strMap_.k("en").!=("Hello", "Hi there").get.map(_ ==> List(2)) } yield ()
- value
Filter value
- moreValues
Optional additional filter values
- returns
Filtered molecule
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()

Documentation/API for the Molecule library - a meta DSL for the Datomic database.
scalamolecule.org | Github | Forum