Exemplo 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;
 }
Exemplo n.º 2
0
 public RecordsReader(StreamReader streamReader, long bufferSizeInBytes, int readWhileSameFieldValue = -1)
 {
     _recordParser            = new RecordParser();
     _recordComparer          = new RecordComparer();
     _streamReader            = streamReader;
     _bufferSizeInBytes       = bufferSizeInBytes;
     _readWhileSameFieldValue = readWhileSameFieldValue;
 }
Exemplo n.º 3
0
 public RecordsBuffer(long maxSizeInBytes)
 {
     _recordComparer = new RecordComparer();
     _maxSizeInBytes = maxSizeInBytes;
 }