MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / get

Method get

src/expr/src/row/collection.rs:151–153  ·  view source on GitHub ↗

Returns a [`RowRef`] for the entry at `idx`, if one exists.

(&self, idx: usize)

Source from the content-addressed store, hash-verified

149
150 /// Returns a [`RowRef`] for the entry at `idx`, if one exists.
151 pub fn get(&self, idx: usize) -> Option<(&RowRef, &NonZeroUsize)> {
152 Some((self.rows.get(idx)?, self.diffs.get(idx)?))
153 }
154
155 /// "Sorts" the [`RowCollection`] by the column order in `order_by`. The output will be sorted
156 /// if the inputs were all sorted by the given order; otherwise, the order is unspecified.

Callers 15

keys_with_input_keysMethod · 0.45
min_max_iterMethod · 0.45
undistribute_and_orMethod · 0.45
may_containMethod · 0.45
unmaterializableMethod · 0.45
first_value_innerFunction · 0.45
last_value_innerFunction · 0.45
countMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_row_collectionFunction · 0.36
test_sortFunction · 0.36