Package io.deephaven.kv.meta
Class UpdateInfo
java.lang.Object
io.deephaven.kv.meta.UpdateInfo
Update info should be present with every update to the kv store.
It represents the user level metadata that should be present.
This works hand in hand with the atomic model (see AtomicDirectoryContext), where
UpdateInfos are constructed.
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetCode()The code is an identifier that makes it easy to reference the code-path that created the update.The comment is an end-user specified comment about the update.The timestamp is the time at which this request was initiated.getUser()The user is the end-user that initiated the request.getWrt()The wrt (with-respect-to) path is the level of atomicity that is expected for this update.The wrtModRevision is the expected mod-rev of the wrt path.inthashCode()toString()
-
Method Details
-
getUser
The user is the end-user that initiated the request. In the case of autonomous updates from the system, a fake user should be specified.The user String isn't inherently tied in with the notion of an authenticated user, nor ACLs. The higher level application(s) can provide a more opininionated view on this field.
-
getCode
The code is an identifier that makes it easy to reference the code-path that created the update. A human-readable code is acceptable, but a fixed-randomly-generated identifier may be best. -
getTimestamp
The timestamp is the time at which this request was initiated. -
getComment
The comment is an end-user specified comment about the update. In the case of autonomous updates from the system, a relevant comment should be specified. It is similar in spirit to a VCS commit message. -
getWrt
The wrt (with-respect-to) path is the level of atomicity that is expected for this update.See
AtomicDirectoryContextfor more information on atomicity. -
getWrtModRevision
The wrtModRevision is the expected mod-rev of the wrt path. An empty wrtModRevision means that the wrt path is expected to not exist yet.See
AtomicDirectoryContextfor more information on atomicity. -
toString
-
equals
-
hashCode
public int hashCode()
-