From: Wolfgang M. M. <wol...@us...> - 2004-07-14 19:03:38
|
Update of /cvsroot/exist/eXist-1.0/src/org/exist/storage/store In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14412/src/org/exist/storage/store Modified Files: BFile.java Log Message: Added optional term frequency counts to fulltext index. Index: BFile.java =================================================================== RCS file: /cvsroot/exist/eXist-1.0/src/org/exist/storage/store/BFile.java,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** BFile.java 8 Jun 2004 08:16:15 -0000 1.26 --- BFile.java 14 Jul 2004 19:03:25 -0000 1.27 *************** *** 55,58 **** --- 55,59 ---- import org.exist.util.ReadOnlyException; import org.exist.util.ReentrantReadWriteLock; + import org.exist.util.OrderedLinkedList.Node; import org.exist.xquery.TerminatedException; *************** *** 864,868 **** } ! private final static class FreeSpace implements Comparable { /** * Log4J Logger for this class --- 865,870 ---- } ! private final static class FreeSpace extends OrderedLinkedList.Node { ! /** * Log4J Logger for this class *************** *** 879,884 **** } ! public int compareTo(Object obj) { ! FreeSpace other = (FreeSpace) obj; if (free < other.free) return -1; --- 881,886 ---- } ! public int compareTo(Node node) { ! FreeSpace other = (FreeSpace) node; if (free < other.free) return -1; *************** *** 887,892 **** else return 0; ! } ! public int getFree() { return free; --- 889,898 ---- else return 0; ! } ! ! public boolean equals(Node other) { ! return page == ((FreeSpace)other).page; ! } ! public int getFree() { return free; *************** *** 939,945 **** return null; } ! ! public long getLastDataPage() { ! return lastDataPage; } --- 945,952 ---- return null; } ! ! public void removeFreeSpace(FreeSpace space) { ! if (space == null) return; ! freeList.removeNode(space); } *************** *** 966,969 **** --- 973,980 ---- } + public long getLastDataPage() { + return lastDataPage; + } + public void read(java.io.RandomAccessFile raf) throws IOException { super.read(raf); *************** *** 979,987 **** } - public void removeFreeSpace(FreeSpace space) { - if (space == null) return; - freeList.remove(space); - } - public void setLastDataPage(long last) { lastDataPage = last; --- 990,993 ---- |