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

    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

    Extension Methods

    Number.IsNumber(Object)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Licensed to the Apache Software Foundation (ASF)