Class MockVariableInt32BlockPostingsFormat.MockInt32Factory
If the first value is <= 3, writes baseBlockSize vInts at once, otherwise writes 2*baseBlockSize vInts.
Inheritance
System.Object
Lucene.Net.Codecs.Sep.Int32StreamFactory
MockVariableInt32BlockPostingsFormat.MockInt32Factory
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Codecs.MockIntBlock
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class MockInt32Factory : Int32StreamFactory
Constructors
| Improve this Doc View SourceMockInt32Factory(Int32)
Declaration
public MockInt32Factory(int baseBlockSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | baseBlockSize |
Methods
| Improve this Doc View SourceCreateOutput(Directory, String, IOContext)
Declaration
public override Int32IndexOutput CreateOutput(Directory dir, string fileName, IOContext context)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Store.Directory | dir | |
System.String | fileName | |
Lucene.Net.Store.IOContext | context |
Returns
Type | Description |
---|---|
Lucene.Net.Codecs.Sep.Int32IndexOutput |
Overrides
Lucene.Net.Codecs.Sep.Int32StreamFactory.CreateOutput(Lucene.Net.Store.Directory, System.String, Lucene.Net.Store.IOContext)
|
Improve this Doc
View Source
OpenInput(Directory, String, IOContext)
Declaration
public override Int32IndexInput OpenInput(Directory dir, string fileName, IOContext context)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Store.Directory | dir | |
System.String | fileName | |
Lucene.Net.Store.IOContext | context |
Returns
Type | Description |
---|---|
Lucene.Net.Codecs.Sep.Int32IndexInput |
Overrides
Lucene.Net.Codecs.Sep.Int32StreamFactory.OpenInput(Lucene.Net.Store.Directory, System.String, Lucene.Net.Store.IOContext)