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 TypeMethodDescriptionbooleancompute a new keyframe and write it to persistent storage if possible,voidwriteSnapshot(com.fishlib.configuration.Configuration config, 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
public void writeSnapshot(com.fishlib.configuration.Configuration config, String snapshotDate, Table snapshot) commit current keyframe to persistent storage if possible (able to write and partition doesn't exist yet)- Parameters:
config- system Configuration refsnapshotDate- string date used as Date partitioning key for new partitionsnapshot- a Table containing the new workspace snapshot "keyframe" rows.
-
updateSnapshot
public boolean 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.
-