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