gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] gzz/lava/gzz/storm IndexedPool.java


From: Benja Fallenstein
Subject: [Gzz-commits] gzz/lava/gzz/storm IndexedPool.java
Date: Thu, 21 Nov 2002 14:11:37 -0500

CVSROOT:        /cvsroot/gzz
Module name:    gzz
Changes by:     Benja Fallenstein <address@hidden>      02/11/21 14:11:36

Modified files:
        lava/gzz/storm : IndexedPool.java 

Log message:
        More IndexedPool thinking

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/lava/gzz/storm/IndexedPool.java.diff?tr1=1.2&tr2=1.3&r1=text&r2=text

Patches:
Index: gzz/lava/gzz/storm/IndexedPool.java
diff -u gzz/lava/gzz/storm/IndexedPool.java:1.2 
gzz/lava/gzz/storm/IndexedPool.java:1.3
--- gzz/lava/gzz/storm/IndexedPool.java:1.2     Sat Nov 16 09:19:00 2002
+++ gzz/lava/gzz/storm/IndexedPool.java Thu Nov 21 14:11:36 2002
@@ -28,8 +28,13 @@
  *  For many purposes, you not only need to retrieve blocks for block ids
  *  from a pool, but need some kind of "reverse lookup"-- for example,
  *  "get me all blocks that transclude this xanalogical span." This interface
- *  provides some standard reverse lookups which pool implementations
- *  should generally support.
+ *  provides a general way to implement such indexes.
+ *  <p>
+ *  XXX Explain how this works.
+ *  <p>
+ *  XXX Does <code>Map</code> suffice for a db?
+ *  It certainly does not have any support
+ *  for asynchronizity. Hmmm...
  */
 public interface IndexedPool extends StormPool {
 
@@ -38,6 +43,7 @@
     interface Indexer {
        void add(Block b);
        void remove(Block b);
+       void change(Set add, Set remove);
     }
 
     interface IndexType {
@@ -50,35 +56,8 @@
            }
        }
 
-       Result create();
+       Result create(IndexedPool pool, Map db);
     }
 
     Index getIndex(IndexType type);
-
-    /** Get a <code>Pointer</code> instance for a given pointer id.
-     *  The <code>Pointer</code> instance provides information about the
-     *  history of the given pointer inside this pool (what it currently
-     *  points to, what it used to point to etc.).
-     *  <p>
-     *  Pointer ids are URIs starting with "<code>storm:pointer:</code>";
-     *  see <code>Pointer</code> javadoc.
-     *  @see Pointer
-     */
-    //Pointer getPointer(String id) throws IOException;
-
-    /** Get a set of <code>BlockId</code>s of diffs
-     *  which are diffs <em>from</em> the version identified
-     *  by the given id. For the purposes of this method,
-     *  diffs are recognized by the
-     *  <code>X-Gzz-Diff-From</code> header.
-     */
-    //Set getDiffsFrom(BlockId id) throws IOException;
-
-    /** Get a set of <code>BlockId</code>s of diffs
-     *  which are diffs <em>from</em> the version identified
-     *  by the given id. For the purposes of this method,
-     *  diffs are recognized by the
-     *  <code>X-Gzz-Diff-To</code> header.
-     */
-    //Set getDiffsTo(BlockId id) throws IOException;
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]