MCPcopy Create free account
hub / github.com/apache/arrow-rs / normalized_keys

Method normalized_keys

arrow-array/src/array/dictionary_array.rs:1048–1053  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1046 }
1047
1048 fn normalized_keys(&self) -> Vec<usize> {
1049 let v_len = self.values().len();
1050 assert_ne!(v_len, 0);
1051 let iter = self.keys().values().iter();
1052 iter.map(|x| x.as_usize().min(v_len - 1)).collect()
1053 }
1054
1055 fn with_values(&self, values: ArrayRef) -> ArrayRef {
1056 Arc::new(self.with_values(values))

Callers 7

newMethod · 0.80
logical_indicesFunction · 0.80
scalar_indexFunction · 0.80
string_applyFunction · 0.80
vectored_iterFunction · 0.80
binary_applyFunction · 0.80
vectored_iterFunction · 0.80

Calls 6

collectMethod · 0.80
as_usizeMethod · 0.80
lenMethod · 0.45
valuesMethod · 0.45
iterMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected