Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 290 for putA (0.03 sec)

  1. internal/grid/types.go

    		return make([]T, 0, sz)
    	}
    	t2 := *t
    	return t2[:0]
    }
    
    func (p *ArrayOf[T]) putA(v []T) {
    	var zero T // nil
    	for i, t := range v {
    		//nolint:staticcheck // SA6002 IT IS A GENERIC VALUE!
    		p.ePool.Put(t)
    		v[i] = zero
    	}
    	if v != nil {
    		v = v[:0]
    		p.aPool.Put(&v)
    	}
    }
    
    func (p *ArrayOf[T]) newE() T {
    	return p.ePool.Get().(T)
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  2. internal/store/queuestore.go

    	}
    
    	if err != nil {
    		return err
    	}
    	// Increment the item count.
    	store.entries[key.String()] = time.Now().UnixNano()
    	return nil
    }
    
    // Put - puts an item to the store.
    func (store *QueueStore[I]) Put(item I) (Key, error) {
    	store.Lock()
    	defer store.Unlock()
    	if uint64(len(store.entries)) >= store.entryLimit {
    		return Key{}, errLimitExceeded
    	}
    	// Generate a new UUID for the key.
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. internal/store/queuestore_test.go

    	if err != nil {
    		t.Fatal("Failed to create a queue store ", err)
    	}
    	for i := 0; i < 5; i++ {
    		if _, err := store.Put(testItem); err != nil {
    			t.Fatal("Failed to put to queue store ", err)
    		}
    	}
    	// Should not allow 6th Put.
    	if _, err := store.Put(testItem); err == nil {
    		t.Fatalf("Expected to fail with %s, but passes", errLimitExceeded)
    	}
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. src/cmd/cgo/doc.go

    	this symbol.
    
    	In the <remote>, # or @ can be used to introduce a symbol version.
    
    	Examples:
    	//go:cgo_import_dynamic puts
    	//go:cgo_import_dynamic puts puts#GLIBC_2.2.5
    	//go:cgo_import_dynamic puts puts#GLIBC_2.2.5 "libc.so.6"
    
    	A side effect of the cgo_import_dynamic directive with a
    	library is to make the final binary depend on that dynamic
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Tue Oct 01 22:52:54 UTC 2024
    - 44K bytes
    - Viewed (0)
  5. docs/en/docs/python-types.md

    #### List
    
    For example, let's define a variable to be a `list` of `str`.
    
    //// tab | Python 3.9+
    
    Declare the variable, with the same colon (`:`) syntax.
    
    As the type, put `list`.
    
    As the list is a type that contains some internal types, you put them in square brackets:
    
    ```Python hl_lines="1"
    {!> ../../docs_src/python_types/tutorial006_py39.py!}
    ```
    
    ////
    
    //// tab | Python 3.8+
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sat Oct 26 11:47:53 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/documents/ApiAdminDocumentsAction.java

                    doc.put(indexFieldBoost, 1.0f);
                }
                if (!doc.containsKey(indexFieldRole)) {
                    doc.put(indexFieldRole, guestRoleList);
                }
                if (!doc.containsKey(indexFieldLastModified)) {
                    doc.put(indexFieldLastModified, now);
                }
                if (!doc.containsKey(indexFieldTimestamp)) {
                    doc.put(indexFieldTimestamp, now);
                }
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Thu Jul 25 01:48:41 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/rank/fusion/DefaultSearcher.java

                docMap.put(Constants.TEXT_FRAGMENTS, viewHelper.createTextFragmentsByQuery());
            }
    
            // ContentTitle
            if (viewHelper != null) {
                docMap.put(fessConfig.getResponseFieldContentTitle(), viewHelper.getContentTitle(docMap));
                docMap.put(fessConfig.getResponseFieldContentDescription(), viewHelper.getContentDescription(docMap));
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Mon Jul 22 06:56:21 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java

                defaultMap.put(FessConfig.USE_OWN_TMP_DIR, "true");
                defaultMap.put(FessConfig.MAX_LOG_OUTPUT_LENGTH, "4000");
                defaultMap.put(FessConfig.ADAPTIVE_LOAD_CONTROL, "50");
                defaultMap.put(FessConfig.SUPPORTED_UPLOADED_JS_EXTENTIONS, "js");
                defaultMap.put(FessConfig.SUPPORTED_UPLOADED_CSS_EXTENTIONS, "css");
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 468.5K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/helper/IndexingHelperTest.java

                @Override
                public boolean update(final String index, final String id, final String field, final Object value) {
                    resultMap.put("index", index);
                    resultMap.put("id", id);
                    resultMap.put("field", field);
                    resultMap.put("value", value.toString());
                    return true;
                }
            };
            ComponentUtil.register(client, "searchEngineClient");
    
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Wed Jul 24 08:54:24 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/body-updates.md

    # 请求体 - 更新数据
    
    ## 用 `PUT` 更新数据
    
    更新数据请用 <a href="https://developer.mozilla.org/zh-CN/docs/Web/HTTP/Methods/PUT" class="external-link" target="_blank">HTTP `PUT`</a> 操作。
    
    把输入数据转换为以 JSON 格式存储的数据(比如,使用 NoSQL 数据库时),可以使用 `jsonable_encoder`。例如,把 `datetime` 转换为 `str`。
    
    ```Python hl_lines="30-35"
    {!../../docs_src/body_updates/tutorial001.py!}
    ```
    
    `PUT` 用于接收替换现有数据的数据。
    
    ### 关于更新数据的警告
    
    用 `PUT` 把数据项 `bar` 更新为以下内容时:
    
    ```Python
    {
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top