Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    DataOutput
    IndexOutput
    MockIndexOutputWrapper
    Implements
    System.IDisposable
    Inherited Members
    IndexOutput.Dispose()
    DataOutput.WriteBytes(Byte[], Int32)
    DataOutput.WriteInt32(Int32)
    DataOutput.WriteInt16(Int16)
    DataOutput.WriteVInt32(Int32)
    DataOutput.WriteInt64(Int64)
    DataOutput.WriteVInt64(Int64)
    DataOutput.WriteString(String)
    DataOutput.WriteStringStringMap(IDictionary<String, String>)
    DataOutput.WriteStringSet(ISet<String>)
    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 Source

    MockIndexOutputWrapper(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 Source

    Checksum

    Declaration
    public override long Checksum { get; }
    Property Value
    Type Description
    System.Int64
    Overrides
    IndexOutput.Checksum
    | Improve this Doc View Source

    Length

    Declaration
    public override long Length { get; set; }
    Property Value
    Type Description
    System.Int64
    Overrides
    IndexOutput.Length

    Methods

    | Improve this Doc View Source

    CopyBytes(DataInput, Int64)

    Declaration
    public override void CopyBytes(DataInput input, long numBytes)
    Parameters
    Type Name Description
    DataInput input
    System.Int64 numBytes
    Overrides
    DataOutput.CopyBytes(DataInput, Int64)
    | Improve this Doc View Source

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    IndexOutput.Dispose(Boolean)
    | Improve this Doc View Source

    Flush()

    Declaration
    public override void Flush()
    Overrides
    IndexOutput.Flush()
    | Improve this Doc View Source

    GetFilePointer()

    Declaration
    public override long GetFilePointer()
    Returns
    Type Description
    System.Int64
    Overrides
    IndexOutput.GetFilePointer()
    | Improve this Doc View Source

    Seek(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
    IndexOutput.Seek(Int64)
    | Improve this Doc View Source

    ToString()

    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
    DataOutput.WriteByte(Byte)
    | Improve this Doc View Source

    WriteBytes(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
    DataOutput.WriteBytes(Byte[], Int32, Int32)

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)