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

Method from

datafusion/common/src/config.rs:460–466  ·  view source on GitHub ↗
(c: SpillCompression)

Source from the content-addressed store, hash-verified

458
459impl From<SpillCompression> for Option<CompressionType> {
460 fn from(c: SpillCompression) -> Self {
461 match c {
462 SpillCompression::Zstd => Some(CompressionType::ZSTD),
463 SpillCompression::Lz4Frame => Some(CompressionType::LZ4_FRAME),
464 SpillCompression::Uncompressed => None,
465 }
466 }
467}
468
469config_namespace! {

Callers

nothing calls this directly

Calls 7

newFunction · 0.85
iterMethod · 0.45
mapMethod · 0.45
getMethod · 0.45
insertMethod · 0.45
cloneMethod · 0.45
clonedMethod · 0.45

Tested by

no test coverage detected