Skip to main content

PluginRegistry

Struct PluginRegistry 

Source
pub struct PluginRegistry { /* private fields */ }
Expand description

A complete generation. All maps are built before this value is returned; consumers receive it through Arc and cannot mutate its contents.

Implementations§

Source§

impl PluginRegistry

Source

pub fn invoke_planner_support( &self, support_id: [u8; 16], arguments: &[NormalizedPredicateArgument<'_>], limits: InvocationLimits, ) -> Result<PlannerSupportOutcome, PluginInvocationError>

Invoke a database-bound planner support callback with a closed, versioned predicate frame. The plugin can only return declarative key spans; every span is decoded and canonicalized by the host.

Source

pub fn encode_operator_class_key( &self, object_id: [u8; 16], value: &Value, limits: InvocationLimits, ) -> Result<Value, PluginInvocationError>

Produce one core-owned physical key for an admitted operator class.

B-tree/bitmap classes use their bounded encoder callback. Hash classes only emit semantic components into the host sink; the core HashIndex remains the sole owner of hashing algorithm and seed.

Source

pub fn invoke_scalar_function( &self, object_id: [u8; 16], arguments: &[Value], limits: InvocationLimits, ) -> Result<Value, PluginInvocationError>

Source

pub fn invoke_function_batch( &self, object_id: [u8; 16], rows: &[Vec<Value>], limits: InvocationLimits, ) -> Result<Vec<Value>, PluginInvocationError>

Source

pub fn validate_external_value( &self, value: &Value, ) -> Result<(), PluginInvocationError>

Source

pub fn parse_external_text( &self, type_ref: ExternalTypeRef, text: &str, ) -> Result<Value, PluginInvocationError>

Source

pub fn format_external_text( &self, value: &Value, ) -> Result<String, PluginInvocationError>

Source

pub fn parse_external_binary( &self, type_ref: ExternalTypeRef, bytes: &[u8], ) -> Result<Value, PluginInvocationError>

Source

pub fn format_external_binary( &self, value: &Value, ) -> Result<Vec<u8>, PluginInvocationError>

Source

pub fn external_equal( &self, left: &Value, right: &Value, ) -> Result<bool, PluginInvocationError>

Source

pub fn external_compare( &self, left: &Value, right: &Value, ) -> Result<Ordering, PluginInvocationError>

Source

pub fn external_hash_components( &self, value: &Value, ) -> Result<Vec<HashComponent>, PluginInvocationError>

Source§

impl PluginRegistry

Source

pub fn empty() -> PluginRegistry

Source

pub fn generation(&self) -> u64

Source

pub fn package(&self, id: &[u8; 16]) -> Option<&Arc<RegisteredPackage>>

Source

pub fn package_by_name_and_version( &self, name: &str, version: &str, ) -> Option<&Arc<RegisteredPackage>>

Source

pub fn external_type( &self, id: &[u8; 16], ) -> Option<&Arc<RegisteredExternalType>>

Source

pub fn external_type_by_package_and_local_id( &self, package_id: &[u8; 16], local_id: &str, ) -> Option<&Arc<RegisteredExternalType>>

Source

pub fn function(&self, id: &[u8; 16]) -> Option<&Arc<RegisteredFunction>>

Source

pub fn function_by_package_and_local_id( &self, package_id: &[u8; 16], local_id: &str, ) -> Option<&Arc<RegisteredFunction>>

Source

pub fn operator(&self, id: &[u8; 16]) -> Option<&Arc<RegisteredOperator>>

Source

pub fn operator_by_package_and_local_id( &self, package_id: &[u8; 16], local_id: &str, ) -> Option<&Arc<RegisteredOperator>>

Source

pub fn operator_class( &self, id: &[u8; 16], ) -> Option<&Arc<RegisteredOperatorClass>>

Source

pub fn operator_class_by_package_and_local_id( &self, package_id: &[u8; 16], local_id: &str, ) -> Option<&Arc<RegisteredOperatorClass>>

Source

pub fn planner_support( &self, id: &[u8; 16], ) -> Option<&Arc<RegisteredPlannerSupport>>

Source

pub fn planner_support_by_package_and_local_id( &self, package_id: &[u8; 16], local_id: &str, ) -> Option<&Arc<RegisteredPlannerSupport>>

Source

pub fn status(&self) -> PluginRegistryStatus

Source

pub fn assess_requirements( &self, requirements: &[PackageRequirement], ) -> DatabasePluginAdmission

Trait Implementations§

Source§

impl Clone for PluginRegistry

Source§

fn clone(&self) -> PluginRegistry

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PluginRegistry

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for PluginRegistry

Source§

fn default() -> PluginRegistry

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> CompactArcDrop for T

Source§

unsafe fn drop_and_dealloc(ptr: *mut u8)

Drop the contained data and deallocate the header+data allocation. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V