Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Threads (0.26 sec)

  1. internal/s3select/json/reader.go

    )
    
    // Reader - JSON record reader for S3Select.
    type Reader struct {
    	args       *ReaderArgs
    	decoder    *jstream.Decoder
    	valueCh    chan *jstream.MetaValue
    	readCloser io.ReadCloser
    }
    
    // Read - reads single record.
    func (r *Reader) Read(dst sql.Record) (sql.Record, error) {
    	v, ok := <-r.valueCh
    	if !ok {
    		if err := r.decoder.Err(); err != nil {
    			return nil, errJSONParsingError(err)
    		}
    		return nil, io.EOF
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 24 03:58:53 GMT 2022
    - 3K bytes
    - Viewed (0)
  2. internal/etag/reader.go

    // ETag returns the ETag of the underlying Tagger.
    func (r wrapReader) ETag() ETag {
    	if r.Tagger == nil {
    		return nil
    	}
    	return r.Tagger.ETag()
    }
    
    // Wrap returns an io.Reader that reads from the wrapped
    // io.Reader and implements the Tagger interaface.
    //
    // If content implements Tagger then the returned Reader
    // returns ETag of the content. Otherwise, it returns
    // nil as ETag.
    //
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  3. src/archive/tar/reader.go

    		tr.curr = &sparseFileReader{tr.curr, sph, 0}
    	}
    	return err
    }
    
    // readGNUSparsePAXHeaders checks the PAX headers for GNU sparse headers.
    // If they are found, then this function reads the sparse map and returns it.
    // This assumes that 0.0 headers have already been converted to 0.1 headers
    // by the PAX header parsing logic.
    func (tr *Reader) readGNUSparsePAXHeaders(hdr *Header) (sparseDatas, error) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  4. internal/s3select/simdj/reader.go

    	// err will only be returned after decoded has been closed.
    	err          *error
    	readCloser   io.ReadCloser
    	onReaderExit func()
    
    	exitReader chan struct{}
    	readerWg   sync.WaitGroup
    }
    
    // Read - reads single record.
    func (r *Reader) Read(dst sql.Record) (sql.Record, error) {
    	v, ok := <-r.decoded
    	if !ok {
    		if r.err != nil && *r.err != nil {
    			return nil, errJSONParsingError(*r.err)
    		}
    		return nil, io.EOF
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue May 30 17:02:22 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  5. internal/bucket/bandwidth/reader.go

    type MonitoredReader struct {
    	r        io.Reader
    	throttle *bucketThrottle
    	ctx      context.Context // request context
    	lastErr  error           // last error reported, if this non-nil all reads will fail.
    	m        *Monitor
    	opts     *MonitorReaderOptions
    }
    
    // BucketOptions represents the bucket and optionally its replication target pair.
    type BucketOptions struct {
    	Name           string
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Sep 06 03:21:59 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  6. internal/hash/reader.go

    }
    
    // NewReader returns a new Reader that wraps src and computes
    // MD5 checksum of everything it reads as ETag.
    //
    // It also computes the SHA256 checksum of everything it reads
    // if sha256Hex is not the empty string.
    //
    // If size resp. actualSize is unknown at the time of calling
    // NewReader then it should be set to -1.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 18 17:00:54 GMT 2023
    - 10.8K bytes
    - Viewed (0)
  7. internal/s3select/csv/reader.go

    type queueItem struct {
    	input []byte          // raw input sent to the worker
    	dst   chan [][]string // result of block decode
    	err   error           // any error encountered will be set here
    }
    
    // Read - reads single record.
    // Once Read is called the previous record should no longer be referenced.
    func (r *Reader) Read(dst sql.Record) (sql.Record, error) {
    	// If we have have any records left, return these before any error.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  8. src/archive/zip/reader.go

    	if b.uint32() != 1 { // total number of disks
    		return -1, nil // the file is not a valid zip64-file
    	}
    	return int64(p), nil
    }
    
    // readDirectory64End reads the zip64 directory end and updates the
    // directory end with the zip64 directory end values.
    func readDirectory64End(r io.ReaderAt, offset int64, d *directoryEnd) (err error) {
    	buf := make([]byte, directory64EndLen)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
Back to top