Show / Hide Table of Contents

    Class PagedBytes.Reader

    Provides methods to read BytesRefs from a frozen PagedBytes.

    Inheritance
    System.Object
    PagedBytes.Reader
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public sealed class Reader : object

    Methods

    | Improve this Doc View Source

    Fill(BytesRef, Int64)

    Reads length as 1 or 2 byte vInt prefix, starting at start.

    Note: this method does not support slices spanning across block borders.

    This is a Lucene.NET INTERNAL API, use at your own risk
    Declaration
    public void Fill(BytesRef b, long start)
    Parameters
    Type Name Description
    BytesRef b
    System.Int64 start
    | Improve this Doc View Source

    FillSlice(BytesRef, Int64, Int32)

    Gets a slice out of PagedBytes starting at start with a given length. If the slice spans across a block border this method will allocate sufficient resources and copy the paged data.

    Slices spanning more than two blocks are not supported.

    This is a Lucene.NET INTERNAL API, use at your own risk
    Declaration
    public void FillSlice(BytesRef b, long start, int length)
    Parameters
    Type Name Description
    BytesRef b
    System.Int64 start
    System.Int32 length
    | Improve this Doc View Source

    RamBytesUsed()

    Returns approximate RAM bytes used.

    Declaration
    public long RamBytesUsed()
    Returns
    Type Description
    System.Int64

    See Also

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