public final class MockVariableIntBlockPostingsFormat extends PostingsFormat
| Modifier and Type | Class and Description |
|---|---|
static class |
MockVariableIntBlockPostingsFormat.MockIntFactory
If the first value is <= 3, writes baseBlockSize vInts at once,
otherwise writes 2*baseBlockSize vInts.
|
EMPTY| Constructor and Description |
|---|
MockVariableIntBlockPostingsFormat() |
MockVariableIntBlockPostingsFormat(int baseBlockSize) |
| Modifier and Type | Method and Description |
|---|---|
FieldsConsumer |
fieldsConsumer(SegmentWriteState state)
Writes a new segment
|
FieldsProducer |
fieldsProducer(SegmentReadState state)
Reads a segment.
|
String |
toString() |
availablePostingsFormats, forName, getName, reloadPostingsFormatspublic MockVariableIntBlockPostingsFormat()
public MockVariableIntBlockPostingsFormat(int baseBlockSize)
public String toString()
toString in class PostingsFormatpublic FieldsConsumer fieldsConsumer(SegmentWriteState state) throws IOException
PostingsFormatfieldsConsumer in class PostingsFormatIOExceptionpublic FieldsProducer fieldsProducer(SegmentReadState state) throws IOException
PostingsFormatfieldsProducer in class PostingsFormatIOExceptionCopyright © 2000–2021 The Apache Software Foundation. All rights reserved.