Package io.deephaven.kv.meta
Class MetaInfoContext
java.lang.Object
io.deephaven.kv.KeyPathContextBase
io.deephaven.kv.meta.MetaInfoContext
- All Implemented Interfaces:
Context,KeyPathContext
A structured
KeyPath model around UpdateInfo, and metadata related concerns.
See MetaInfoContext.Description for the model.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic interfaceclassclass -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final KeyPathContextDescription.Entry<UpdateInfoContext,KeyPath> An entry forMetaInfo.getCreated()with the part "created"static final KeyPathContextDescription.Entry<UpdateCountContext,KeyPath> An entry forMetaInfo.getFailCount()with the part "fail"static final KeyPathContextDescription.Entry<ModContext,KeyPath> An entry forMetaInfo.getModificationRevision()with the part "guard"static final KeyPathContextDescription.Entry<UpdateCountContext,KeyPath> An entry forMetaInfo.getSuccessCount()with the part "success"static final KeyPathContextDescription.Entry<UpdateInfoContext,KeyPath> An entry forMetaInfo.getUpdated()with the part "updated"Fields inherited from class io.deephaven.kv.KeyPathContextBase
context, description -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasCreateOrFail(UpdateInfo info, Composable onSuccess, Composable onFailure) For use as a top-level WRT, where we expect the context to not existasMeta()asUpdateOrFail(UpdateInfo info, Composable onSuccess, Composable onFailure) For use as a top-level WRT, where we expect the context to have the given mod-revstatic booleanCheck whether aKeyPathis a guard pathwatch(KVClient kvClient, WatchClient watchClient, UpdateInfoContext.UpdateInfoListener listener) watch(WatchClient client, ModContext.ModContextListener listener) watch(WatchClient client, ModContext.ModContextListener listener, long modRev) Methods inherited from class io.deephaven.kv.KeyPathContextBase
equals, getDescription, getPath, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.kv.KeyPathContext
resolve
-
Field Details
-
CREATED
An entry forMetaInfo.getCreated()with the part "created" -
UPDATED
An entry forMetaInfo.getUpdated()with the part "updated" -
GUARD
An entry forMetaInfo.getModificationRevision()with the part "guard" -
SUCCESS
An entry forMetaInfo.getSuccessCount()with the part "success" -
FAIL
An entry forMetaInfo.getFailCount()with the part "fail"
-
-
Constructor Details
-
MetaInfoContext
-
-
Method Details
-
isGuard
Check whether aKeyPathis a guard path- Parameters:
strings- TheKeyPathto check- Returns:
- true for guard paths, false for non-guard paths
-
entry
-
resolveGuard
-
resolveFail
-
watch
-
watch
public WatchClient.Watch watch(WatchClient client, ModContext.ModContextListener listener, long modRev) -
watch
public CompletableFuture<WatchClient.Watch> watch(KVClient kvClient, WatchClient watchClient, UpdateInfoContext.UpdateInfoListener listener) -
asCreateOrFail
public AtomicDirectoryContext.AtomicUpdateWrt asCreateOrFail(UpdateInfo info, Composable onSuccess, Composable onFailure) For use as a top-level WRT, where we expect the context to not exist -
asUpdateOrFail
public AtomicDirectoryContext.AtomicUpdateWrt asUpdateOrFail(UpdateInfo info, Composable onSuccess, Composable onFailure) For use as a top-level WRT, where we expect the context to have the given mod-rev -
asMeta
-