trait Values extends AnyRef
- Alphabetic
- By Inheritance
- Values
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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.
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 === List(1, 2, 3) // Apply additional negation value filter Greeting.id.strMap_.k("en").!=("Hello").get === List(1, 2) Greeting.id.strMap.k("en").!=("Hello").get === 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 === List(2) // Same as Greeting.id.strMap_.k("en").not("Hello", "Hi there").get === List(2)
- 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.
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 === List(1, 2, 3) // Apply additional less-than value filter Greeting.id.strMap_.k("en").<("Hi").get === List(3) Greeting.id.strMap.k("en").<("Hi").get === List( (3, Map("en" -> "Hello")) )
- 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.
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 === List(1, 2, 3) // Apply additional less-than-or-equal-to value filter Greeting.id.strMap_.k("en").<=("Hi").get === List(1, 3) Greeting.id.strMap.k("en").<=("Hi").get === List( (1, Map("en" -> "Hi there")), (3, Map("en" -> "Hello")) )
- 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.
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 === List(1, 2, 3) // Apply additional bigger-than value filter Greeting.id.strMap_.k("en").>("Hi").get === List(2) Greeting.id.strMap.k("en").>("Hi").get === List( (2, Map("en" -> "Oh, Hi")) )
- 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.
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 === List(1, 2, 3) // Apply additional bigger-than-or-equal-to value filter Greeting.id.strMap_.k("en").>=("Hi").get === List(1, 2) Greeting.id.strMap.k("en").>=("Hi").get === List( (1, Map("en" -> "Hi there")), (2, Map("en" -> "Oh, Hi")) )
- 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.
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 === List(1, 2, 3, 4) // Apply additional value filters as OR expression Greeting.id.strMap_.k("da")("Hej" or "Hejsa").get === List(1, 3, 4) Greeting.id.strMap_.k("da")("Hej" or "Hejsa" or "Hilser").get === List(1, 2, 3, 4)
- 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.
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 === List(1, 2, 3, 4) // Apply Seq of additional value filters (OR semantics) Greeting.id.strMap_.k("da")(Seq("Hej", "Hejsa")).get === List(1, 3, 4)
- 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.
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 === List(1, 2, 3, 4) // Apply additional value filter Greeting.id.strMap_.k("da")("Hej").get === List(3, 4) // Apply additional value filters as OR expression Greeting.id.strMap_.k("da")("Hej", "Hejsa").get === List(1, 3, 4)
- 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(classOf[java.lang.CloneNotSupportedException]) @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.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 === List(1, 2, 3) // Apply additional less-than-or-equal-to value filter Greeting.id.strMap_.k("en").contains("Hi").get === List(1, 2) Greeting.id.strMap.k("en").contains("Hi").get === List( (1, Map("en" -> "Hi there")), (2, Map("en" -> "Oh, Hi")) ) // Regex can be used Greeting.id.strMap_.k("en").contains("Hi|Hello").get === List(1, 2, 3)
- 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: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- 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.
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 === List(1, 2, 3) // Apply additional negation value filter Greeting.id.strMap_.k("en").not("Hello").get === List(1, 2) Greeting.id.strMap.k("en").not("Hello").get === 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 === List(2) // Same as Greeting.id.strMap_.k("en").!=("Hello", "Hi there").get === List(2)
- 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(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()
Documentation/API for the Molecule library - a meta DSL for the Datomic database.
scalamolecule.org | Github | Forum