Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,208 for keys (0.16 sec)

  1. internal/store/batch_test.go

    		t.Fatal("failed to get the duplicxate item by key '99' after adding")
    	}
    	keys, items, err = batch.GetAll()
    	if err != nil {
    		t.Fatalf("unable to get the items from the batch; %v", err)
    	}
    	if len(items) != 1 {
    		t.Fatalf("Expected length of the batch items to be 1 but got %v", len(items))
    	}
    	if len(keys) != 1 {
    		t.Fatalf("Expected length of the batch keys to be 1 but got %v", len(items))
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableBiMap.java

         * cause {@link #build} to fail.
         *
         * @since 19.0
         */
        @CanIgnoreReturnValue
        @Override
        public Builder<K, V> put(Entry<? extends K, ? extends V> entry) {
          super.put(entry);
          return this;
        }
    
        /**
         * Associates all of the given map's keys and values in the built bimap. Duplicate keys or
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.4K bytes
    - Viewed (0)
  3. internal/config/config.go

    		return defaultKVS.Get(key)
    	}
    	return v
    }
    
    // Keys returns the list of keys for the current KVS
    func (kvs KVS) Keys() []string {
    	keys := make([]string, len(kvs))
    	var foundComment bool
    	for i := range kvs {
    		if kvs[i].Key == madmin.CommentKey {
    			foundComment = true
    		}
    		keys[i] = kvs[i].Key
    	}
    	// Comment KV not found, add it explicitly.
    	if !foundComment {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Mar 02 05:11:03 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableBiMapFloodingTest.java

                            keys ->
                                path.create(
                                    Lists.transform(
                                        keys, key -> Maps.immutableEntry(key, new Object()))),
                            keys ->
                                path.create(
                                    Lists.transform(
                                        keys, key -> Maps.immutableEntry(new Object(), key))),
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  5. cmd/api-resources.go

    	errCode = ErrNone
    
    	if values.Get("max-keys") != "" {
    		var err error
    		if maxkeys, err = strconv.Atoi(values.Get("max-keys")); err != nil {
    			errCode = ErrInvalidMaxKeys
    			return
    		}
    	} else {
    		maxkeys = maxObjectList
    	}
    
    	prefix = values.Get("prefix")
    	marker = values.Get("key-marker")
    	delimiter = values.Get("delimiter")
    	encodingType = values.Get("encoding-type")
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jun 07 18:25:26 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ArrayTable.java

       * either key is null or isn't among the keys provided during construction, this method has no
       * effect.
       *
       * <p>This method is equivalent to {@code put(rowKey, columnKey, null)} when both provided keys
       * are valid.
       *
       * @param rowKey row key of mapping to be erased
       * @param columnKey column key of mapping to be erased
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 26.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

          keys.remove(1);
          keys.remove(2);
          assertFalse(keys.remove(null));
          assertFalse(keys.remove(6));
          assertFalse(keys.remove(-6));
          assertFalse(keys.removeAll(asList(null, 0, 15, 1500)));
          assertFalse(keys.retainAll(asList(null, 0, 15, 1500)));
          checkEmpty(keys);
          checkEmpty(cache);
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/TestsForMapsInJavaUtil.java

            .withFeatures(
                MapFeature.GENERAL_PURPOSE,
                MapFeature.ALLOWS_NULL_KEYS,
                MapFeature.ALLOWS_NULL_VALUES,
                MapFeature.ALLOWS_ANY_NULL_QUERIES,
                MapFeature.FAILS_FAST_ON_CONCURRENT_MODIFICATION,
                MapFeature.RESTRICTS_KEYS,
                MapFeature.RESTRICTS_VALUES,
                CollectionFeature.SUPPORTS_ITERATOR_REMOVE,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  9. internal/store/batch.go

    	if _, ok := b.items[key]; !ok {
    		b.keys = append(b.keys, key)
    	}
    	b.items[key] = item
    
    	return nil
    }
    
    // GetAll fetches the items and resets the batch
    // Returned items are not referenced by the batch
    func (b *Batch[K, T]) GetAll() (orderedKeys []K, orderedItems []T, err error) {
    	b.Lock()
    	defer b.Unlock()
    
    	orderedKeys = append([]K(nil), b.keys...)
    	for _, key := range orderedKeys {
    		item, ok := b.items[key]
    		if !ok {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Oct 07 15:07:38 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  10. cmd/xl-storage-meta-inline.go

    		var key []byte
    		key, buf, err = msgp.ReadMapKeyZC(buf)
    		if err != nil {
    			return keys, err
    		}
    		if len(key) == 0 {
    			return keys, fmt.Errorf("xlMetaInlineData: key %d is length 0", i)
    		}
    		keys = append(keys, string(key))
    		// Skip data...
    		_, buf, err = msgp.ReadBytesZC(buf)
    		if err != nil {
    			return keys, err
    		}
    	}
    	return keys, nil
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 9.5K bytes
    - Viewed (0)
Back to top