pub struct StringEncoding;Implementations§
Source§impl StringEncoding
impl StringEncoding
Sourcepub fn data_type() -> DataType
pub fn data_type() -> DataType
Returns the type of the StringEncoding.
Sourcepub fn encode_term(
&self,
term: ThinResult<TermRef<'_>>,
) -> DFResult<StringEncodingScalar>
pub fn encode_term( &self, term: ThinResult<TermRef<'_>>, ) -> DFResult<StringEncodingScalar>
Encodes the term as a StringEncodingScalar.
Trait Implementations§
Source§impl Debug for StringEncoding
impl Debug for StringEncoding
Source§impl TermEncoder<StringEncoding> for StringEncoding
impl TermEncoder<StringEncoding> for StringEncoding
Source§fn encode_terms<'data>(
&self,
terms: impl IntoIterator<Item = ThinResult<Self::Term<'data>>>,
) -> DFResult<StringTermArray>
fn encode_terms<'data>( &self, terms: impl IntoIterator<Item = ThinResult<Self::Term<'data>>>, ) -> DFResult<StringTermArray>
Allows encoding an iterator over RDF terms in an Arrow array.
Source§fn encode_term(
&self,
term: ThinResult<Self::Term<'_>>,
) -> DFResult<StringEncodingScalar>
fn encode_term( &self, term: ThinResult<Self::Term<'_>>, ) -> DFResult<StringEncodingScalar>
Allows encoding a scalar RDF term in an Arrow scalar.
Source§impl TermEncoding for StringEncoding
impl TermEncoding for StringEncoding
Source§type Array = StringTermArray
type Array = StringTermArray
Represents a wrapper for Arrow arrays of this encoding. This can be used in
conjunction with TermDecoder to obtain the values from an Arrow array.
Source§type Scalar = StringEncodingScalar
type Scalar = StringEncodingScalar
Represents a wrapper for Arrow scalars of this encoding. This can be used in
conjunction with TermDecoder to obtain the values from an Arrow scalar.
Source§fn name(&self) -> EncodingName
fn name(&self) -> EncodingName
Returns the name of the encoding.
Source§fn try_new_array(self: &Arc<Self>, array: ArrayRef) -> DFResult<Self::Array>
fn try_new_array(self: &Arc<Self>, array: ArrayRef) -> DFResult<Self::Array>
Checks whether
array contains a value with the correct encoding (i.e., type and possibly
metadata checks). If yes, returns an instance of Self::Array. Otherwise, an error is
returned.Source§fn try_new_scalar(
self: &Arc<Self>,
scalar: ScalarValue,
) -> DFResult<Self::Scalar>
fn try_new_scalar( self: &Arc<Self>, scalar: ScalarValue, ) -> DFResult<Self::Scalar>
Checks whether
scalar contains a value with the correct encoding (i.e., type and possibly
metadata checks). If yes, returns an instance of Self::Scalar. Otherwise, an error is
returned.Source§fn try_new_datum(
self: &Arc<Self>,
value: ColumnarValue,
number_rows: usize,
) -> DFResult<EncodingDatum<Self>>
fn try_new_datum( self: &Arc<Self>, value: ColumnarValue, number_rows: usize, ) -> DFResult<EncodingDatum<Self>>
Checks whether
value contains a value with the correct encoding (i.e., type and possibly
metadata checks). If yes, returns a datum that either wraps an array or a scalar. Otherwise,
an error is returned.Auto Trait Implementations§
impl Freeze for StringEncoding
impl RefUnwindSafe for StringEncoding
impl Send for StringEncoding
impl Sync for StringEncoding
impl Unpin for StringEncoding
impl UnsafeUnpin for StringEncoding
impl UnwindSafe for StringEncoding
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more