public abstract class AbstractIndex<ReferenceType extends Reference> extends java.lang.Object implements Index<ReferenceType>
Modifier and Type | Field and Description |
---|---|
protected ReferenceFactory<ReferenceType> |
factory |
Constructor and Description |
---|
AbstractIndex(ReferenceFactory<ReferenceType> factory) |
Modifier and Type | Method and Description |
---|---|
void |
merge(Index<ReferenceType> otherIndex)
merge this index with another index
|
TermSearch<ReferenceType> |
query(HandleSet queryHashes,
HandleSet excludeHashes,
HandleSet urlselection,
ReferenceFactory<ReferenceType> termFactory,
int maxDistance) |
Row |
referenceRow()
ask for the Row that is used to construct one reference
|
int |
remove(HandleSet termHashes,
byte[] urlHashBytes) |
java.util.TreeMap<byte[],ReferenceContainer<ReferenceType>> |
searchConjunction(HandleSet wordHashes,
HandleSet urlselection)
collect containers for given word hashes.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, add, clear, close, count, delete, get, has, minMem, referenceContainerIterator, referenceCountIterator, remove, remove, remove, removeDelayed, removeDelayed, size, termKeyLength, termKeyOrdering
protected final ReferenceFactory<ReferenceType extends Reference> factory
public AbstractIndex(ReferenceFactory<ReferenceType> factory)
public void merge(Index<ReferenceType> otherIndex) throws java.io.IOException, SpaceExceededException
merge
in interface Index<ReferenceType extends Reference>
otherIndex
- java.io.IOException
SpaceExceededException
public int remove(HandleSet termHashes, byte[] urlHashBytes) throws java.io.IOException
remove
in interface Index<ReferenceType extends Reference>
java.io.IOException
public java.util.TreeMap<byte[],ReferenceContainer<ReferenceType>> searchConjunction(HandleSet wordHashes, HandleSet urlselection)
searchConjunction
in interface Index<ReferenceType extends Reference>
wordHashes
- urlselection
- public TermSearch<ReferenceType> query(HandleSet queryHashes, HandleSet excludeHashes, HandleSet urlselection, ReferenceFactory<ReferenceType> termFactory, int maxDistance) throws SpaceExceededException
SpaceExceededException
public Row referenceRow()
Index
referenceRow
in interface Index<ReferenceType extends Reference>