Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 196 for Indexer (0.86 sec)

  1. src/text/template/funcs.go

    // argument must be a string, slice, or array.
    func slice(item reflect.Value, indexes ...reflect.Value) (reflect.Value, error) {
    	item = indirectInterface(item)
    	if !item.IsValid() {
    		return reflect.Value{}, fmt.Errorf("slice of untyped nil")
    	}
    	if len(indexes) > 3 {
    		return reflect.Value{}, fmt.Errorf("too many slice indexes: %d", len(indexes))
    	}
    	var cap int
    	switch item.Kind() {
    	case reflect.String:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/mod/sumdb/tlog/tile.go

    		size = 1 << uint(t.H)
    	}
    	start := t.N << uint(t.H)
    	indexes := make([]int64, size)
    	for i := 0; i < size; i++ {
    		indexes[i] = StoredHashIndex(t.H*t.L, start+int64(i))
    	}
    
    	hashes, err := r.ReadHashes(indexes)
    	if err != nil {
    		return nil, err
    	}
    	if len(hashes) != len(indexes) {
    		return nil, fmt.Errorf("tlog: ReadHashes(%d indexes) = %d hashes", len(indexes), len(hashes))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. cmd/endpoint-ellipses_test.go

    			}
    			if !reflect.DeepEqual(testCase.indexes, gotIndexes) {
    				t.Errorf("Expected %v, got %v", testCase.indexes, gotIndexes)
    			}
    		})
    	}
    }
    
    // Test tests calculating set indexes.
    func TestGetSetIndexes(t *testing.T) {
    	testCases := []struct {
    		args       []string
    		totalSizes []uint64
    		indexes    [][]uint64
    		success    bool
    	}{
    		// Invalid inputs.
    		{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  4. pkg/config/schema/kubeclient/common.go

    				},
    			},
    			&unstructured.Unstructured{},
    			cache.SharedIndexInformerOptions{
    				ResyncPeriod:      0,
    				Indexers:          cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc},
    				ObjectDescription: g.String(),
    			},
    		)
    		setupInformer(opts, inf)
    		return inf
    	})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  5. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/PersistentCache.java

        /**
         * Returns the base directory for this cache.
         */
        @Override
        File getBaseDir();
    
        /**
         * Creates an indexed cache implementation that is contained within this cache. This method may be used at any time.
         *
         * <p>The returned cache may only be used by an action being run from {@link #useCache(java.util.function.Supplier)}.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 19 07:59:23 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_test.go

    	w.RLock()
    	defer w.RUnlock()
    
    	return w.getAllEventsSinceLocked(resourceVersion, "", opts)
    }
    
    // newTestWatchCache just adds a fake clock.
    func newTestWatchCache(capacity int, indexers *cache.Indexers) *testWatchCache {
    	keyFunc := func(obj runtime.Object) (string, error) {
    		return storage.NamespaceKeyFunc("prefix", obj)
    	}
    	getAttrsFunc := func(obj runtime.Object) (labels.Set, fields.Set, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/op.go

    	return a.abiInfo.ArgWidth()
    }
    
    // ParamAssignmentForResult returns the ABI Parameter assignment for result which (indexed 0, 1, etc).
    func (a *AuxCall) ParamAssignmentForResult(which int64) *abi.ABIParamAssignment {
    	return a.abiInfo.OutParam(int(which))
    }
    
    // OffsetOfResult returns the SP offset of result which (indexed 0, 1, etc).
    func (a *AuxCall) OffsetOfResult(which int64) int64 {
    	n := int64(a.abiInfo.OutParam(int(which)).Offset())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 15:29:10 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  8. pkg/controller/job/job_controller.go

    }
    
    // activePodsForRemoval returns Pods that should be removed because there
    // are too many pods running or, if this is an indexed job, there are repeated
    // indexes or invalid indexes or some pods don't have indexes.
    // Sorts candidate pods in the order such that not-ready < ready, unscheduled
    // < scheduled, and pending < running. This ensures that we delete pods
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 10 23:56:37 UTC 2024
    - 77.6K bytes
    - Viewed (0)
  9. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

          return new ImmutableAsList<E>() {
            @Override
            public E get(int index) {
              return Indexed.this.get(index);
            }
    
            @Override
            Indexed<E> delegateCollection() {
              return Indexed.this;
            }
          };
        }
      }
    
      public static <E> Builder<E> builder() {
        return new Builder<E>();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. src/encoding/csv/reader.go

    	rawBuffer []byte
    
    	// recordBuffer holds the unescaped fields, one after another.
    	// The fields can be accessed by using the indexes in fieldIndexes.
    	// E.g., For the row `a,"b","c""d",e`, recordBuffer will contain `abc"de`
    	// and fieldIndexes will contain the indexes [1, 2, 5, 6].
    	recordBuffer []byte
    
    	// fieldIndexes is an index of fields inside recordBuffer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:32:28 UTC 2024
    - 14.2K bytes
    - Viewed (0)
Back to top