Class MockSingleInt32IndexOutput
Writes ints directly to the file (not in blocks) as vInt.
Note
This API is experimental and might change in incompatible ways in the next release.
Implements
Inherited Members
Int32IndexOutput.Dispose()
Namespace: Lucene.Net.Codecs.MockSep
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class MockSingleInt32IndexOutput : Int32IndexOutput, IDisposable
Constructors
MockSingleInt32IndexOutput(Directory, string, IOContext)
Writes ints directly to the file (not in blocks) as vInt.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public MockSingleInt32IndexOutput(Directory dir, string fileName, IOContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| Directory | dir | |
| string | fileName | |
| IOContext | context |
Methods
Dispose(bool)
Writes ints directly to the file (not in blocks) as vInt.
Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
GetIndex()
If you are indexing the primary output file, call this and interact with the returned IndexWriter.
Declaration
public override Int32IndexOutput.Index GetIndex()
Returns
| Type | Description |
|---|---|
| Int32IndexOutput.Index |
Overrides
Lucene.Net.Codecs.Sep.Int32IndexOutput.GetIndex()
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Overrides
Write(int)
Write an int to the primary file. The value must be
= 0.
Declaration
public override void Write(int v)
Parameters
| Type | Name | Description |
|---|---|---|
| int | v |