From: andrew <andrew.carroll@okstate.edu>
Subject: Re: Generic Collection
Date: 9 May 2007 07:51:17 -0700
Date: 2007-05-09T07:51:17-07:00 [thread overview]
Message-ID: <1178722277.733981.6200@l77g2000hsb.googlegroups.com> (raw)
In-Reply-To: <1178661586.585164.191690@e51g2000hsg.googlegroups.com>
Actually I take that back. RDB2 looks promising with respect to how I
have my program now. What I want is to be able to change my program
so that I can declare table, tuple and schema to be of a "collection"
type like:
table: collection;
tuple: collection;
schema: collection;
The collection would have to be a common object as in the sense of
Object in Java. So here is an expanded pseudo-code example:
attr1 : attribute;
attr2 : attribute;
attr3 : attribute;
attr4 : attribute;
attr5 : attribute;
attr6 : attribute;
table1 : collection;
table1.add(attr1);
table1.add(attr2);
table1.add(attr3);
table2 : collection;
table2.add(attr4);
table2.add(attr5);
table2.add(attr6);
Or, if I had run a query where I projected attributes out of a table I
could use:
tuple : collection;
and fill it like I did the table.
Then, schema could be a collection of tables or tuples like:
schema : collection;
schema.add(table1);
schema.add(table2);
This again would depend on being able to use a common object like Java
has.
What do you think?
next prev parent reply other threads:[~2007-05-09 14:51 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-08 19:29 Generic Collection andrew
2007-05-08 21:00 ` Georg Bauhaus
2007-05-08 21:59 ` andrew
2007-05-09 14:51 ` andrew [this message]
2007-05-09 16:12 ` Georg Bauhaus
2007-05-09 18:54 ` andrew
2007-05-10 19:31 ` Simon Wright
2007-05-10 22:48 ` andrew
2007-05-11 8:10 ` Georg Bauhaus
2007-05-11 20:41 ` andrew
2007-05-11 21:28 ` Georg Bauhaus
2007-05-11 21:55 ` andrew
2007-05-12 7:18 ` Simon Wright
2007-05-12 7:52 ` Dmitry A. Kazakov
2007-05-13 11:00 ` Simon Wright
2007-05-13 12:11 ` Dmitry A. Kazakov
2007-05-16 0:27 ` Randy Brukardt
2007-05-16 6:05 ` Simon Wright
2007-05-16 7:17 ` Untagged types don't work right - was: " Grein, Christoph (Fa. ESG)
2007-05-16 13:27 ` Benjamin Place
2007-05-14 17:09 ` andrew
2007-05-14 20:00 ` Simon Wright
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox