SizeConstraints
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Ograniczenia dotyczące rozmiaru list haszujących.
Zapis JSON |
{
"maxUpdateEntries": integer,
"maxDatabaseEntries": integer
} |
Pola |
maxUpdateEntries |
integer
Maksymalny rozmiar liczby wpisów. Aktualizacja nie będzie zawierać więcej wpisów niż ta wartość, ale może się zdarzyć, że będzie ich mniej. Wymagana jest wartość co najmniej 1024. Jeśli ta opcja zostanie pominięta lub ustawiona na zero, nie zostanie ustawiony żaden limit rozmiaru aktualizacji.
|
maxDatabaseEntries |
integer
Określa maksymalną liczbę pozycji listy, które klient może mieć w lokalnej bazie danych. (Serwer MOŻE spowodować, że klient przechwytuje mniej wpisów niż ta liczba). Jeśli ta zasada jest pominięta lub wynosi zero, limit rozmiaru bazy danych nie jest ustawiany.
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[[["\u003cp\u003eThe JSON schema defines constraints for hash list sizes, using \u003ccode\u003emaxUpdateEntries\u003c/code\u003e and \u003ccode\u003emaxDatabaseEntries\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003emaxUpdateEntries\u003c/code\u003e limits the number of entries in an update, with a minimum value of 1024 and no limit if omitted or zero.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003emaxDatabaseEntries\u003c/code\u003e limits the total entries allowed in the client's local database, with no limit if omitted or zero.\u003c/p\u003e\n"]]],["The content defines the structure for specifying constraints on hash list sizes using a JSON object with two integer fields: `maxUpdateEntries` and `maxDatabaseEntries`. `maxUpdateEntries` sets the maximum number of entries in an update, with a minimum of 1024. `maxDatabaseEntries` limits the number of entries a client is willing to store locally. Omitting either field or setting it to zero indicates no size limit for that aspect.\n"],null,["# SizeConstraints\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nThe constraints on the sizes of the hash lists.\n\n| JSON representation |\n|------------------------------------------------------------------------|\n| ``` { \"maxUpdateEntries\": integer, \"maxDatabaseEntries\": integer } ``` |\n\n| Fields ||\n|----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `maxUpdateEntries` | `integer` The maximum size in number of entries. The update will not contain more entries than this value, but it is possible that the update will contain fewer entries than this value. This MUST be at least 1024. If omitted or zero, no update size limit is set. |\n| `maxDatabaseEntries` | `integer` Sets the maximum number of entries that the client is willing to have in the local database for the list. (The server MAY cause the client to store less than this number of entries.) If omitted or zero, no database size limit is set. |"]]