public abstract class PostingsWriterBase extends PostingsConsumer implements Closeable
PostingsConsumer to support pluggable term dictionaries.
This class contains additional hooks to interact with the provided
term dictionaries such as BlockTreeTermsWriter and
BlockTermsWriter. If you want to re-use one of these existing
implementations and are only interested in customizing the format of
the postings list, extend this class instead.
PostingsReaderBase| Constructor and Description |
|---|
PostingsWriterBase() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
close() |
abstract void |
finishTerm(TermStats stats)
Finishes the current term
|
abstract void |
flushTermsBlock(int start,
int count)
Flush count terms starting at start "backwards", as a
block.
|
abstract void |
setField(FieldInfo fieldInfo) |
abstract void |
start(IndexOutput termsOut) |
abstract void |
startTerm() |
addPosition, finishDoc, merge, startDocpublic abstract void start(IndexOutput termsOut) throws IOException
IOExceptionpublic abstract void startTerm()
throws IOException
IOExceptionpublic abstract void flushTermsBlock(int start,
int count)
throws IOException
IOExceptionpublic abstract void finishTerm(TermStats stats) throws IOException
IOExceptionpublic abstract void setField(FieldInfo fieldInfo)
public abstract void close()
throws IOException
close in interface CloseableIOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.