Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class FixedInt32BlockIndexOutput

    Abstract base class that writes fixed-size blocks of ints to an Lucene.Net.Store.IndexOutput. While this is a simple approach, a more performant approach would directly create an impl of Int32IndexOutput inside Lucene.Net.Store.Directory. Wrapping a generic Lucene.Net.Store.IndexOutput will likely cost performance.

    NOTE: This was FixedIntBlockIndexOutput in Lucene

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    object
    Int32IndexOutput
    FixedInt32BlockIndexOutput
    Implements
    IDisposable
    Inherited Members
    Int32IndexOutput.Dispose()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Codecs.IntBlock
    Assembly: Lucene.Net.Codecs.dll
    Syntax
    public abstract class FixedInt32BlockIndexOutput : Int32IndexOutput, IDisposable
    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

    FixedInt32BlockIndexOutput(IndexOutput, int)

    Abstract base class that writes fixed-size blocks of ints to an Lucene.Net.Store.IndexOutput. While this is a simple approach, a more performant approach would directly create an impl of Int32IndexOutput inside Lucene.Net.Store.Directory. Wrapping a generic Lucene.Net.Store.IndexOutput will likely cost performance.

    NOTE: This was FixedIntBlockIndexOutput in Lucene

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected FixedInt32BlockIndexOutput(IndexOutput output, int fixedBlockSize)
    Parameters
    Type Name Description
    IndexOutput output
    int fixedBlockSize
    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.

    Fields

    m_buffer

    Abstract base class that writes fixed-size blocks of ints to an Lucene.Net.Store.IndexOutput. While this is a simple approach, a more performant approach would directly create an impl of Int32IndexOutput inside Lucene.Net.Store.Directory. Wrapping a generic Lucene.Net.Store.IndexOutput will likely cost performance.

    NOTE: This was FixedIntBlockIndexOutput in Lucene

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected readonly int[] m_buffer
    Field Value
    Type Description
    int[]
    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.

    m_output

    Abstract base class that writes fixed-size blocks of ints to an Lucene.Net.Store.IndexOutput. While this is a simple approach, a more performant approach would directly create an impl of Int32IndexOutput inside Lucene.Net.Store.Directory. Wrapping a generic Lucene.Net.Store.IndexOutput will likely cost performance.

    NOTE: This was FixedIntBlockIndexOutput in Lucene

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected readonly IndexOutput m_output
    Field Value
    Type Description
    IndexOutput
    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.

    Methods

    Dispose(bool)

    Abstract base class that writes fixed-size blocks of ints to an Lucene.Net.Store.IndexOutput. While this is a simple approach, a more performant approach would directly create an impl of Int32IndexOutput inside Lucene.Net.Store.Directory. Wrapping a generic Lucene.Net.Store.IndexOutput will likely cost performance.

    NOTE: This was FixedIntBlockIndexOutput in Lucene

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    Overrides
    Int32IndexOutput.Dispose(bool)
    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.

    FlushBlock()

    Abstract base class that writes fixed-size blocks of ints to an Lucene.Net.Store.IndexOutput. While this is a simple approach, a more performant approach would directly create an impl of Int32IndexOutput inside Lucene.Net.Store.Directory. Wrapping a generic Lucene.Net.Store.IndexOutput will likely cost performance.

    NOTE: This was FixedIntBlockIndexOutput in Lucene

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Declaration
    protected abstract void FlushBlock()
    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.

    GetIndex()

    If you are indexing the primary output file, call this and interact with the returned IndexWriter.

    Declaration
    public override Int32IndexOutput.Index GetIndex()
    Returns
    Type Description
    Int32IndexOutput.Index
    Overrides
    Int32IndexOutput.GetIndex()
    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.

    Write(int)

    Write an int to the primary file. The value must be

    = 0.

    Declaration
    public override void Write(int v)
    Parameters
    Type Name Description
    int v
    Overrides
    Int32IndexOutput.Write(int)
    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.

    Implements

    IDisposable
    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.