Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 387 for tozero (0.17 sec)

  1. schema/utils.go

    				continue
    			}
    			loaded[elemKey] = true
    
    			fieldValues := make([]interface{}, len(fields))
    			notZero = false
    			for idx, field := range fields {
    				fieldValues[idx], zero = field.ValueOf(ctx, elem)
    				notZero = notZero || !zero
    			}
    
    			if notZero {
    				dataKey := utils.ToStringKey(fieldValues...)
    				if _, ok := dataResults[dataKey]; !ok {
    					results = append(results, fieldValues)
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Aug 19 13:35:14 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/transition.go

    	}
    
    	*tDate = TransitionDate{trnDate}
    	return nil
    }
    
    // MarshalXML encodes expiration date if it is non-zero and encodes
    // empty string otherwise
    func (tDate TransitionDate) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
    	if tDate.Time.IsZero() {
    		return nil
    	}
    	return e.EncodeElement(tDate.Format(time.RFC3339), startElement)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jan 10 17:07:49 GMT 2022
    - 5.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ComparisonChain.java

     *       .result();
     * }
     * }</pre>
     *
     * <p>The value of this expression will have the same sign as the <i>first nonzero</i> comparison
     * result in the chain, or will be zero if every comparison result was zero.
     *
     * <p><b>Note:</b> {@code ComparisonChain} instances are <b>immutable</b>. For this utility to work
     * correctly, calls must be chained as illustrated above.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 9.3K bytes
    - Viewed (0)
  4. internal/bucket/lifecycle/expiration.go

    	}
    
    	*eDate = ExpirationDate{expDate}
    	return nil
    }
    
    // MarshalXML encodes expiration date if it is non-zero and encodes
    // empty string otherwise
    func (eDate ExpirationDate) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
    	if eDate.Time.IsZero() {
    		return nil
    	}
    	return e.EncodeElement(eDate.Format(time.RFC3339), startElement)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Feb 21 20:28:34 GMT 2024
    - 6.6K bytes
    - Viewed (1)
  5. cmd/rebalance-admin.go

    		elapsed := time.Since(ps.Info.StartTime)
    		eta := time.Duration(totalBytesToRebal * float64(elapsed) / float64(ps.Bytes))
    		if !ps.Info.EndTime.IsZero() {
    			stopTime = ps.Info.EndTime
    		}
    
    		if !stopTime.IsZero() { // rebalance is stopped or completed
    			elapsed = stopTime.Sub(ps.Info.StartTime)
    			eta = 0
    		}
    
    		r.Pools[i].Progress = rebalPoolProgress{
    			NumObjects:  ps.NumObjects,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Dec 22 00:56:43 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  6. tests/soft_delete_test.go

    	}
    
    	if err := DB.Delete(&user).Error; err != nil {
    		t.Fatalf("No error should happen when soft delete user, but got %v", err)
    	}
    
    	if sql.NullTime(user.DeletedAt).Time.IsZero() {
    		t.Fatalf("user's deleted at is zero")
    	}
    
    	sql := DB.Session(&gorm.Session{DryRun: true}).Delete(&user).Statement.SQL.String()
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Wed Feb 01 06:40:55 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  7. cmd/erasure-coding.go

    // It returns an error if the decoding failed.
    func (e *Erasure) DecodeDataBlocks(data [][]byte) error {
    	isZero := 0
    	for _, b := range data {
    		if len(b) == 0 {
    			isZero++
    			break
    		}
    	}
    	if isZero == 0 || isZero == len(data) {
    		// If all are zero, payload is 0 bytes.
    		return nil
    	}
    	return e.encoder().ReconstructData(data)
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  8. internal/amztime/parse.go

    // ParseReplicationTS parse http.TimeFormat first
    // will try time.RFC3339Nano when parse http.TimeFormat failed
    func ParseReplicationTS(str string) (time.Time, error) {
    	tm, err := time.Parse(http.TimeFormat, str)
    	if tm.IsZero() || err != nil {
    		tm, err = time.Parse(time.RFC3339Nano, str)
    	}
    	return tm, err
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  9. cmd/api-datatypes.go

    type DeleteMarkerMTime struct {
    	time.Time
    }
    
    // MarshalXML encodes expiration date if it is non-zero and encodes
    // empty string otherwise
    func (t DeleteMarkerMTime) MarshalXML(e *xml.Encoder, startElement xml.StartElement) error {
    	if t.Time.IsZero() {
    		return nil
    	}
    	return e.EncodeElement(t.Time.Format(time.RFC3339), startElement)
    }
    
    // ObjectV object version key/versionId
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jan 03 09:28:52 GMT 2022
    - 3K bytes
    - Viewed (0)
  10. callbacks/update.go

    			if size := stmt.ReflectValue.Len(); size > 0 {
    				var isZero bool
    				for i := 0; i < size; i++ {
    					for _, field := range stmt.Schema.PrimaryFields {
    						_, isZero = field.ValueOf(stmt.Context, stmt.ReflectValue.Index(i))
    						if !isZero {
    							break
    						}
    					}
    				}
    
    				if !isZero {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Mar 18 05:44:55 GMT 2024
    - 9.4K bytes
    - Viewed (1)
Back to top