Show / Hide Table of Contents

    Class Int32BlockPool.SliceWriter

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

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

    Constructors

    | Improve this Doc View Source

    SliceWriter(Int32BlockPool)

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

    Properties

    | Improve this Doc View Source

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

    Methods

    | Improve this Doc View Source

    Reset(Int32)

    Declaration
    public virtual void Reset(int sliceOffset)
    Parameters
    Type Name Description
    System.Int32 sliceOffset
    | Improve this Doc View Source

    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
    System.Int32
    | Improve this Doc View Source

    WriteInt32(Int32)

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

    See Also

    Int32BlockPool.SliceReader
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)