The Mozilla
Organization
At A Glance
Feedback
Get Involved
Newsgroups
License Terms
Newsbot
Developer Docs
Roadmap
Projects
Ports
Module Owners
Hacking
Get the Source
Build It
Testing
Download
Bugzilla
Bug Writing
Tools
View Source
Tree Status
New Checkins
Submit A Bug
FAQ
Search
Class grendel.storage.intertwingle.HackDB
All Packages  This Package  Class Hierarchy  Class Search  Index

Class grendel.storage.intertwingle.HackDB

java.lang.Object
   |
   +----grendel.storage.intertwingle.BaseDB
           |
           +----grendel.storage.intertwingle.HackDB

This is a completely wretched thing that implements a RDF-ish database. It works by generating zillions of tiny files. We should never ever really use this; it's just for playing. If we actually ever do ship this, I will be forced to spend the rest of my life hunting down every copy on every machine in the world and eradicating it.


final class  HackDB
     extends grendel.storage.intertwingle.BaseDB
{
          // Fields 4
     private Hashtable reverseslotdirs;
     private Hashtable slotdirs;
     private File tmpfile;
     private File top;

          // Constructors 1
     HackDB(File) throws IOException;

          // Methods 8
     public synchronized void assert(String, String, String) throws IOException;
     private void ensureDirectory(File) throws IOException;
     public Enumeration findAll(String, String, boolean) throws IOException;
     public synchronized String findFirst(String, String, boolean) throws IOException;
     private File findSlotFile(String, boolean) throws IOException;
     private void nukeone(File, String, String) throws IOException;
     private void putone(File, String, String) throws IOException;
     public synchronized void unassert(String, String, String) throws IOException;
}



Fields


top

   private File top


tmpfile

   private File tmpfile


slotdirs

   private Hashtable slotdirs


reverseslotdirs

   private Hashtable reverseslotdirs



Constructors


HackDB

   HackDB(File f)  throws IOException



Methods


ensureDirectory

   private void ensureDirectory(File f)  throws IOException


findSlotFile

   private File findSlotFile(String name, 
                             boolean reverse)  throws IOException


putone

   private void putone(File dir, 
                       String name, 
                       String value)  throws IOException


nukeone

   private void nukeone(File dir, 
                        String name, 
                        String value)  throws IOException


assert

   public synchronized void assert(String name, 
                                   String slot, 
                                   String value)  throws IOException


unassert

   public synchronized void unassert(String name, 
                                     String slot, 
                                     String value)  throws IOException


findFirst

   public synchronized String findFirst(String name, 
                                        String slot, 
                                        boolean reverse)  throws IOException


findAll

   public Enumeration findAll(String name, 
                              String slot, 
                              boolean reverse)  throws IOException


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4
Copyright © 1998-1999 The Mozilla Organization.
Last modified December 25, 1998.