Genel İşlevler
| Ad | Açıklama |
CONCAT
|
Aynı türdeki iki veya daha fazla değeri birleştirir. |
LENGTH
|
String, Bytes, Array, Vector veya Map uzunluğunu hesaplar.
|
REVERSE
|
String, Bytes veya Array değerini tersine çevirir.
|
Müşteri örnekleri
Node.js
concat(constant("Author ID: "), field("authorId"));
Web
concat(constant("Author ID: "), field("authorId"));
Swift
let displayString = Constant("Author ID: ").concat([Field("authorId")])
Kotlin
val displayString = constant("Author ID: ").concat(field("authorId"))
Java
Expression displayString = constant("Author ID: ").concat(field("authorId"));
Python
Constant.of("Author ID: ").concat(Field.of("authorId"))
CONCAT
Söz dizimi:
concat[T <: STRING | BYTES | ARRAY](values:T ...) -> T
Açıklama:
Aynı türdeki iki veya daha fazla değeri birleştirir.
Örnekler:
| values | concat(values) |
|---|---|
| "abc", "def" | "abcdef" |
| [1, 2], [3, 4] | [1, 2, 3, 4] |
| b"abc", b"def" | b"abcdef" |
| "abc", [1,2,3], "ghi" | hata |
| [1,2,3] | hata |
| "abc", null | null |
LENGTH
Söz dizimi:
length[T <: STRING | BYTES | ARRAY | VECTOR | MAP](value: T) -> INT64
Açıklama:
String, Bytes, Array, Vector veya Map değerinin uzunluğunu hesaplar.
Örnekler:
| value | length(value) |
|---|---|
| "hello" (merhaba) | 5 |
| [1, 2, 3, 4] | 4 |
| b"abcde" | 5 |
| null | null |
| 1 | hata |
GERİ
Söz dizimi:
reverse[T <: STRING | BYTES | ARRAY](value: T) -> T
Açıklama:
String, Bytes veya Array değerini tersine çevirir.
Örnekler:
| value | reverse(value) |
|---|---|
| "hello" (merhaba) | "olleh" |
| [1, 2, 3] | [3, 2, 1] |
| b"abc" | b"cba" |
| 23 | hata |
| null | null |