public interface BufferedIndex<ReferenceType extends Reference> extends Index<ReferenceType>
Modifier and Type | Method and Description |
---|---|
long |
getBufferMaxAge()
return the date of the most recent buffer entry
|
int |
getBufferMaxReferences()
return the maximum number of references, that one buffer entry has stored
|
long |
getBufferMinAge()
return the date of the oldest buffer entry
|
int |
getBufferSize()
get the size of the buffer content
|
long |
getBufferSizeBytes()
calculate the memory that is taken by the buffer.
|
java.util.TreeSet<ReferenceContainer<ReferenceType>> |
referenceContainer(byte[] startHash,
boolean rot,
boolean excludePrivate,
int count,
boolean buffer)
collect reference container in index.
|
CloneableIterator<ReferenceContainer<ReferenceType>> |
referenceContainerIterator(byte[] startHash,
boolean rot,
boolean excludePrivate,
boolean buffer)
iterate over entries in index.
|
void |
setBufferMaxWordCount(int maxWords)
set the size of the buffer, which can be defined with a given maximum number
of words that shall be stored.
|
add, add, clear, close, count, delete, get, has, merge, minMem, referenceContainerIterator, referenceCountIterator, referenceRow, remove, remove, remove, remove, removeDelayed, removeDelayed, searchConjunction, size, termKeyLength, termKeyOrdering
void setBufferMaxWordCount(int maxWords)
int getBufferMaxReferences()
long getBufferMinAge()
long getBufferMaxAge()
long getBufferSizeBytes()
int getBufferSize()
CloneableIterator<ReferenceContainer<ReferenceType>> referenceContainerIterator(byte[] startHash, boolean rot, boolean excludePrivate, boolean buffer) throws java.io.IOException
startHash
- rot
- buffer
- java.io.IOException
java.util.TreeSet<ReferenceContainer<ReferenceType>> referenceContainer(byte[] startHash, boolean rot, boolean excludePrivate, int count, boolean buffer) throws java.io.IOException
startHash
- rot
- count
- buffer
- java.io.IOException