Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class PagedBytes.Reader

    Provides methods to read BytesRefs from a frozen PagedBytes.

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

    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 © 2021 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.