- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 190 for Indexes (0.13 sec)
-
src/go/doc/comment/text.go
// minimizing the sum of the squares of the leftover lengths // at the end of each line (except the last, of course), // with a preference for ending lines at punctuation (.,:;). // // The returned slice gives the indexes of the first words // on each line in the wrapped text with a final entry of len(words). // Thus the lines are words[seq[0]:seq[1]], words[seq[1]:seq[2]], // ..., words[seq[len(seq)-2]:seq[len(seq)-1]]. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 8.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/Indexed.java
* @param <T> * 要素の型 * @see IndexedIterator */ public class Indexed<T> { /** 要素 */ private final T element; /** 要素のインデックス */ private final int index; /** * コンストラクタ * * @param element * 要素 * @param index * 要素のインデックス */ public Indexed(final T element, final int index) { this.element = element;
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.5K bytes - Viewed (0) -
pkg/controller/volume/common/common.go
func AddPodPVCIndexerIfNotPresent(indexer cache.Indexer) error { return AddIndexerIfNotPresent(indexer, PodPVCIndex, PodPVCIndexFunc()) } // AddIndexerIfNotPresent adds the index function with the name into the cache indexer if not present func AddIndexerIfNotPresent(indexer cache.Indexer, indexName string, indexFunc cache.IndexFunc) error { indexers := indexer.GetIndexers() if _, ok := indexers[indexName]; ok { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 11 18:54:20 UTC 2021 - 2.2K bytes - Viewed (0) -
pkg/controller/volume/persistentvolume/index.go
// persistentVolumeOrderedIndex is a cache.Store that keeps persistent volumes // indexed by AccessModes and ordered by storage capacity. type persistentVolumeOrderedIndex struct { store cache.Indexer } func newPersistentVolumeOrderedIndex() persistentVolumeOrderedIndex { return persistentVolumeOrderedIndex{cache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{"accessmodes": accessModesIndexFunc})} }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 6.5K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_status_updater_test.go
set := newStatefulSet(3) status := apps.StatefulSetStatus{ObservedGeneration: 3, Replicas: 2} fakeClient := &fake.Clientset{} indexer := cache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}) indexer.Add(set) setLister := appslisters.NewStatefulSetLister(indexer) updater := NewRealStatefulSetStatusUpdater(fakeClient, setLister)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jul 13 15:37:10 UTC 2022 - 5.9K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/request/headerrequest/requestheader_controller_test.go
t.Run(scenario.name, func(t *testing.T) { // test data indexer := cache.NewIndexer(cache.MetaNamespaceKeyFunc, cache.Indexers{}) if err := indexer.Add(scenario.cm); err != nil { t.Fatal(err.Error()) } target := newDefaultTarget() target.configmapLister = corev1listers.NewConfigMapLister(indexer).ConfigMaps(defConfigMapNamespace) // act err := target.sync()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 07 14:37:01 UTC 2022 - 9.3K bytes - Viewed (0) -
pkg/controller/clusterroleaggregation/clusterroleaggregation_controller_test.go
for _, test := range tests { t.Run(test.name, func(t *testing.T) { indexer := cache.NewIndexer(controller.KeyFunc, cache.Indexers{}) objs := []runtime.Object{} for _, obj := range test.startingClusterRoles { objs = append(objs, obj) indexer.Add(obj) } fakeClient := fakeclient.NewSimpleClientset(objs...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 12 15:46:12 UTC 2023 - 9K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/IndexedIterator.java
* * List<String> list = ...; * for (Indexed<String%gt; indexed : indexed(list)) { * System.out.println(indexed.getIndex()); * System.out.println(indexed.getElement()); * } * </pre> * * <pre> * import static org.codelibs.core.collection.IndexedIterator.*; * import static org.codelibs.core.io.LineIterator.*; * * BufferedReader reader = ...; * for (Indexed<String%gt; indexed : indexed(iterable(reader))) {
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 3.7K bytes - Viewed (0) -
pkg/controlplane/controller/legacytokentracking/controller.go
// feature, existing configmap will be deleted. type Controller struct { configMapClient corev1client.ConfigMapsGetter configMapInformer cache.SharedIndexInformer configMapCache cache.Indexer configMapSynced cache.InformerSynced queue workqueue.TypedRateLimitingInterface[string] // rate limiter controls the rate limit of the creation of the configmap.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/IndexedIteratorTest.java
final List<String> list = newArrayList(); list.add("aaa"); list.add("bbb"); list.add("ccc"); for (final Indexed<String> indexed : indexed(list)) { System.out.println(indexed.getIndex()); System.out.println(indexed.getElement()); } } /** * @throws Exception */ @Test public void testForEachLineIterator() throws Exception {
Registered: Wed Jun 12 12:50:12 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 2.7K bytes - Viewed (0)