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)); } }
public RID getRid() { return(rf.currentRid()); }