Show / Hide Table of Contents

    Class Int32BlockPool.SliceReader

    A Int32BlockPool.SliceReader that can read slices written by a Int32BlockPool.SliceWriter.

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    Int32BlockPool.SliceReader
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class SliceReader : object

    Constructors

    | Improve this Doc View Source

    SliceReader(Int32BlockPool)

    Creates a new Int32BlockPool.SliceReader on the given pool.

    Declaration
    public SliceReader(Int32BlockPool pool)
    Parameters
    Type Name Description
    Int32BlockPool pool

    Properties

    | Improve this Doc View Source

    IsEndOfSlice

    Returns true if the current slice is fully read. If this method returns true ReadInt32() should not be called again on this slice.

    Declaration
    public bool IsEndOfSlice { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    | Improve this Doc View Source

    ReadInt32()

    Reads the next from the current slice and returns it.

    NOTE: This was readInt() in Lucene

    Declaration
    public int ReadInt32()
    Returns
    Type Description
    System.Int32
    See Also
    IsEndOfSlice
    | Improve this Doc View Source

    Reset(Int32, Int32)

    Resets the reader to a slice give the slices absolute start and end offset in the pool.

    Declaration
    public void Reset(int startOffset, int endOffset)
    Parameters
    Type Name Description
    System.Int32 startOffset
    System.Int32 endOffset
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)