Skip to main content

NotificationKind

Enum NotificationKind 

Source
pub enum NotificationKind {
Show 30 variants CartesianProduct, UnboundedVariableLengthPattern, AllNodesScan, LabelDisjunctionScan, MissingIndex, EagerAggregation, EstimationMiss, UnknownLabelWarning, UnknownRelationshipTypeWarning, UnknownPropertyKeyWarning, DeprecatedFunction, DeprecatedProcedure, CallSubqueryWithoutScope, MergeSelfReference, AmbiguousSubclauseReference, ComplexSubclauseReference, CreateSelfReference, SubqueryVariableShadowing, DynamicProperty, UnsatisfiableRelationshipTypeExpression, RepeatedRelationshipVariable, SearchIdentifierShadowingVariable, ExhaustiveShortestPath, SchemaIndexOrConstraintAlreadyExists, SchemaIndexOrConstraintDoesNotExist, SchemaVectorIndexDimensionsNotSpecified, HintedIndexNotFound, JoinHintUnfulfillable, RedundantOptionalProcedure, RedundantOptionalSubquery,
}
Expand description

The notification kinds (ADR-0363 decision 1) — the row identities of the one vocabulary below, generated from its single table.

Variants§

§

CartesianProduct

A multi-pattern MATCH whose patterns share no join anchor.

§

UnboundedVariableLengthPattern

A variable-length relationship pattern with no upper bound.

§

AllNodesScan

A label-less node scan while a property index exists.

§

LabelDisjunctionScan

A static label disjunction no seek serves: the scan answers per disjunct label (LABS-1083).

§

MissingIndex

A label/property equality with no range index on the pair.

§

EagerAggregation

An aggregation whose input estimate reaches the eager threshold.

§

EstimationMiss

PROFILE only: an estimate at least 10x the actual rows.

§

UnknownLabelWarning

A node pattern naming a label absent from the catalog.

§

UnknownRelationshipTypeWarning

A relationship pattern naming a type absent from the catalog.

§

UnknownPropertyKeyWarning

A predicate or property access naming an absent property key.

§

DeprecatedFunction

A function call resolving to a deprecated catalog entry.

§

DeprecatedProcedure

A CALL resolving to a deprecated procedure.

§

CallSubqueryWithoutScope

A CALL { … } subquery with no variable scope clause.

§

MergeSelfReference

A MERGE whose property map references the entity it merges.

§

AmbiguousSubclauseReference

A projection subclause expression (ORDER BY/WHERE) referencing a variable that the projection’s own alias re-binds.

§

ComplexSubclauseReference

A projection subclause expression containing a complex projection item expression as a proper sub-expression.

§

CreateSelfReference

A CREATE whose property definition references an entity created in the same clause.

§

SubqueryVariableShadowing

A variable declared in a subquery that shadows an outer variable.

§

DynamicProperty

A dynamic property-key predicate on a variable whose label (or relationship type) carries an index no static predicate can serve.

§

UnsatisfiableRelationshipTypeExpression

A relationship type expression no single type can satisfy.

§

RepeatedRelationshipVariable

A relationship variable repeated across pattern elements.

§

SearchIdentifierShadowingVariable

A SEARCH index identifier sharing a name with a variable in scope.

§

ExhaustiveShortestPath

A shortestPath whose predicates force exhaustive evaluation.

§

SchemaIndexOrConstraintAlreadyExists

A schema DDL command that had no effect because an identical or schema-equivalent index/constraint already exists (00NA0).

§

SchemaIndexOrConstraintDoesNotExist

A DROP INDEX/CONSTRAINT … IF EXISTS that had no effect because no such index/constraint exists (00NA1).

§

SchemaVectorIndexDimensionsNotSpecified

A CREATE VECTOR INDEX that omitted vector.dimensions (00NA2).

§

HintedIndexNotFound

A USING INDEX hint no catalog index can serve (01N31).

§

JoinHintUnfulfillable

A USING JOIN ON hint the planner could not fulfil (01N30).

§

RedundantOptionalProcedure

An OPTIONAL CALL over a procedure that produces no rows (03N61).

§

RedundantOptionalSubquery

An OPTIONAL CALL { … } whose body projects no columns (03N62).

Implementations§

Source§

impl NotificationKind

Source

pub fn dedups_identical(self) -> bool

Whether two notifications of this kind with the same description are the same finding (true) or two occurrences that must both be reported (false). Name-based diagnostics collapse; every occurrence-scoped kind — a deprecated call, a clause-shaped deprecation, a per-pattern performance hint — keeps its duplicates, because Neo4j reports one notification per occurrence.

Source

pub fn is_plan_warning(self) -> bool

Whether the plan table already renders this kind (ADR-0363 decision 8): the kinds that project to a PlanWarning variant, whose one text rendering is the plan table’s Warnings column plus footer (ADR-0344/0345). The other operator-scoped kinds (UnboundedVariableLengthPattern, MissingIndex, EagerAggregation) do not join that column, so a text block carries them. The membership is the row’s plan_warning column, so a new kind states its side where it names its metadata.

Source

pub fn code(self) -> &'static str

The diagnostic code (Neo.ClientNotification.* for a Neo4j analog, Relate.Notification.* for an engine-own kind).

Source

pub fn gql_status(self) -> &'static str

The GQLSTATUS value (03N90, 03C90, 01N50, …).

Source

pub fn severity(self) -> NotificationSeverity

The severity (INFORMATION or WARNING).

Source

pub fn category(self) -> NotificationCategory

The category (PERFORMANCE, UNRECOGNIZED or DEPRECATION).

Source

pub fn title(self) -> &'static str

The one canonical human title for this kind — defined here, never invented by a caller.

Source

pub fn remedy(self) -> &'static str

The kind’s canonical remedy, used when a notification carries no instance-specific one.

Trait Implementations§

Source§

impl Clone for NotificationKind

Source§

fn clone(&self) -> Self

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 Copy for NotificationKind

Source§

impl Debug for NotificationKind

Source§

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

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

impl Eq for NotificationKind

Source§

impl Hash for NotificationKind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for NotificationKind

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for NotificationKind

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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> 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.