MCPcopy Create free account
hub / github.com/apache/datafusion / encode

Method encode

datafusion/spark/src/function/url/url_encode.rs:60–62  ·  view source on GitHub ↗

Encode a string to application/x-www-form-urlencoded format. # Arguments `value` - The string to encode # Returns `Ok(String)` - The encoded string

(value: &str)

Source from the content-addressed store, hash-verified

58 /// * `Ok(String)` - The encoded string
59 ///
60 fn encode(value: &str) -> Result<String> {
61 Ok(byte_serialize(value.as_bytes()).collect::<String>())
62 }
63}
64
65impl ScalarUDFImpl for UrlEncode {

Callers 15

expression_deduplicationFunction · 0.80
wrap_keyFunction · 0.80
do_getMethod · 0.80
to_bytesMethod · 0.80
try_encodeMethod · 0.80
try_encodeMethod · 0.80
encode_protobufMethod · 0.80

Calls

no outgoing calls

Tested by 7

try_encode_udfMethod · 0.64
try_encode_udafMethod · 0.64
try_encode_udwfMethod · 0.64
try_encodeMethod · 0.64
try_encode_udfMethod · 0.64
try_encode_udafMethod · 0.64