Exemple #1
0
 private StatInfo calcTableStats(TableInfo ti, Transaction tx)
 {
     lock (threadLock)
     {
         int        numRecs   = 0;
         RecordFile rf        = new RecordFile(ti, tx);
         int        numblocks = 0;
         while (rf.next())
         {
             numRecs++;
             numblocks = rf.currentRid().blockNumber() + 1;
         }
         rf.close();
         return(new StatInfo(numblocks, numRecs));
     }
 }
Exemple #2
0
 public RID getRid()
 {
     return(rf.currentRid());
 }