Package org.apache.lucene.codecs
Class PostingsBaseFormat
- java.lang.Object
-
- org.apache.lucene.codecs.PostingsBaseFormat
-
- Direct Known Subclasses:
Lucene40PostingsBaseFormat,Lucene41PostingsBaseFormat
public abstract class PostingsBaseFormat extends Object
Provides aPostingsReaderBaseandPostingsWriterBase.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPostingsBaseFormat(String name)Sole constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract PostingsReaderBasepostingsReaderBase(SegmentReadState state)Creates thePostingsReaderBasefor this format.abstract PostingsWriterBasepostingsWriterBase(SegmentWriteState state)Creates thePostingsWriterBasefor this format.
-
-
-
Field Detail
-
name
public final String name
Unique name that's used to retrieve this codec when reading the index
-
-
Constructor Detail
-
PostingsBaseFormat
protected PostingsBaseFormat(String name)
Sole constructor.
-
-
Method Detail
-
postingsReaderBase
public abstract PostingsReaderBase postingsReaderBase(SegmentReadState state) throws IOException
Creates thePostingsReaderBasefor this format.- Throws:
IOException
-
postingsWriterBase
public abstract PostingsWriterBase postingsWriterBase(SegmentWriteState state) throws IOException
Creates thePostingsWriterBasefor this format.- Throws:
IOException
-
-