org.apache.lucene.codecs
Class PostingsWriterBase
java.lang.Object
org.apache.lucene.codecs.PostingsConsumer
org.apache.lucene.codecs.PostingsWriterBase
- All Implemented Interfaces:
- Closeable
- Direct Known Subclasses:
- Lucene40PostingsWriter, PulsingPostingsWriter, SepPostingsWriter
public abstract class PostingsWriterBase
- extends PostingsConsumer
- implements Closeable
Extension of 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.
- See Also:
PostingsReaderBase- WARNING: This API is experimental and might change in incompatible ways in the next release.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PostingsWriterBase
public PostingsWriterBase()
start
public abstract void start(IndexOutput termsOut)
throws IOException
- Throws:
IOException
startTerm
public abstract void startTerm()
throws IOException
- Throws:
IOException
flushTermsBlock
public abstract void flushTermsBlock(int start,
int count)
throws IOException
- Flush count terms starting at start "backwards", as a
block. start is a negative offset from the end of the
terms stack, ie bigger start means further back in
the stack.
- Throws:
IOException
finishTerm
public abstract void finishTerm(TermStats stats)
throws IOException
- Finishes the current term
- Throws:
IOException
setField
public abstract void setField(FieldInfo fieldInfo)
close
public abstract void close()
throws IOException
- Specified by:
close in interface Closeable
- Throws:
IOException
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.