Schemas
Wednesday, April 27, 2011
2:37 PM
Schemas
The schema for a table determines what parts constitute the key and what parts constitute the value. 
The default schema for a table is 
[:key]=>[:value], 
which means that an arbitrary element e has parts 
e.key and e.value.
Can make any table have an arbitrary schema via, e.g., 
table :foo [:k1, :k2] => [:v1, :v2, :v3]
constructs a table foo that consists of quintuples 
[e.k1, e.k2, e.v1, e.v2, e.v3] where e is an element