pub struct ClosureSparqlOpImpl<TEncoding>where
TEncoding: TermEncoding,{ /* private fields */ }
Implementations§
Source§impl<TEncoding> ClosureSparqlOpImpl<TEncoding>where
TEncoding: TermEncoding,
impl<TEncoding> ClosureSparqlOpImpl<TEncoding>where
TEncoding: TermEncoding,
Sourcepub fn new(
return_type: DataType,
closure: impl Fn(ScalarSparqlOpArgs<TEncoding>) -> Result<ColumnarValue, DataFusionError> + 'static,
) -> ClosureSparqlOpImpl<TEncoding>
pub fn new( return_type: DataType, closure: impl Fn(ScalarSparqlOpArgs<TEncoding>) -> Result<ColumnarValue, DataFusionError> + 'static, ) -> ClosureSparqlOpImpl<TEncoding>
Create a new ClosureSparqlOpImpl
.
Trait Implementations§
Source§impl<TEncoding> ScalarSparqlOpImpl<TEncoding> for ClosureSparqlOpImpl<TEncoding>where
TEncoding: TermEncoding,
impl<TEncoding> ScalarSparqlOpImpl<TEncoding> for ClosureSparqlOpImpl<TEncoding>where
TEncoding: TermEncoding,
Source§fn return_type(&self) -> DataType
fn return_type(&self) -> DataType
Returns the return type of this operation.
Source§fn invoke(
&self,
args: ScalarSparqlOpArgs<TEncoding>,
) -> Result<ColumnarValue, DataFusionError>
fn invoke( &self, args: ScalarSparqlOpArgs<TEncoding>, ) -> Result<ColumnarValue, DataFusionError>
Invokes the operation on the given
args
.Auto Trait Implementations§
impl<TEncoding> Freeze for ClosureSparqlOpImpl<TEncoding>
impl<TEncoding> !RefUnwindSafe for ClosureSparqlOpImpl<TEncoding>
impl<TEncoding> !Send for ClosureSparqlOpImpl<TEncoding>
impl<TEncoding> !Sync for ClosureSparqlOpImpl<TEncoding>
impl<TEncoding> Unpin for ClosureSparqlOpImpl<TEncoding>
impl<TEncoding> !UnwindSafe for ClosureSparqlOpImpl<TEncoding>
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
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