Class MockIndexInput
Lucene.Net.Store.IndexInput backed by a byte[] for testing.
Implements
Inherited Members
BufferedIndexInput.BUFFER_SIZE
BufferedIndexInput.MERGE_BUFFER_SIZE
BufferedIndexInput.m_buffer
BufferedIndexInput.ReadByte()
BufferedIndexInput.BufferSize
BufferedIndexInput.ReadInt16()
BufferedIndexInput.ReadInt32()
BufferedIndexInput.ReadInt64()
BufferedIndexInput.ReadVInt32()
BufferedIndexInput.ReadVInt64()
BufferedIndexInput.Position
BufferedIndexInput.Clone()
BufferedIndexInput.GetBufferSize(IOContext)
IndexInput.Dispose()
IndexInput.ToString()
DataInput.ReadString()
DataInput.ReadStringStringMap()
DataInput.ReadStringSet()
Namespace: Lucene.Net.Index
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class MockIndexInput : BufferedIndexInput, IDisposable
Constructors
MockIndexInput(byte[])
Lucene.Net.Store.IndexInput backed by a byte[] for testing.
Declaration
public MockIndexInput(byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
byte[] | bytes |
Properties
Length
The number of bytes in the file.
Declaration
public override long Length { get; }
Property Value
Type | Description |
---|---|
long |
Overrides
Lucene.Net.Store.IndexInput.Length
Methods
Dispose(bool)
Closes the stream to further operations.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
Overrides
ReadInternal(byte[], int, int)
Expert: implements buffer refill. Reads bytes from the current position in the input.
Declaration
protected override void ReadInternal(byte[] dest, int destOffset, int len)
Parameters
Type | Name | Description |
---|---|---|
byte[] | dest | |
int | destOffset | |
int | len |
Overrides
SeekInternal(long)
Expert: implements seek. Sets current position in this file, where the next ReadInternal(byte[], int, int) will occur.
Declaration
protected override void SeekInternal(long pos)
Parameters
Type | Name | Description |
---|---|---|
long | pos |