Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class PagedBytes.Reader

    Provides methods to read BytesRefs from a frozen PagedBytes.

    Inheritance
    object
    PagedBytes.Reader
    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 PagedBytes.Reader

    Methods

    Fill(BytesRef, long)

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

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

    Note

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

    Declaration
    public void Fill(BytesRef b, long start)
    Parameters
    Type Name Description
    BytesRef b
    long start
    See Also
    Freeze(bool)

    FillSlice(BytesRef, long, int)

    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.

    Note

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

    Declaration
    public void FillSlice(BytesRef b, long start, int length)
    Parameters
    Type Name Description
    BytesRef b
    long start
    int length
    See Also
    Freeze(bool)

    RamBytesUsed()

    Returns approximate RAM bytes used.

    Declaration
    public long RamBytesUsed()
    Returns
    Type Description
    long
    See Also
    Freeze(bool)

    See Also

    Freeze(bool)
    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.