public BigTableSorter(ITempStreams tempStreams, long maxBufferSizeInBytes, int maxWorkersCount = -1) { _recordComparer = new RecordComparer(); _tempStreams = tempStreams; _maxBufferSizeInBytes = maxBufferSizeInBytes; _maxWorkersCount = maxWorkersCount == -1 ? Environment.ProcessorCount : maxWorkersCount; }
public RecordsReader(StreamReader streamReader, long bufferSizeInBytes, int readWhileSameFieldValue = -1) { _recordParser = new RecordParser(); _recordComparer = new RecordComparer(); _streamReader = streamReader; _bufferSizeInBytes = bufferSizeInBytes; _readWhileSameFieldValue = readWhileSameFieldValue; }
public RecordsBuffer(long maxSizeInBytes) { _recordComparer = new RecordComparer(); _maxSizeInBytes = maxSizeInBytes; }