MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / tile

Function tile

nodedb-array/src/query/project.rs:91–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89 }
90
91 fn tile() -> SparseTile {
92 let s = schema();
93 let mut b = SparseTileBuilder::new(&s);
94 b.push(
95 &[CoordValue::Int64(0)],
96 &[
97 CellValue::Int64(1),
98 CellValue::Float64(1.5),
99 CellValue::String("x".into()),
100 ],
101 )
102 .unwrap();
103 b.push(
104 &[CoordValue::Int64(1)],
105 &[
106 CellValue::Int64(2),
107 CellValue::Float64(2.5),
108 CellValue::String("y".into()),
109 ],
110 )
111 .unwrap();
112 b.build()
113 }
114
115 #[test]
116 fn project_keeps_subset_in_order() {

Callers 2

Calls 3

schemaFunction · 0.70
pushMethod · 0.45
buildMethod · 0.45

Tested by 2