Class BlockTreeOrdsPostingsFormat
- java.lang.Object
-
- org.apache.lucene.codecs.PostingsFormat
-
- org.apache.lucene.codecs.blocktreeords.BlockTreeOrdsPostingsFormat
-
- All Implemented Interfaces:
NamedSPILoader.NamedSPI
public class BlockTreeOrdsPostingsFormat extends PostingsFormat
UsesOrdsBlockTreeTermsWriterwithLucene912PostingsWriter.
-
-
Field Summary
Fields Modifier and Type Field Description static intBLOCK_SIZEFixed packed block size, number of integers encoded in a single packed block.-
Fields inherited from class org.apache.lucene.codecs.PostingsFormat
EMPTY
-
-
Constructor Summary
Constructors Constructor Description BlockTreeOrdsPostingsFormat()CreatesLucene41PostingsFormatwith default settings.BlockTreeOrdsPostingsFormat(int minTermBlockSize, int maxTermBlockSize)CreatesLucene41PostingsFormatwith custom values forminBlockSizeandmaxBlockSizepassed to block terms dictionary.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldsConsumerfieldsConsumer(SegmentWriteState state)FieldsProducerfieldsProducer(SegmentReadState state)StringtoString()-
Methods inherited from class org.apache.lucene.codecs.PostingsFormat
availablePostingsFormats, forName, getName, reloadPostingsFormats
-
-
-
-
Field Detail
-
BLOCK_SIZE
public static final int BLOCK_SIZE
Fixed packed block size, number of integers encoded in a single packed block.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BlockTreeOrdsPostingsFormat
public BlockTreeOrdsPostingsFormat()
CreatesLucene41PostingsFormatwith default settings.
-
BlockTreeOrdsPostingsFormat
public BlockTreeOrdsPostingsFormat(int minTermBlockSize, int maxTermBlockSize)CreatesLucene41PostingsFormatwith custom values forminBlockSizeandmaxBlockSizepassed to block terms dictionary.
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classPostingsFormat
-
fieldsConsumer
public FieldsConsumer fieldsConsumer(SegmentWriteState state) throws IOException
- Specified by:
fieldsConsumerin classPostingsFormat- Throws:
IOException
-
fieldsProducer
public FieldsProducer fieldsProducer(SegmentReadState state) throws IOException
- Specified by:
fieldsProducerin classPostingsFormat- Throws:
IOException
-
-