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

Function schema

nodedb-array/src/query/retention.rs:342–353  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

340 use crate::types::domain::{Domain, DomainBound};
341
342 fn schema() -> ArraySchema {
343 ArraySchemaBuilder::new("t")
344 .dim(DimSpec::new(
345 "x",
346 DimType::Int64,
347 Domain::new(DomainBound::Int64(0), DomainBound::Int64(1000)),
348 ))
349 .attr(AttrSpec::new("v", AttrType::Int64, true))
350 .tile_extents(vec![100])
351 .build()
352 .unwrap()
353 }
354
355 /// Write a segment with the given (TileId, SparseTile) pairs (must be
356 /// strictly ascending by TileId) and return the in-memory bytes.

Calls 4

buildMethod · 0.45
tile_extentsMethod · 0.45
attrMethod · 0.45
dimMethod · 0.45