Class OfflineSorter
On-disk sorting of byte arrays. Each byte array (entry) is a composed of the following fields:
- (two bytes) length of the following byte array,
- exactly the above count of bytes for the sequence to be sorted.
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public sealed class OfflineSorter : object
Constructors
Name | Description |
---|---|
OfflineSorter() | Defaults constructor. |
OfflineSorter(IComparer<BytesRef>) | Defaults constructor with a custom comparer. |
OfflineSorter(IComparer<BytesRef>, OfflineSorter.BufferSize, DirectoryInfo, Int32) | All-details constructor. |
Fields
Name | Description |
---|---|
ABSOLUTE_MIN_SORT_BUFFER_SIZE | Absolute minimum required buffer size for sorting. |
DEFAULT_COMPARER | Default comparer: sorts in binary (codepoint) order |
GB | Convenience constant for gigabytes |
MAX_TEMPFILES | Maximum number of temporary files before doing an intermediate merge. |
MB | Convenience constant for megabytes |
MIN_BUFFER_SIZE_MB | Minimum recommended buffer size for sorting. |
Properties
Name | Description |
---|---|
Comparer | Returns the comparer in use to sort entries |
Methods
Name | Description |
---|---|
DefaultTempDir() | Returns the default temporary directory. By default, the System's temp folder. If not accessible
or not available, an |
Sort(FileInfo, FileInfo) | 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). |