MongoDB request DSL • opensavvy.ktmongo.dsl.aggregation.operators • StringValueOperators
StringValueOperators¶
interface StringValueOperators : ValueOperators
String aggregation operators.
External resources¶
Inheritors¶
Properties¶
context
¶
abstract val context:
field
¶
Converts a Kotlin property into a Field
.
length
¶
Returns the number of code points in the specified string.
lengthUTF8
¶
Returns the number of UTF-8 encoded bytes in the specified string.
Functions¶
div
¶
Refers to field
as a nested field of the current value.
Refers to field
as a nested field of the current value.
Refers to child
as a nested field of the current field.
get
¶
Refers to a specific item in an array, by its index.
Refers to a specific item in a map, by its name.
lowercase
¶
Converts a string to lowercase, returning the result.
of
¶
Refers to a Kotlin value
within an aggregation value
.
Refers to a BsonType within an aggregation value
.
Refers to a field
within an aggregation value
.
Refers to a field
within an aggregation value
.
replace
¶
Replaces all instances of find
with a replacement
string.
Replaces all instances of find
with a replacement
string.
replaceFirst
¶
Replaces the first instance of find
with a replacement
string.
Replaces the first instance of find
with a replacement
string.
split
¶
Divides a string into an array of substrings based on a delimiter
.
Divides a string into an array of substrings based on a delimiter
.
substring
¶
Returns the substring of a string.
Returns the substring of a string.
substringUTF8
¶
Returns the substring of a string.
Returns the substring of a string.
trim
¶
Removes whitespace characters, including null, or the specified characters from the beginning and end of a string.
Removes the specified characters
from the beginning and end of a string.
Removes the specified characters
from the beginning and end of a string.
trimEnd
¶
Removes whitespace characters, including null, or the specified characters from the end of a string.
Removes the specified characters
from the end of a string.
Removes the specified characters
from the end of a string.
trimStart
¶
Removes whitespace characters, including null, or the specified characters from the beginning of a string.
Removes the specified characters
from the beginning of a string.
Removes the specified characters
from the beginning of a string.
uppercase
¶
Converts a string to uppercase, returning the result.