Show / Hide Table of Contents

    Class VariableInt32BlockIndexInput

    Abstract base class that reads variable-size blocks of ints from an IndexInput. While this is a simple approach, a more performant approach would directly create an impl of Int32IndexInput inside Directory. Wrapping a generic IndexInput will likely cost performance.

    NOTE: This was VariableIntBlockIndexInput in Lucene

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    Int32IndexInput
    VariableInt32BlockIndexInput
    Inherited Members
    Int32IndexInput.Dispose()
    Namespace: Lucene.Net.Codecs.IntBlock
    Assembly: Lucene.Net.Codecs.dll
    Syntax
    public abstract class VariableInt32BlockIndexInput : Int32IndexInput
    Remarks

    Naive int block API that writes vInts. This is expected to give poor performance; it's really only for testing the pluggability. One should typically use pfor instead.

    Constructors

    | Improve this Doc View Source

    VariableInt32BlockIndexInput(IndexInput)

    Declaration
    protected VariableInt32BlockIndexInput(IndexInput input)
    Parameters
    Type Name Description
    IndexInput input

    Fields

    | Improve this Doc View Source

    m_maxBlockSize

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

    Methods

    | Improve this Doc View Source

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    Int32IndexInput.Dispose(Boolean)
    | Improve this Doc View Source

    GetBlockReader(IndexInput, Int32[])

    Declaration
    protected abstract VariableInt32BlockIndexInput.IBlockReader GetBlockReader(IndexInput in, int[] buffer)
    Parameters
    Type Name Description
    IndexInput in
    System.Int32[] buffer
    Returns
    Type Description
    VariableInt32BlockIndexInput.IBlockReader
    | Improve this Doc View Source

    GetIndex()

    Declaration
    public override Int32IndexInput.Index GetIndex()
    Returns
    Type Description
    Int32IndexInput.Index
    Overrides
    Int32IndexInput.GetIndex()
    | Improve this Doc View Source

    GetReader()

    Declaration
    public override Int32IndexInput.Reader GetReader()
    Returns
    Type Description
    Int32IndexInput.Reader
    Overrides
    Int32IndexInput.GetReader()
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)