[−][src]Enum datafusion::scalar::ScalarValue
Represents a dynamically typed, nullable single value.
This is the single-valued counter-part of arrow’s Array
.
Variants
true or false value
32bit float
64bit float
signed 8bit int
signed 16bit int
signed 32bit int
signed 64bit int
unsigned 8bit int
unsigned 16bit int
unsigned 32bit int
unsigned 64bit int
utf-8 encoded string.
utf-8 encoded string representing a LargeString's arrow type.
List(Option<Vec<ScalarValue>>, DataType)
list of nested ScalarValue
Date stored as a signed 32bit int
Timestamp Microseconds
Timestamp Nanoseconds
Implementations
impl ScalarValue
[src]
pub fn get_datatype(&self) -> DataType
[src]
Getter for the DataType
of the value
pub fn arithmetic_negate(&self) -> Self
[src]
Calculate arithmetic negation for a scalar value
pub fn is_null(&self) -> bool
[src]
whether this value is null or not.
pub fn to_array(&self) -> ArrayRef
[src]
Converts a scalar value into an 1-row array.
pub fn to_array_of_size(&self, size: usize) -> ArrayRef
[src]
Converts a scalar value into an array of size
rows.
pub fn try_from_array(array: &ArrayRef, index: usize) -> Result<Self>
[src]
Converts a value in array
at index
into a ScalarValue
Trait Implementations
impl Clone for ScalarValue
[src]
fn clone(&self) -> ScalarValue
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ScalarValue
[src]
impl Display for ScalarValue
[src]
impl From<bool> for ScalarValue
[src]
impl From<f32> for ScalarValue
[src]
impl From<f64> for ScalarValue
[src]
impl From<i16> for ScalarValue
[src]
impl From<i32> for ScalarValue
[src]
impl From<i64> for ScalarValue
[src]
impl From<i8> for ScalarValue
[src]
impl From<u16> for ScalarValue
[src]
impl From<u32> for ScalarValue
[src]
impl From<u64> for ScalarValue
[src]
impl From<u8> for ScalarValue
[src]
impl PartialEq<ScalarValue> for ScalarValue
[src]
fn eq(&self, other: &ScalarValue) -> bool
[src]
fn ne(&self, other: &ScalarValue) -> bool
[src]
impl StructuralPartialEq for ScalarValue
[src]
impl TryFrom<&'_ DataType> for ScalarValue
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScalarValue
[src]
impl Send for ScalarValue
[src]
impl Sync for ScalarValue
[src]
impl Unpin for ScalarValue
[src]
impl UnwindSafe for ScalarValue
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,