Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class MockIndexInput

    Lucene.Net.Store.IndexInput backed by a byte[] for testing.

    Inheritance
    object
    DataInput
    IndexInput
    BufferedIndexInput
    MockIndexInput
    Implements
    IDisposable
    Inherited Members
    BufferedIndexInput.BUFFER_SIZE
    BufferedIndexInput.MERGE_BUFFER_SIZE
    BufferedIndexInput.m_buffer
    BufferedIndexInput.ReadByte()
    BufferedIndexInput.SetBufferSize(int)
    BufferedIndexInput.NewBuffer(byte[])
    BufferedIndexInput.BufferSize
    BufferedIndexInput.ReadBytes(byte[], int, int)
    BufferedIndexInput.ReadBytes(byte[], int, int, bool)
    BufferedIndexInput.ReadInt16()
    BufferedIndexInput.ReadInt32()
    BufferedIndexInput.ReadInt64()
    BufferedIndexInput.ReadVInt32()
    BufferedIndexInput.ReadVInt64()
    BufferedIndexInput.Position
    BufferedIndexInput.Seek(long)
    BufferedIndexInput.Clone()
    BufferedIndexInput.FlushBuffer(IndexOutput, long)
    BufferedIndexInput.GetBufferSize(IOContext)
    IndexInput.Dispose()
    IndexInput.ToString()
    DataInput.ReadString()
    DataInput.ReadStringStringMap()
    DataInput.ReadStringSet()
    DataInput.SkipBytes(long)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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
    IndexInput.Dispose(bool)

    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
    BufferedIndexInput.ReadInternal(byte[], int, int)

    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
    Overrides
    BufferedIndexInput.SeekInternal(long)
    See Also
    ReadInternal(byte[], int, int)

    Implements

    IDisposable
    Back to top Copyright © 2024 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.