Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Int32BlockPool.SliceReader

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

    Note

    This API is for internal purposes only and might change in incompatible ways in the next release.

    Inheritance
    object
    Int32BlockPool.SliceReader
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class Int32BlockPool.SliceReader

    Constructors

    SliceReader(Int32BlockPool)

    Creates a new Int32BlockPool.SliceReader on the given pool.

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

    Properties

    IsEndOfSlice

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

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

    Methods

    ReadInt32()

    Reads the next int from the current slice and returns it.

    NOTE: This was readInt() in Lucene
    Declaration
    public int ReadInt32()
    Returns
    Type Description
    int
    See Also
    IsEndOfSlice

    Reset(int, int)

    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
    int startOffset
    int endOffset
    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.