Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Int32BlockPool.SliceReader

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

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    Int32BlockPool.SliceReader
    Inherited Members
    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)
    System.Object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class SliceReader

    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 System.Int32 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 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.