Struct datafusion_common::file_type::FileCompressionType
source · pub struct FileCompressionType { /* private fields */ }
Expand description
Readable file compression type
Implementations§
source§impl FileCompressionType
impl FileCompressionType
FileCompressionType
implementation
sourcepub const UNCOMPRESSED: Self = _
pub const UNCOMPRESSED: Self = _
Uncompressed file
sourcepub const fn is_compressed(&self) -> bool
pub const fn is_compressed(&self) -> bool
The file is compressed or not
sourcepub fn convert_to_compress_stream(
&self,
s: BoxStream<'static, Result<Bytes>>
) -> Result<BoxStream<'static, Result<Bytes>>>
pub fn convert_to_compress_stream( &self, s: BoxStream<'static, Result<Bytes>> ) -> Result<BoxStream<'static, Result<Bytes>>>
Given a Stream
, create a Stream
which data are compressed with FileCompressionType
.
sourcepub fn convert_async_writer(
&self,
w: Box<dyn AsyncWrite + Send + Unpin>
) -> Result<Box<dyn AsyncWrite + Send + Unpin>>
pub fn convert_async_writer( &self, w: Box<dyn AsyncWrite + Send + Unpin> ) -> Result<Box<dyn AsyncWrite + Send + Unpin>>
Wrap the given AsyncWrite
so that it performs compressed writes
according to this FileCompressionType
.
Trait Implementations§
source§impl Clone for FileCompressionType
impl Clone for FileCompressionType
source§fn clone(&self) -> FileCompressionType
fn clone(&self) -> FileCompressionType
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 FileCompressionType
impl Debug for FileCompressionType
source§impl From<CompressionTypeVariant> for FileCompressionType
impl From<CompressionTypeVariant> for FileCompressionType
source§fn from(t: CompressionTypeVariant) -> Self
fn from(t: CompressionTypeVariant) -> Self
Converts to this type from the input type.
source§impl FromStr for FileCompressionType
impl FromStr for FileCompressionType
source§impl PartialEq<FileCompressionType> for FileCompressionType
impl PartialEq<FileCompressionType> for FileCompressionType
source§fn eq(&self, other: &FileCompressionType) -> bool
fn eq(&self, other: &FileCompressionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FileCompressionType
impl Eq for FileCompressionType
impl StructuralEq for FileCompressionType
impl StructuralPartialEq for FileCompressionType
Auto Trait Implementations§
impl RefUnwindSafe for FileCompressionType
impl Send for FileCompressionType
impl Sync for FileCompressionType
impl Unpin for FileCompressionType
impl UnwindSafe for FileCompressionType
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.