pub enum MappingIndexer {
Ore {
index_id: Uuid,
mapping: OreMapping,
ore: Box<OREAES128>,
},
Filter {
index_id: Uuid,
mapping: FilterMapping,
filter_key: [u8; 32],
},
}Expand description
An Indexer that indexs a record based on a single index.
Variants§
Implementations§
source§impl MappingIndexer
impl MappingIndexer
sourcepub fn from_mapping(mapping: MappingWithMeta) -> Result<Self, LoadIndexerError>
pub fn from_mapping(mapping: MappingWithMeta) -> Result<Self, LoadIndexerError>
Load a single MappingIndexer from a MappingWithMeta
pub fn index_id(&self) -> Uuid
sourcepub fn vector_from_term(&self, term: VectorTerm) -> TermVector
pub fn vector_from_term(&self, term: VectorTerm) -> TermVector
Create a TermVector from a single term for the current mapping
pub fn unwrap_pipeline(&self) -> &TextPipeline
pub fn mapping_name(&self) -> &'static str
pub fn describe_fields(&self) -> String
pub fn describe_operators(&self) -> String
pub fn is_query_for_mapping(&self, query: &QueryKind) -> bool
pub fn encrypt_query(
&mut self,
query: QueryKind
) -> Result<Option<Vec<Constraint>>, QueryIndexingError>
sourcepub fn encrypt(
&mut self,
record: &Record
) -> Result<Option<TermVector>, RecordIndexingError>
pub fn encrypt(
&mut self,
record: &Record
) -> Result<Option<TermVector>, RecordIndexingError>
Encrypt a Record using the provided mapping
If the Record contains no meaningful data to encrypt for this index, this method will
return None.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MappingIndexer
impl Send for MappingIndexer
impl !Sync for MappingIndexer
impl Unpin for MappingIndexer
impl UnwindSafe for MappingIndexer
Blanket Implementations§
source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
source§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
source§fn approx(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, DefaultApprox>,
fn approx(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, DefaultApprox>,
Approximate the subject with the default scheme.
source§fn approx_by<Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_by<Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject with a specific scheme.
source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, DefaultApprox>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, DefaultApprox>,
Approximate the subject to a given type with the default scheme.
source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
source§fn into_as<Dst>(self) -> Dstwhere
Self: Sized + Into<Dst>,
fn into_as<Dst>(self) -> Dstwhere
Self: Sized + Into<Dst>,
Convert the subject to a given type.
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request