Enum datafusion_functions::crypto::basic::DigestAlgorithm
source · pub enum DigestAlgorithm {
Md5,
Sha224,
Sha256,
Sha384,
Sha512,
Blake2s,
Blake2b,
Blake3,
}
Variants§
Implementations§
source§impl DigestAlgorithm
impl DigestAlgorithm
sourcepub fn digest_scalar(self, value: Option<&[u8]>) -> ColumnarValue
pub fn digest_scalar(self, value: Option<&[u8]>) -> ColumnarValue
digest an optional string to its hash value, null values are returned as is
sourcepub fn digest_binary_array<T>(self, value: &dyn Array) -> Result<ColumnarValue>where
T: OffsetSizeTrait,
pub fn digest_binary_array<T>(self, value: &dyn Array) -> Result<ColumnarValue>where
T: OffsetSizeTrait,
digest a binary array to their hash values
sourcepub fn digest_utf8_array<T>(self, value: &dyn Array) -> Result<ColumnarValue>where
T: OffsetSizeTrait,
pub fn digest_utf8_array<T>(self, value: &dyn Array) -> Result<ColumnarValue>where
T: OffsetSizeTrait,
digest a string array to their hash values
Trait Implementations§
source§impl Clone for DigestAlgorithm
impl Clone for DigestAlgorithm
source§fn clone(&self) -> DigestAlgorithm
fn clone(&self) -> DigestAlgorithm
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DigestAlgorithm
impl Debug for DigestAlgorithm
source§impl Display for DigestAlgorithm
impl Display for DigestAlgorithm
source§impl FromStr for DigestAlgorithm
impl FromStr for DigestAlgorithm
§type Err = DataFusionError
type Err = DataFusionError
The associated error which can be returned from parsing.
impl Copy for DigestAlgorithm
Auto Trait Implementations§
impl Freeze for DigestAlgorithm
impl RefUnwindSafe for DigestAlgorithm
impl Send for DigestAlgorithm
impl Sync for DigestAlgorithm
impl Unpin for DigestAlgorithm
impl UnwindSafe for DigestAlgorithm
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more