org.apache.lucene.codecs.mockintblock
Class MockVariableIntBlockPostingsFormat
java.lang.Object
org.apache.lucene.codecs.PostingsFormat
org.apache.lucene.codecs.mockintblock.MockVariableIntBlockPostingsFormat
- All Implemented Interfaces:
- NamedSPILoader.NamedSPI
public final class MockVariableIntBlockPostingsFormat
- extends PostingsFormat
A silly test codec to verify core support for variable
sized int block encoders is working. The int encoder
used here writes baseBlockSize ints at once, if the first
int is <= 3, else 2*baseBlockSize.
MockVariableIntBlockPostingsFormat
public MockVariableIntBlockPostingsFormat()
MockVariableIntBlockPostingsFormat
public MockVariableIntBlockPostingsFormat(int baseBlockSize)
toString
public String toString()
- Overrides:
toString
in class PostingsFormat
fieldsConsumer
public FieldsConsumer fieldsConsumer(SegmentWriteState state)
throws IOException
- Specified by:
fieldsConsumer
in class PostingsFormat
- Throws:
IOException
fieldsProducer
public FieldsProducer fieldsProducer(SegmentReadState state)
throws IOException
- Specified by:
fieldsProducer
in class PostingsFormat
- Throws:
IOException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.