protected static class AtomicIndex.PostingsList extends Object
Constructor and Description |
---|
PostingsList(boolean storePositions) |
Modifier and Type | Method and Description |
---|---|
void |
addPosition(int pos) |
boolean |
checkPosition(int pos)
Checks whether the given position is valid (i.e.
|
void |
clear()
Empties all the data from this postings list making it ready to be reused.
|
void |
flush()
Notifies this postings list that it has received all the data
|
void |
newDocumentPointer(long pointer)
Start storing the data for a new document
|
void |
setCount(int count)
When storing positions, the count is automatically calculated.
|
String |
toString() |
void |
write(it.unimi.di.big.mg4j.index.IndexWriter indexWriter)
Writes the data contained in this postings list to an index writer
|
public void newDocumentPointer(long pointer)
pointer
- public void addPosition(int pos)
public void setCount(int count)
count
- public boolean checkPosition(int pos)
addPosition(int)
with the same value would actually be a
no-operation.pos
- public void flush()
public void clear()
public void write(it.unimi.di.big.mg4j.index.IndexWriter indexWriter) throws IOException
indexWriter
- IOException
Copyright © 2021 GATE. All rights reserved.