public enum DatastoreService.KeyRangeState extends Enum<DatastoreService.KeyRangeState>
Indicates the state of a KeyRange. See Also: DatastoreService#allocateIdRange(KeyRange)
Static Fields |
|
---|---|
Name | Description |
COLLISION |
Indicates that entities with keys inside the given KeyRange already exist and writing to this range will overwrite those entities. Additionally the implications of #CONTENTION apply. If overwriting entities that exist in this range is acceptable it is safe to use the given range.
The datastore's automatic ID allocator will never assign a key to a new entity that will overwrite an existing entity so entities written by the user to this range will never be overwritten by an entity with an automatically assigned key. |
CONTENTION |
Indicates the given KeyRange is empty but the datastore's automatic ID allocator may assign new entities keys in this range. However it is safe to manually assign Keys in this range if either of the following is true:
The datastore's automatic ID allocator will not assign a key to a new entity that will overwrite an existing entity, so once the range is populated there will no longer be any contention. |
EMPTY |
Indicates the given KeyRange is empty and the datastore's automatic ID allocator will not assign keys in this range to new entities. |
Static Methods |
|
---|---|
Name | Description |
valueOf(String name) |
|
values() |