Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class MockIndexInputWrapper

    Used by MockDirectoryWrapper to create an input stream that keeps track of when it's been disposed.

    Inheritance
    System.Object
    Lucene.Net.Store.DataInput
    Lucene.Net.Store.IndexInput
    MockIndexInputWrapper
    Implements
    System.IDisposable
    Inherited Members
    Lucene.Net.Store.IndexInput.Dispose()
    Lucene.Net.Store.DataInput.ReadStringSet()
    Lucene.Net.Store.DataInput.SkipBytes(System.Int64)
    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 MockIndexInputWrapper : IndexInput, IDisposable

    Constructors

    | Improve this Doc View Source

    MockIndexInputWrapper(MockDirectoryWrapper, String, IndexInput)

    Construct an empty output buffer.

    Declaration
    public MockIndexInputWrapper(MockDirectoryWrapper dir, string name, IndexInput delegate)
    Parameters
    Type Name Description
    MockDirectoryWrapper dir
    System.String name
    Lucene.Net.Store.IndexInput delegate

    Properties

    | Improve this Doc View Source

    Length

    Declaration
    public override long Length { get; }
    Property Value
    Type Description
    System.Int64
    Overrides
    Lucene.Net.Store.IndexInput.Length
    | Improve this Doc View Source

    Position

    Declaration
    public override long Position { get; }
    Property Value
    Type Description
    System.Int64
    Overrides
    Lucene.Net.Store.IndexInput.Position

    Methods

    | Improve this Doc View Source

    Clone()

    Declaration
    public override object Clone()
    Returns
    Type Description
    System.Object
    Overrides
    Lucene.Net.Store.IndexInput.Clone()
    | Improve this Doc View Source

    Dispose(Boolean)

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

    ReadByte()

    Declaration
    public override byte ReadByte()
    Returns
    Type Description
    System.Byte
    Overrides
    Lucene.Net.Store.DataInput.ReadByte()
    | Improve this Doc View Source

    ReadBytes(Byte[], Int32, Int32)

    Declaration
    public override void ReadBytes(byte[] b, int offset, int len)
    Parameters
    Type Name Description
    System.Byte[] b
    System.Int32 offset
    System.Int32 len
    Overrides
    Lucene.Net.Store.DataInput.ReadBytes(System.Byte[], System.Int32, System.Int32)
    | Improve this Doc View Source

    ReadBytes(Byte[], Int32, Int32, Boolean)

    Declaration
    public override void ReadBytes(byte[] b, int offset, int len, bool useBuffer)
    Parameters
    Type Name Description
    System.Byte[] b
    System.Int32 offset
    System.Int32 len
    System.Boolean useBuffer
    Overrides
    Lucene.Net.Store.DataInput.ReadBytes(System.Byte[], System.Int32, System.Int32, System.Boolean)
    | Improve this Doc View Source

    ReadInt16()

    NOTE: this was readShort() in Lucene

    Declaration
    public override short ReadInt16()
    Returns
    Type Description
    System.Int16
    Overrides
    Lucene.Net.Store.DataInput.ReadInt16()
    | Improve this Doc View Source

    ReadInt32()

    NOTE: this was readInt() in Lucene

    Declaration
    public override int ReadInt32()
    Returns
    Type Description
    System.Int32
    Overrides
    Lucene.Net.Store.DataInput.ReadInt32()
    | Improve this Doc View Source

    ReadInt64()

    NOTE: this was readLong() in Lucene

    Declaration
    public override long ReadInt64()
    Returns
    Type Description
    System.Int64
    Overrides
    Lucene.Net.Store.DataInput.ReadInt64()
    | Improve this Doc View Source

    ReadString()

    Declaration
    public override string ReadString()
    Returns
    Type Description
    System.String
    Overrides
    Lucene.Net.Store.DataInput.ReadString()
    | Improve this Doc View Source

    ReadStringStringMap()

    Declaration
    public override IDictionary<string, string> ReadStringStringMap()
    Returns
    Type Description
    System.Collections.Generic.IDictionary<System.String, System.String>
    Overrides
    Lucene.Net.Store.DataInput.ReadStringStringMap()
    | Improve this Doc View Source

    ReadVInt32()

    NOTE: this was readVInt() in Lucene

    Declaration
    public override int ReadVInt32()
    Returns
    Type Description
    System.Int32
    Overrides
    Lucene.Net.Store.DataInput.ReadVInt32()
    | Improve this Doc View Source

    ReadVInt64()

    NOTE: this was readVLong() in Lucene

    Declaration
    public override long ReadVInt64()
    Returns
    Type Description
    System.Int64
    Overrides
    Lucene.Net.Store.DataInput.ReadVInt64()
    | Improve this Doc View Source

    Seek(Int64)

    Declaration
    public override void Seek(long pos)
    Parameters
    Type Name Description
    System.Int64 pos
    Overrides
    Lucene.Net.Store.IndexInput.Seek(System.Int64)
    | Improve this Doc View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    Lucene.Net.Store.IndexInput.ToString()

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.