Show / Hide Table of Contents

    Class AbstractBlockPackedWriter

    Inheritance
    System.Object
    AbstractBlockPackedWriter
    BlockPackedWriter
    MonotonicBlockPackedWriter
    Namespace: Lucene.Net.Util.Packed
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class AbstractBlockPackedWriter : object

    Constructors

    | Improve this Doc View Source

    AbstractBlockPackedWriter(DataOutput, Int32)

    Sole constructor.

    Declaration
    public AbstractBlockPackedWriter(DataOutput out, int blockSize)
    Parameters
    Type Name Description
    DataOutput out
    System.Int32 blockSize

    the number of values of a single block, must be a multiple of 64.

    Fields

    | Improve this Doc View Source

    m_blocks

    Declaration
    protected byte[] m_blocks
    Field Value
    Type Description
    System.Byte[]
    | Improve this Doc View Source

    m_finished

    Declaration
    protected bool m_finished
    Field Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    m_off

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

    m_ord

    Declaration
    protected long m_ord
    Field Value
    Type Description
    System.Int64
    | Improve this Doc View Source

    m_out

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

    m_values

    Declaration
    protected readonly long[] m_values
    Field Value
    Type Description
    System.Int64[]

    Properties

    | Improve this Doc View Source

    Ord

    Return the number of values which have been added.

    Declaration
    public virtual long Ord { get; }
    Property Value
    Type Description
    System.Int64

    Methods

    | Improve this Doc View Source

    Add(Int64)

    Append a new long.

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

    Finish()

    Flush all buffered data to disk. This instance is not usable anymore after this method has been called until Reset(DataOutput) has been called.

    Declaration
    public virtual void Finish()
    | Improve this Doc View Source

    Flush()

    Declaration
    protected abstract void Flush()
    | Improve this Doc View Source

    Reset(DataOutput)

    Reset this writer to wrap out. The block size remains unchanged.

    Declaration
    public virtual void Reset(DataOutput out)
    Parameters
    Type Name Description
    DataOutput out
    | Improve this Doc View Source

    WriteValues(Int32)

    Declaration
    protected void WriteValues(int bitsRequired)
    Parameters
    Type Name Description
    System.Int32 bitsRequired
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)