Show / Hide Table of Contents

    Class OfflineSorter.ByteSequencesWriter

    Utility class to emit length-prefixed byte[] entries to an output stream for sorting. Complementary to OfflineSorter.ByteSequencesReader.

    Inheritance
    System.Object
    OfflineSorter.ByteSequencesWriter
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public class ByteSequencesWriter : IDisposable

    Constructors

    | Improve this Doc View Source

    ByteSequencesWriter(FileInfo)

    Constructs a OfflineSorter.ByteSequencesWriter to the provided .

    Declaration
    public ByteSequencesWriter(FileInfo file)
    Parameters
    Type Name Description
    FileInfo file
    | Improve this Doc View Source

    ByteSequencesWriter(DataOutput)

    Constructs a OfflineSorter.ByteSequencesWriter to the provided DataOutput.

    Declaration
    public ByteSequencesWriter(DataOutput os)
    Parameters
    Type Name Description
    DataOutput os

    Methods

    | Improve this Doc View Source

    Dispose()

    Disposes the provided DataOutput if it is .

    Declaration
    public void Dispose()
    | Improve this Doc View Source

    Write(BytesRef)

    Writes a BytesRef.

    Declaration
    public virtual void Write(BytesRef ref)
    Parameters
    Type Name Description
    BytesRef ref
    See Also
    Write(Byte[], Int32, Int32)
    | Improve this Doc View Source

    Write(Byte[])

    Writes a byte array.

    Declaration
    public virtual void Write(byte[] bytes)
    Parameters
    Type Name Description
    System.Byte[] bytes
    See Also
    Write(Byte[], Int32, Int32)
    | Improve this Doc View Source

    Write(Byte[], Int32, Int32)

    Writes a byte array.

    The length is written as a , followed by the bytes.

    Declaration
    public virtual void Write(byte[] bytes, int off, int len)
    Parameters
    Type Name Description
    System.Byte[] bytes
    System.Int32 off
    System.Int32 len
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)