Show / Hide Table of Contents

    Class PackedInt32s.Writer

    A write-once Writer.

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

    Constructors

    | Improve this Doc View Source

    Writer(DataOutput, Int32, Int32)

    Declaration
    protected Writer(DataOutput out, int valueCount, int bitsPerValue)
    Parameters
    Type Name Description
    DataOutput out
    System.Int32 valueCount
    System.Int32 bitsPerValue

    Fields

    | Improve this Doc View Source

    m_bitsPerValue

    Declaration
    protected readonly int m_bitsPerValue
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    m_out

    Declaration
    protected readonly DataOutput m_out
    Field Value
    Type Description
    DataOutput
    | Improve this Doc View Source

    m_valueCount

    Declaration
    protected readonly int m_valueCount
    Field Value
    Type Description
    System.Int32

    Properties

    | Improve this Doc View Source

    BitsPerValue

    The number of bits per value.

    Declaration
    public int BitsPerValue { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Format

    The format used to serialize values.

    Declaration
    protected abstract PackedInt32s.Format Format { get; }
    Property Value
    Type Description
    PackedInt32s.Format
    | Improve this Doc View Source

    Ord

    Returns the current ord in the stream (number of values that have been written so far minus one).

    Declaration
    public abstract int Ord { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    Add(Int64)

    Add a value to the stream.

    Declaration
    public abstract void Add(long v)
    Parameters
    Type Name Description
    System.Int64 v
    | Improve this Doc View Source

    Finish()

    Perform end-of-stream operations.

    Declaration
    public abstract void Finish()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)