Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newProgressReader (0.06 sec)

  1. internal/s3select/progress.go

    	if pr == nil {
    		return 0, 0
    	}
    	return pr.scannedReader.BytesRead(), pr.processedReader.BytesRead()
    }
    
    func newProgressReader(rc io.ReadCloser, compType CompressionType) (*progressReader, error) {
    	if rc == nil {
    		return nil, errors.New("newProgressReader: nil reader provided")
    	}
    	scannedReader := newCountUpReader(rc)
    	pr := progressReader{
    		rc:            rc,
    		scannedReader: scannedReader,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. internal/s3select/select.go

    		if err != nil {
    			return err
    		}
    		var rc io.ReadCloser = rsc
    		if length != -1 {
    			rc = newLimitedReadCloser(rsc, length)
    		}
    
    		s3Select.progressReader, err = newProgressReader(rc, s3Select.Input.CompressionType)
    		if err != nil {
    			rsc.Close()
    			return err
    		}
    
    		s3Select.recordReader, err = csv.NewReader(s3Select.progressReader, &s3Select.Input.CSVArgs)
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top