Fork me on GitHub
  • API

    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
    Implements
    System.IDisposable
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Util
    Assembly: Lucene.Net.dll
    Syntax
    public class ByteSequencesWriter : IDisposable

    Constructors

    | 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
    | Improve this Doc View Source

    ByteSequencesWriter(FileInfo)

    Constructs a OfflineSorter.ByteSequencesWriter to the provided System.IO.FileInfo.

    Declaration
    public ByteSequencesWriter(FileInfo file)
    Parameters
    Type Name Description
    System.IO.FileInfo file

    Methods

    | Improve this Doc View Source

    Dispose()

    Disposes the provided DataOutput if it is System.IDisposable.

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

    Dispose(Boolean)

    Disposes the provided DataOutput if it is System.IDisposable.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    | 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 System.Int16, 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

    Implements

    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 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.