Skip to main content

OpCode

Enum OpCode 

Source
#[repr(u8)]
pub enum OpCode {
Show 76 variants Auth = 1, Ping = 2, Status = 3, PointGet = 16, PointPut = 17, PointDelete = 18, VectorSearch = 19, RangeScan = 20, CrdtRead = 21, CrdtApply = 22, GraphRagFusion = 23, AlterCollectionPolicy = 24, Sql = 32, Ddl = 33, Explain = 34, CopyFrom = 35, Set = 48, Show = 49, Reset = 50, Begin = 64, Commit = 65, Rollback = 66, GraphHop = 80, GraphNeighbors = 81, GraphPath = 82, GraphSubgraph = 83, EdgePut = 84, EdgeDelete = 85, GraphAlgo = 86, GraphMatch = 87, SpatialScan = 25, TimeseriesScan = 26, TimeseriesIngest = 27, TextSearch = 96, HybridSearch = 97, VectorBatchInsert = 112, DocumentBatchInsert = 113, KvScan = 114, KvExpire = 115, KvPersist = 116, KvGetTtl = 117, KvBatchGet = 118, KvBatchPut = 119, KvFieldGet = 120, KvFieldSet = 121, DocumentUpdate = 122, DocumentScan = 123, DocumentUpsert = 124, DocumentBulkUpdate = 125, DocumentBulkDelete = 126, VectorInsert = 127, VectorMultiSearch = 128, VectorDelete = 129, ColumnarScan = 130, ColumnarInsert = 131, RecursiveScan = 132, DocumentTruncate = 133, DocumentEstimateCount = 134, DocumentInsertSelect = 135, DocumentRegister = 136, DocumentDropIndex = 137, KvRegisterIndex = 138, KvDropIndex = 139, KvTruncate = 140, VectorSetParams = 141, KvIncr = 142, KvIncrFloat = 143, KvCas = 144, KvGetSet = 145, KvRegisterSortedIndex = 146, KvDropSortedIndex = 147, KvSortedIndexRank = 148, KvSortedIndexTopK = 149, KvSortedIndexRange = 150, KvSortedIndexCount = 151, KvSortedIndexScore = 152,
}
Expand description

Operation codes for the native binary protocol.

Encoded as a single u8 in both the MessagePack frame and JSON frame (e.g. {"op":3} for Status). The #[serde(try_from = "u8", into = "u8")] attribute makes JSON encoding consistent with the numeric opcode values.

Variants§

§

Auth = 1

§

Ping = 2

§

Status = 3

Report startup/readiness status. Returns the current startup phase and whether the node is healthy. Does not require authentication.

§

PointGet = 16

§

PointPut = 17

§

PointDelete = 18

§

VectorSearch = 19

§

RangeScan = 20

§

CrdtRead = 21

§

CrdtApply = 22

§

GraphRagFusion = 23

§

AlterCollectionPolicy = 24

§

Sql = 32

§

Ddl = 33

§

Explain = 34

§

CopyFrom = 35

§

Set = 48

§

Show = 49

§

Reset = 50

§

Begin = 64

§

Commit = 65

§

Rollback = 66

§

GraphHop = 80

§

GraphNeighbors = 81

§

GraphPath = 82

§

GraphSubgraph = 83

§

EdgePut = 84

§

EdgeDelete = 85

§

GraphAlgo = 86

§

GraphMatch = 87

§

SpatialScan = 25

§

TimeseriesScan = 26

§

TimeseriesIngest = 27

§

TextSearch = 96

§

HybridSearch = 97

§

VectorBatchInsert = 112

§

DocumentBatchInsert = 113

§

KvScan = 114

§

KvExpire = 115

§

KvPersist = 116

§

KvGetTtl = 117

§

KvBatchGet = 118

§

KvBatchPut = 119

§

KvFieldGet = 120

§

KvFieldSet = 121

§

DocumentUpdate = 122

§

DocumentScan = 123

§

DocumentUpsert = 124

§

DocumentBulkUpdate = 125

§

DocumentBulkDelete = 126

§

VectorInsert = 127

§

VectorMultiSearch = 128

§

VectorDelete = 129

§

ColumnarScan = 130

§

ColumnarInsert = 131

§

RecursiveScan = 132

§

DocumentTruncate = 133

§

DocumentEstimateCount = 134

§

DocumentInsertSelect = 135

§

DocumentRegister = 136

§

DocumentDropIndex = 137

§

KvRegisterIndex = 138

§

KvDropIndex = 139

§

KvTruncate = 140

§

VectorSetParams = 141

§

KvIncr = 142

§

KvIncrFloat = 143

§

KvCas = 144

§

KvGetSet = 145

§

KvRegisterSortedIndex = 146

§

KvDropSortedIndex = 147

§

KvSortedIndexRank = 148

§

KvSortedIndexTopK = 149

§

KvSortedIndexRange = 150

§

KvSortedIndexCount = 151

§

KvSortedIndexScore = 152

Implementations§

Source§

impl OpCode

Source

pub fn is_write(&self) -> bool

Returns true if this operation is a write that requires WAL append.

Trait Implementations§

Source§

impl Clone for OpCode

Source§

fn clone(&self) -> OpCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for OpCode

Source§

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

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

impl<'de> Deserialize<'de> for OpCode

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<OpCode> for u8

Source§

fn from(op: OpCode) -> u8

Converts to this type from the input type.
Source§

impl<'__msgpack_de> FromMessagePack<'__msgpack_de> for OpCode

Source§

fn read<R: Read<'__msgpack_de>>(reader: &mut R) -> Result<Self, Error>
where Self: Sized,

Reads the MessagePack representation of this value from the provided reader.
Source§

impl Hash for OpCode

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 OpCode

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for OpCode

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl ToMessagePack for OpCode

Source§

fn write<W: Write>(&self, writer: &mut W) -> Result<(), Error>

Writes the MessagePack representation of this value into the provided writer.
Source§

impl TryFrom<u8> for OpCode

Source§

type Error = String

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

fn try_from(value: u8) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Copy for OpCode

Source§

impl Eq for OpCode

Source§

impl StructuralPartialEq for OpCode

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> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
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<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> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

Source§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
Source§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> FromMessagePackOwned for T
where T: for<'a> FromMessagePack<'a>,