- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for mapValue (0.32 sec)
-
callbacks/helper.go
func ConvertMapToValuesForCreate(stmt *gorm.Statement, mapValue map[string]interface{}) (values clause.Values) { values.Columns = make([]clause.Column, 0, len(mapValue)) selectColumns, restricted := stmt.SelectAndOmitColumns(true, false) keys := make([]string, 0, len(mapValue)) for k := range mapValue { keys = append(keys, k) } sort.Strings(keys) for _, k := range keys { value := mapValue[k] if stmt.Schema != nil {
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Thu Apr 14 12:32:57 UTC 2022 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy.go
"k8s.io/apiserver/pkg/cel" ) type GetFieldFunc func(*MapValue) ref.Val var _ ref.Val = (*MapValue)(nil) var _ traits.Mapper = (*MapValue)(nil) // MapValue is a map that lazily evaluate its value when a field is first accessed. // The map value is not designed to be thread-safe. type MapValue struct { typeValue *types.Type // values are previously evaluated values obtained from callbacks
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Aug 23 21:31:27 UTC 2023 - 4.9K bytes - Viewed (0) -
src/internal/fmtsort/sort.go
func Sort(mapValue reflect.Value) SortedMap { if mapValue.Type().Kind() != reflect.Map { return nil } // Note: this code is arranged to not panic even in the presence // of a concurrent map update. The runtime is responsible for // yelling loudly if that happens. See issue 33275. n := mapValue.Len() sorted := make(SortedMap, 0, n) iter := mapValue.MapRange() for iter.Next() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:31:45 UTC 2024 - 4.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy_test.go
activation := &testActivation{variables: variablesMap} // add foo as a string variablesType.Fields["foo"] = apiservercel.NewDeclField("foo", apiservercel.StringType, true, nil, nil) variablesMap.Append("foo", func(_ *MapValue) ref.Val { return types.String("foo-string") }) exp := "variables.foo == 'foo-string'" v, err := compileAndRun(env, activation, exp) if err != nil { t.Fatalf("%q: %v", exp, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 4.6K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/MappingProvider.java
} return ExecutionTimeValue.value(mapValue(context, value.toValue())); } } @Nonnull @Override protected Value<OUT> mapValue(EvaluationContext.ScopeContext context, Value<? extends IN> value) { Value<OUT> transformedValue = super.mapValue(context, value); // Check MappingProvider contract with regard to the transform
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 17 23:22:41 UTC 2024 - 3.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/TransformBackedProvider.java
return ExecutionTimeValue.value(mapValue(context, value.toValue())); } } @Override protected Value<? extends OUT> calculateOwnValue(ValueConsumer consumer) { try (EvaluationContext.ScopeContext context = openScope()) { beforeRead(context); Value<? extends IN> value = provider.calculateValue(consumer); return mapValue(context, value); } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 17 23:22:41 UTC 2024 - 4.1K bytes - Viewed (0) -
src/cmd/fix/jnitype_test.go
import "C" var x = map[C.jobject]int{nil: 0} `, Out: `package main // typedef struct _jobject* jobject; import "C" var x = map[C.jobject]int{0: 0} `, }, { Name: "jni.MapValue", In: `package main // typedef struct _jobject* jobject; import "C" var x = map[int]C.jobject{0: nil} `, Out: `package main // typedef struct _jobject* jobject; import "C"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 16 22:02:42 UTC 2022 - 2.6K bytes - Viewed (0) -
src/cmd/fix/egltype_test.go
import "C" var x = map[C.$EGLTYPE]int{nil: 0} `, Out: `package main // typedef void *$EGLTYPE; import "C" var x = map[C.$EGLTYPE]int{0: 0} `, }, { Name: "egl.MapValue", In: `package main // typedef void *$EGLTYPE; import "C" var x = map[int]C.$EGLTYPE{0: nil} `, Out: `package main // typedef void *$EGLTYPE; import "C"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 16 22:02:42 UTC 2022 - 2.8K bytes - Viewed (0) -
src/cmd/fix/cftype_test.go
import "C" var x = map[C.CFTypeRef]int{nil: 0} `, Out: `package main // typedef const void *CFTypeRef; import "C" var x = map[C.CFTypeRef]int{0: 0} `, }, { Name: "cftype.MapValue", In: `package main // typedef const void *CFTypeRef; import "C" var x = map[int]C.CFTypeRef{0: nil} `, Out: `package main // typedef const void *CFTypeRef; import "C"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 16 22:02:42 UTC 2022 - 3.2K bytes - Viewed (0) -
testing/integ-test/src/crossVersionTest/groovy/org/gradle/integtests/AbstractTaskSubclassingBinaryCompatibilityCrossVersionSpec.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 8.3K bytes - Viewed (0)