Show / Hide Table of Contents

    Class Int32BlockPool.Allocator

    Abstract class for allocating and freeing blocks.

    Inheritance
    System.Object
    Int32BlockPool.Allocator
    Int32BlockPool.DirectAllocator
    RecyclingInt32BlockAllocator
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class Allocator : object

    Constructors

    | Improve this Doc View Source

    Allocator(Int32)

    Declaration
    public Allocator(int blockSize)
    Parameters
    Type Name Description
    System.Int32 blockSize

    Fields

    | Improve this Doc View Source

    m_blockSize

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

    Methods

    | Improve this Doc View Source

    GetInt32Block()

    NOTE: This was getIntBlock() in Lucene

    Declaration
    public virtual int[] GetInt32Block()
    Returns
    Type Description
    System.Int32[]
    | Improve this Doc View Source

    RecycleInt32Blocks(Int32[][], Int32, Int32)

    NOTE: This was recycleIntBlocks() in Lucene

    Declaration
    public abstract void RecycleInt32Blocks(int[][] blocks, int start, int end)
    Parameters
    Type Name Description
    System.Int32[][] blocks
    System.Int32 start
    System.Int32 end
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)