public OidEnumerator(AssocDB db, int[] oids, int n)
 {
     this.oids = oids;
     this.n    = n;
     this.db   = db;
     Reset();
 }
 public MergeEnumerator(AssocDB db, IEnumerator <Item> e1, IEnumerator <Item> e2)
 {
     this.db = db;
     this.e1 = (PersistentEnumerator)e1;
     this.e2 = (PersistentEnumerator)e2;
     Reset();
 }
 internal protected Root(AssocDB db)
     : base(db.storage)
 {
     this.db       = db;
     attributes    = db.storage.CreateIndex(typeof(string), true);
     relations     = db.storage.CreateIndex(typeof(long), false);
     fullTextIndex = db.CreateFullTextIndex();
 }
 internal protected Item(AssocDB db)
     : base(db.storage)
 {
     this.db       = db;
     fieldIds      = new int[0];
     stringFields  = new String[0];
     numericFields = new double[0];
     relations     = db.storage.CreateLink(0);
 }
 public ItemComparator(AssocDB db, OrderBy[] orderBy)
 {
     ids = new int[orderBy.Length];
     for (int i = 0; i < orderBy.Length; i++)
     {
         ids[i] = db.name2id[orderBy[i].name];
     }
     this.orderBy = orderBy;
 }
示例#6
0
 internal protected Root(AssocDB db)
     : base(db.storage)
 {
     this.db = db;
     attributes = db.storage.CreateIndex(typeof(string), true);
     relations = db.storage.CreateIndex(typeof(long), false);
     fullTextIndex = db.CreateFullTextIndex();
 }
 public override void OnLoad()
 {
     db = ((AssocDB.Root)Storage.Root).db;
 }
 protected internal ReadWriteTransaction(AssocDB db)
     : base(db)
 {
 }
 internal protected ReadOnlyTransaction(AssocDB db)
 {
     this.db = db;
     active  = true;
 }
 public MergeEnumerable(AssocDB db, IEnumerable <Item> e1, IEnumerable <Item> e2)
 {
     this.db = db;
     this.e1 = e1;
     this.e2 = e2;
 }
 public JoinEnumerator(AssocDB db, IEnumerator <Item> e1, IEnumerator <Item> e2)
 {
     this.db = db;
     this.e1 = (PersistentEnumerator)e1;
     this.e2 = (PersistentEnumerator)e2;
 }
 public OidEnumerable(AssocDB db)
 {
     this.db = db;
     oids    = new int[1024];
 }
示例#13
0
 Library(int authors)
 {
     nAuthors = authors;
     storage = StorageFactory.Instance.CreateStorage();
     storage.Open("library.dbs");
     db = new AssocDB(storage);
 }
示例#14
0
 Hospital()
 {
     storage = StorageFactory.Instance.CreateStorage();
     storage.Open("hospital.dbs");
     db = new AssocDB(storage);
 }