Struct parquet::data_type::ByteArray [−][src]
pub struct ByteArray { /* fields omitted */ }
Rust representation for BYTE_ARRAY and FIXED_LEN_BYTE_ARRAY Parquet physical types. Value is backed by a byte buffer.
Methods
impl ByteArray
[src]
impl ByteArray
pub fn new() -> Self
[src]
pub fn new() -> Self
Creates new byte array with no data set.
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
Gets length of the underlying byte buffer.
pub fn data(&self) -> &[u8]
[src]
pub fn data(&self) -> &[u8]
Returns slice of data.
pub fn set_data(&mut self, data: ByteBufferPtr)
[src]
pub fn set_data(&mut self, data: ByteBufferPtr)
Set data from another byte buffer.
pub fn slice(&self, start: usize, len: usize) -> Self
[src]
pub fn slice(&self, start: usize, len: usize) -> Self
Returns ByteArray
instance with slice of values for a data.
Trait Implementations
impl Clone for ByteArray
[src]
impl Clone for ByteArray
fn clone(&self) -> ByteArray
[src]
fn clone(&self) -> ByteArray
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ByteArray
[src]
impl Debug for ByteArray
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Vec<u8>> for ByteArray
[src]
impl From<Vec<u8>> for ByteArray
impl<'a> From<&'a str> for ByteArray
[src]
impl<'a> From<&'a str> for ByteArray
impl From<ByteBufferPtr> for ByteArray
[src]
impl From<ByteBufferPtr> for ByteArray
fn from(ptr: ByteBufferPtr) -> ByteArray
[src]
fn from(ptr: ByteBufferPtr) -> ByteArray
Performs the conversion.
impl From<ByteBuffer> for ByteArray
[src]
impl From<ByteBuffer> for ByteArray
fn from(buf: ByteBuffer) -> ByteArray
[src]
fn from(buf: ByteBuffer) -> ByteArray
Performs the conversion.
impl Default for ByteArray
[src]
impl Default for ByteArray
impl PartialEq for ByteArray
[src]
impl PartialEq for ByteArray
fn eq(&self, other: &ByteArray) -> bool
[src]
fn eq(&self, other: &ByteArray) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Rand for ByteArray
[src]
impl Rand for ByteArray
fn rand<R: Rng>(rng: &mut R) -> Self
[src]
fn rand<R: Rng>(rng: &mut R) -> Self
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Generates a random instance of this type using the specified source of randomness. Read more
impl AsBytes for ByteArray
[src]
impl AsBytes for ByteArray