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

Method with_key

src/repr/src/relation.rs:312–318  ·  view source on GitHub ↗

Adds a new key for the relation.

(mut self, mut indices: Vec<usize>)

Source from the content-addressed store, hash-verified

310
311 /// Adds a new key for the relation.
312 pub fn with_key(mut self, mut indices: Vec<usize>) -> Self {
313 indices.sort_unstable();
314 if !self.keys.contains(&indices) {
315 self.keys.push(indices);
316 }
317 self
318 }
319
320 pub fn with_keys(mut self, keys: Vec<Vec<usize>>) -> Self {
321 for key in keys {

Callers 15

descMethod · 0.80
plan_create_sourceFunction · 0.80
with_keysMethod · 0.80
concatMethod · 0.80
descMethod · 0.80
pg_catalog.rsFile · 0.80
mz_internal.rsFile · 0.80
notice.rsFile · 0.80

Calls 2

containsMethod · 0.45
pushMethod · 0.45

Tested by 1