Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Int32BlockPool.SliceWriter

    A Int32BlockPool.SliceWriter that allows to write multiple integer slices into a given Int32BlockPool.

    Note

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

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

    Constructors

    SliceWriter(Int32BlockPool)

    A Int32BlockPool.SliceWriter that allows to write multiple integer slices into a given Int32BlockPool.

    Note

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

    Declaration
    public SliceWriter(Int32BlockPool pool)
    Parameters
    Type Name Description
    Int32BlockPool pool
    See Also
    Int32BlockPool.SliceReader

    Properties

    CurrentOffset

    Returns the offset of the currently written slice. The returned value should be used as the end offset to initialize a Int32BlockPool.SliceReader once this slice is fully written or to reset the this writer if another slice needs to be written.

    Declaration
    public virtual int CurrentOffset { get; }
    Property Value
    Type Description
    int
    See Also
    Int32BlockPool.SliceReader

    Methods

    Reset(int)

    A Int32BlockPool.SliceWriter that allows to write multiple integer slices into a given Int32BlockPool.

    Note

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

    Declaration
    public virtual void Reset(int sliceOffset)
    Parameters
    Type Name Description
    int sliceOffset
    See Also
    Int32BlockPool.SliceReader

    StartNewSlice()

    Starts a new slice and returns the start offset. The returned value should be used as the start offset to initialize a Int32BlockPool.SliceReader.

    Declaration
    public virtual int StartNewSlice()
    Returns
    Type Description
    int
    See Also
    Int32BlockPool.SliceReader

    WriteInt32(int)

    Writes the given value into the slice and resizes the slice if needed

    NOTE: This was writeInt() in Lucene
    Declaration
    public virtual void WriteInt32(int value)
    Parameters
    Type Name Description
    int value
    See Also
    Int32BlockPool.SliceReader

    See Also

    Int32BlockPool.SliceReader
    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.