From e1a52bea221876972f27dc8c95d662a1ef23c653 Mon Sep 17 00:00:00 2001 From: orbiter Date: Sun, 2 Jul 2006 22:24:13 +0000 Subject: [PATCH] added a class stub for the new database structure: a reverse word index based on a a collection index, which is an index for a set of array files containing row collections. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2271 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/index/indexCollectionRI.java | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 source/de/anomic/index/indexCollectionRI.java diff --git a/source/de/anomic/index/indexCollectionRI.java b/source/de/anomic/index/indexCollectionRI.java new file mode 100644 index 000000000..ed425e0ac --- /dev/null +++ b/source/de/anomic/index/indexCollectionRI.java @@ -0,0 +1,61 @@ +package de.anomic.index; + +import java.io.File; +import java.io.IOException; +import java.util.Iterator; + +import de.anomic.kelondro.kelondroCollectionIndex; +import de.anomic.kelondro.kelondroNaturalOrder; +import de.anomic.kelondro.kelondroRow; + +public class indexCollectionRI extends indexAbstractRI implements indexRI { + + kelondroCollectionIndex collectionIndex; + + public indexCollectionRI(File path, String filenameStub, long buffersize) throws IOException { + kelondroRow rowdef = new kelondroRow(new int[]{}); + + collectionIndex = new kelondroCollectionIndex( + path, filenameStub, 9 /*keyLength*/, + kelondroNaturalOrder.naturalOrder, buffersize, + 1 /*loadfactor*/, rowdef, 8 /*partitions*/); + } + + public int size() { + // TODO Auto-generated method stub + return 0; + } + + public Iterator wordHashes(String startWordHash, boolean rot) { + // TODO Auto-generated method stub + return null; + } + + public indexContainer getContainer(String wordHash, boolean deleteIfEmpty, long maxtime) { + // TODO Auto-generated method stub + return null; + } + + public indexContainer deleteContainer(String wordHash) { + // TODO Auto-generated method stub + return null; + } + + public int removeEntries(String wordHash, String[] referenceHashes, boolean deleteComplete) { + // TODO Auto-generated method stub + return 0; + } + + public indexContainer addEntries(indexContainer newEntries, long creationTime, boolean dhtCase) { + // TODO Auto-generated method stub + return null; + } + + public void close(int waitingSeconds) { + // TODO Auto-generated method stub + + } + + + +}