Class MockVariableInt32BlockPostingsFormat.MockInt32Factory
If the first value is <= 3, writes baseBlockSize vInts at once,
otherwise writes 2*baseBlockSize vInts.
Inheritance
Int32StreamFactory
MockVariableInt32BlockPostingsFormat.MockInt32Factory
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class MockVariableInt32BlockPostingsFormat.MockInt32Factory : Int32StreamFactory
Constructors
MockInt32Factory(int)
If the first value is <= 3, writes baseBlockSize vInts at once,
otherwise writes 2*baseBlockSize vInts.
Declaration
public MockInt32Factory(int baseBlockSize)
Parameters
| Type |
Name |
Description |
| int |
baseBlockSize |
|
Methods
CreateOutput(Directory, string, IOContext)
Create an Lucene.Net.Codecs.Sep.Int32IndexOutput on the provided fileName.
Declaration
public override Int32IndexOutput CreateOutput(Directory dir, string fileName, IOContext context)
Parameters
| Type |
Name |
Description |
| Directory |
dir |
|
| string |
fileName |
|
| IOContext |
context |
|
Returns
| Type |
Description |
| Int32IndexOutput |
|
Overrides
OpenInput(Directory, string, IOContext)
Create an Lucene.Net.Codecs.Sep.Int32IndexInput on the provided fileName.
Declaration
public override Int32IndexInput OpenInput(Directory dir, string fileName, IOContext context)
Parameters
| Type |
Name |
Description |
| Directory |
dir |
|
| string |
fileName |
|
| IOContext |
context |
|
Returns
| Type |
Description |
| Int32IndexInput |
|
Overrides