C# Класс Lucene.Net.Util.OfflineSorter.ByteSequencesWriter

/// Convenience constant for megabytes /// Convenience constant for gigabytes /// Minimum recommended buffer size for sorting. /// /// Absolute minimum required buffer size for sorting. /// /// Maximum number of temporary files before doing an intermediate merge. /// /// A bit more descriptive unit for constructors. /// /// Creates a BufferSize in MB. The given /// values must be > 0 and < 2048. /// /// Approximately half of the currently available free heap, but no less /// than #ABSOLUTE_MIN_SORT_BUFFER_SIZE. However if current heap allocation /// is insufficient or if there is a large portion of unallocated heap-space available /// for sorting consult with max allowed heap size. /// /// Sort info (debugging mostly). /// /// number of temporary files created when merging partitions /// number of partition merges /// number of lines of data read /// time spent merging sorted partitions (in milliseconds) /// time spent sorting data (in milliseconds) /// total time spent (in milliseconds) /// time spent in i/o read (in milliseconds) /// read buffer size (in bytes) /// create a new SortInfo (with empty statistics) for debugging /// Default comparator: sorts in binary (codepoint) order /// Defaults constructor. /// /// Defaults constructor with a custom comparator. /// /// All-details constructor. /// /// Sort input to output, explicit hint for the buffer size. The amount of allocated /// memory may deviate from the hint (may be smaller or larger). /// /// Returns the default temporary directory. By default, the System's temp folder. If not accessible /// or not available, an IOException is thrown /// /// Copies one file to another. /// /// Sort a single partition in-memory. /// Merge a list of sorted temporary files (partitions) into an output file /// Read in a single partition of data Utility class to emit length-prefixed byte[] entries to an output stream for sorting. Complementary to ByteSequencesReader.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ByteSequencesWriter ( DataOutput os ) : System

Constructs a ByteSequencesWriter to the provided DataOutput

ByteSequencesWriter ( string filePath ) : System

Constructs a ByteSequencesWriter to the provided File

Dispose ( ) : void

Closes the provided DataOutput if it is IDisposable.

Write ( BytesRef @ref ) : void

Writes a BytesRef.

Write ( byte bytes ) : void

Writes a byte array.

Write ( byte bytes, int off, int len ) : void

Writes a byte array.

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

Описание методов

ByteSequencesWriter() публичный Метод

Constructs a ByteSequencesWriter to the provided DataOutput
public ByteSequencesWriter ( DataOutput os ) : System
os Lucene.Net.Store.DataOutput
Результат System

ByteSequencesWriter() публичный Метод

Constructs a ByteSequencesWriter to the provided File
public ByteSequencesWriter ( string filePath ) : System
filePath string
Результат System

Dispose() публичный Метод

Closes the provided DataOutput if it is IDisposable.
public Dispose ( ) : void
Результат void

Write() публичный Метод

Writes a BytesRef.
public Write ( BytesRef @ref ) : void
@ref BytesRef
Результат void

Write() публичный Метод

Writes a byte array.
public Write ( byte bytes ) : void
bytes byte
Результат void

Write() публичный Метод

Writes a byte array.

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

public Write ( byte bytes, int off, int len ) : void
bytes byte
off int
len int
Результат void