Show / Hide Table of Contents

    Class Decompressor

    A decompressor.

    Inheritance
    System.Object
    Decompressor
    Namespace: Lucene.Net.Codecs.Compressing
    Assembly: Lucene.Net.dll
    Syntax
    public abstract class Decompressor : object

    Constructors

    | Improve this Doc View Source

    Decompressor()

    Sole constructor, typically called from sub-classes.

    Declaration
    protected Decompressor()

    Methods

    | Improve this Doc View Source

    Clone()

    Declaration
    public abstract object Clone()
    Returns
    Type Description
    System.Object
    | Improve this Doc View Source

    Decompress(DataInput, Int32, Int32, Int32, BytesRef)

    Decompress bytes that were stored between offsets offset and offset+length in the original stream from the compressed stream in to bytes. After returning, the length of bytes (bytes.Length) must be equal to length. Implementations of this method are free to resize bytes depending on their needs.

    Declaration
    public abstract void Decompress(DataInput in, int originalLength, int offset, int length, BytesRef bytes)
    Parameters
    Type Name Description
    DataInput in

    The input that stores the compressed stream.

    System.Int32 originalLength

    The length of the original data (before compression).

    System.Int32 offset

    Bytes before this offset do not need to be decompressed.

    System.Int32 length

    Bytes after offset+length do not need to be decompressed.

    BytesRef bytes

    a BytesRef where to store the decompressed data.

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