Package com.illumon.iris.utils
Class WriteableWorkspaceSnapshot
java.lang.Object
com.illumon.iris.db.util.WorkspaceDataSnapshot
com.illumon.iris.utils.WriteableWorkspaceSnapshot
Utility class to merge into DbInternal/WorkspaceDataSnapshot
-
Field Summary
Fields inherited from class com.illumon.iris.db.util.WorkspaceDataSnapshot
db, latestSnapshot, latestSnapshotDate, log, wsPartitions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
compute a new keyframe and write it to persistent storage if possible,void
writeSnapshot
(String snapshotDate, Table snapshot) commit current keyframe to persistent storage if possible (able to write and partition doesn't exist yet)Methods inherited from class com.illumon.iris.db.util.WorkspaceDataSnapshot
getWorkspaceUnfiltered, getWorkspaceUnfiltered, loadLatestSnapshot
-
Constructor Details
-
WriteableWorkspaceSnapshot
- Parameters:
log
- a Loggerdb
- reference to the Database to use
-
-
Method Details
-
writeSnapshot
commit current keyframe to persistent storage if possible (able to write and partition doesn't exist yet)- Parameters:
snapshotDate
- string date used as Date partitioning key for new partitionsnapshot
- a Table containing the new workspace snapshot "keyframe" rows.
-
updateSnapshot
compute a new keyframe and write it to persistent storage if possible,- Returns:
- true on success, false on failure, usually due to policy checks.
-