Class MockIndexOutputWrapper
Used by MockDirectoryWrapper to create an output stream that will throw an System.IO.IOException on fake disk full, track max disk space actually used, and maybe throw random System.IO.IOExceptions.
Implements
System.IDisposable
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)
Namespace: Lucene.Net.Store
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class MockIndexOutputWrapper : IndexOutput, IDisposable
Constructors
| Improve this Doc View SourceMockIndexOutputWrapper(MockDirectoryWrapper, IndexOutput, String)
Construct an empty output buffer.
Declaration
public MockIndexOutputWrapper(MockDirectoryWrapper dir, IndexOutput delegate, string name)
Parameters
Type | Name | Description |
---|---|---|
MockDirectoryWrapper | dir | |
IndexOutput | delegate | |
System.String | name |
Properties
| Improve this Doc View SourceChecksum
Declaration
public override long Checksum { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
Overrides
| Improve this Doc View SourceLength
Declaration
public override long Length { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
Overrides
Methods
| Improve this Doc View SourceCopyBytes(DataInput, Int64)
Declaration
public override void CopyBytes(DataInput input, long numBytes)
Parameters
Type | Name | Description |
---|---|---|
DataInput | input | |
System.Int64 | numBytes |
Overrides
| Improve this Doc View SourceDispose(Boolean)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Overrides
| Improve this Doc View SourceFlush()
Declaration
public override void Flush()
Overrides
| Improve this Doc View SourceGetFilePointer()
Declaration
public override long GetFilePointer()
Returns
Type | Description |
---|---|
System.Int64 |
Overrides
| Improve this Doc View SourceSeek(Int64)
Declaration
[Obsolete("(4.1) this method will be removed in Lucene 5.0")]
public override void Seek(long pos)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | pos |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
WriteByte(Byte)
Declaration
public override void WriteByte(byte b)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | b |
Overrides
| Improve this Doc View SourceWriteBytes(Byte[], Int32, Int32)
Declaration
public override void WriteBytes(byte[] b, int offset, int len)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | b | |
System.Int32 | offset | |
System.Int32 | len |
Overrides
Implements
System.IDisposable