Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 78 for colonne (0.2 sec)

  1. internal/s3select/json/record.go

    	return nil, errors.New("not implemented here")
    }
    
    // Reset the record.
    func (r *Record) Reset() {
    	if len(r.KVS) > 0 {
    		r.KVS = r.KVS[:0]
    	}
    }
    
    // Clone the record and if possible use the destination provided.
    func (r *Record) Clone(dst sql.Record) sql.Record {
    	other, ok := dst.(*Record)
    	if !ok {
    		other = &Record{}
    	}
    	if len(other.KVS) > 0 {
    		other.KVS = other.KVS[:0]
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  2. cmd/data-scanner-metric.go

    	}
    	val := p.actionsLatency[a].total()
    	return val
    }
    
    // setCycle updates the current cycle metrics.
    func (p *scannerMetrics) setCycle(c *currentScannerCycle) {
    	if c != nil {
    		c2 := c.clone()
    		c = &c2
    	}
    	p.cycleInfoMu.Lock()
    	p.cycleInfo = c
    	p.cycleInfoMu.Unlock()
    }
    
    // getCycle returns the current cycle metrics.
    // If not nil, the returned value can safely be modified.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 25 05:15:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  3. cmd/bucket-replication-metrics.go

    	Peak    float64          `json:"peakRate" msg:"p"`
    	N       int64            `json:"n" msg:"n"`
    	measure *rateMeasurement `json:"-"`
    	sma     *SMA             `json:"-"`
    }
    
    // Clone returns a copy of XferStats
    func (rx *XferStats) Clone() *XferStats {
    	curr := rx.curr()
    	peak := rx.Peak
    	if curr > peak {
    		peak = curr
    	}
    	return &XferStats{
    		Curr:    curr,
    		Avg:     rx.Avg,
    		Peak:    peak,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  4. cmd/batch-handlers.go

    	}
    
    	switch ri.Version {
    	case batchReplVersionV1:
    	default:
    		return fmt.Errorf("unexpected batch %s meta version: %d", ri.JobType, ri.Version)
    	}
    
    	return nil
    }
    
    func (ri *batchJobInfo) clone() *batchJobInfo {
    	ri.mu.RLock()
    	defer ri.mu.RUnlock()
    
    	return &batchJobInfo{
    		Version:          ri.Version,
    		JobID:            ri.JobID,
    		JobType:          ri.JobType,
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  5. src/bufio/bufio.go

    		if e == nil { // got final fragment
    			break
    		}
    		if e != ErrBufferFull { // unexpected error
    			err = e
    			break
    		}
    
    		// Make a copy of the buffer.
    		buf := bytes.Clone(frag)
    		fullBuffers = append(fullBuffers, buf)
    		totalLen += len(buf)
    	}
    
    	totalLen += len(frag)
    	return fullBuffers, frag, totalLen, err
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 12 14:39:08 GMT 2023
    - 21.8K bytes
    - Viewed (0)
  6. cmd/data-scanner.go

    	if f.updates == nil || time.Since(f.lastUpdate) < time.Minute {
    		return
    	}
    	if flat := f.updateCache.sizeRecursive(f.newCache.Info.Name); flat != nil {
    		select {
    		case f.updates <- flat.clone():
    		default:
    		}
    		f.lastUpdate = time.Now()
    	}
    }
    
    // scanFolder will scan the provided folder.
    // Files found in the folders will be added to f.newCache.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 11:18:58 GMT 2024
    - 47.6K bytes
    - Viewed (0)
  7. cmd/object-handlers_test.go

    				// HTTP request used to call the handler.
    				req := reqRec.req
    				// HTTP request type string for V4/V2 requests.
    				reqType := reqRec.reqType
    
    				// Clone so we don't retain values we do not want.
    				req.Header = req.Header.Clone()
    
    				// introduce faults in the request.
    				// deliberately introducing the invalid value to be able to assert the response with the expected error response.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  8. statement_test.go

    			s := new(Statement)
    			for w := 0; w < whereCount; w++ {
    				s = s.clone()
    				s.AddClause(clause.Where{
    					Exprs: s.BuildCondition(fmt.Sprintf("where%d", w)),
    				})
    			}
    
    			s1 := s.clone()
    			s1.AddClause(clause.Where{
    				Exprs: s.BuildCondition("FINAL1"),
    			})
    			s2 := s.clone()
    			s2.AddClause(clause.Where{
    				Exprs: s.BuildCondition("FINAL2"),
    			})
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Dec 23 13:19:41 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  9. cmd/bucket-stats.go

    func (brs *BucketReplicationStats) Empty() bool {
    	return len(brs.Stats) == 0 && brs.ReplicaSize == 0
    }
    
    // Clone creates a new BucketReplicationStats copy
    func (brs BucketReplicationStats) Clone() (c BucketReplicationStats) {
    	// This is called only by replicationStats cache and already holds a
    	// read lock before calling Clone()
    
    	c = brs
    	// We need to copy the map, so we do not reference the one in `brs`.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 13.1K bytes
    - Viewed (0)
  10. src/arena/arena.go

    // slice after free may result in a fault, but this fault is also not guaranteed.
    func MakeSlice[T any](a *Arena, len, cap int) []T {
    	var sl []T
    	runtime_arena_arena_Slice(a.a, &sl, cap)
    	return sl[:len]
    }
    
    // Clone makes a shallow copy of the input value that is no longer bound to any
    // arena it may have been allocated from, returning the copy. If it was not
    // allocated from an arena, it is returned untouched. This function is useful
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
Back to top