Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 375 for Keys (0.05 sec)

  1. src/test/java/org/codelibs/fess/util/DocMapTest.java

            DocMap docMap = new DocMap(value);
            assertTrue(docMap.isEmpty());
            value.clear();
    
            List<String> keys = Arrays.asList("test_2", "test_0", "lang", "test_1");
            value.put(keys.get(0), true);
            value.put(keys.get(1), 1000);
            value.put(keys.get(2), "ja");
            value.put(keys.get(3), "str");
            docMap = new DocMap(value);
            assertFalse(docMap.isEmpty());
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/TestMapEntrySetGenerator.java

        this.keys = keys;
        this.values = values;
      }
    
      @Override
      public SampleElements<Entry<K, V>> samples() {
        return SampleElements.mapEntries(keys, values);
      }
    
      @Override
      public Set<Entry<K, V>> create(Object... elements) {
        Entry<K, V>[] entries = createArray(elements.length);
        System.arraycopy(elements, 0, entries, 0, elements.length);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 19:46:10 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/apis/apiserver/v1/types_encryption.go

    type AESConfiguration struct {
    	// keys is a list of keys to be used for creating the AES transformer.
    	// Each key has to be 32 bytes long for AES-CBC and 16, 24 or 32 bytes for AES-GCM.
    	Keys []Key `json:"keys"`
    }
    
    // SecretboxConfiguration contains the API configuration for an Secretbox transformer.
    type SecretboxConfiguration struct {
    	// keys is a list of keys to be used for creating the Secretbox transformer.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 20:54:24 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  4. internal/store/batch.go

    // Batch represents an ordered batch
    type Batch[K key, T any] struct {
    	keys  []K
    	items map[K]T
    	limit uint32
    
    	sync.Mutex
    }
    
    // Add adds the item to the batch
    func (b *Batch[K, T]) Add(key K, item T) error {
    	b.Lock()
    	defer b.Unlock()
    
    	if b.isFull() {
    		return ErrBatchFull
    	}
    
    	if _, ok := b.items[key]; !ok {
    		b.keys = append(b.keys, key)
    	}
    	b.items[key] = item
    
    	return nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Oct 07 15:07:38 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. pilot/pkg/xds/xds_cache_test.go

    		}
    	})
    
    	t.Run("clear all", func(t *testing.T) {
    		c := model.NewXdsCache()
    		start := time.Now()
    		c.Add(ep1, &model.PushRequest{Start: start}, any1)
    		c.Add(ep2, &model.PushRequest{Start: start}, any2)
    
    		c.ClearAll()
    		if len(c.Keys(model.EDSType)) != 0 {
    			t.Fatalf("expected no keys, got: %v", c.Keys(model.EDSType))
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 31 20:43:08 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  6. pkg/controller/util/selectors/bimultimap.go

    func (m *BiMultimap) Select(key Key) (keys []Key, ok bool) {
    	m.mux.RLock()
    	defer m.mux.RUnlock()
    
    	selectingObject, ok := m.selectingObjects[key]
    	if !ok {
    		// Does not exist.
    		return nil, false
    	}
    	keys = make([]Key, 0)
    	if labeled, ok := m.labeledBySelecting[selectingObject.selectorKey]; ok {
    		for _, labeledObject := range labeled.objects {
    			keys = append(keys, labeledObject.key)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 21:41:32 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/dsl/CapabilityNotationParserFactoryTest.groovy

            [group: 'foo']               | "Required keys [name, version] are missing from map {group=foo}."
            [name: 'foo']                | "Required keys [group, version] are missing from map {name=foo}."
            [name: 'foo', version: 'v1'] | "Required keys [group] are missing from map {name=foo, version=v1}."
            [name: null]                 | "Required keys [group, name, version] are missing from map {name=null}."
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/TestMapEntrySetGenerator.java

        this.keys = keys;
        this.values = values;
      }
    
      @Override
      public SampleElements<Entry<K, V>> samples() {
        return SampleElements.mapEntries(keys, values);
      }
    
      @Override
      public Set<Entry<K, V>> create(Object... elements) {
        Entry<K, V>[] entries = createArray(elements.length);
        System.arraycopy(elements, 0, entries, 0, elements.length);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 26 19:46:10 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/expvar/expvar.go

    	return b
    }
    
    // Init removes all keys from the map.
    func (v *Map) Init() *Map {
    	v.keysMu.Lock()
    	defer v.keysMu.Unlock()
    	v.keys = v.keys[:0]
    	v.m.Clear()
    	return v
    }
    
    // addKey updates the sorted list of keys in v.keys.
    func (v *Map) addKey(key string) {
    	v.keysMu.Lock()
    	defer v.keysMu.Unlock()
    	// Using insertion sort to place key into the already-sorted v.keys.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 21:32:11 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. pkg/kube/krt/filter.go

    	listFromIndex func() any
    	indexMatches  func(any) bool
    }
    
    func (f *filter) String() string {
    	attrs := []string{}
    	if !f.keys.IsNil() {
    		attrs = append(attrs, "keys="+f.keys.String())
    	}
    	if f.selectsNonEmpty != nil {
    		attrs = append(attrs, fmt.Sprintf("selectsNonEmpty=%v", f.selectsNonEmpty))
    	}
    	if f.selects != nil {
    		attrs = append(attrs, fmt.Sprintf("selects=%v", f.selects))
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 10 23:33:56 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top