Package io.deephaven.api.snapshot
Class SnapshotWhenOptions
java.lang.Object
io.deephaven.api.snapshot.SnapshotWhenOptions
The options for creating a snapshotting table with respect to the
base and trigger tables of
TableOperations.snapshotWhen(Object, SnapshotWhenOptions).
When trigger updates, a snapshot of base and the "stamp key" from trigger form the resulting
table. The "stamp key" is the last row of the trigger table, limited by the stamp
columns. If trigger is empty, the "stamp key" will be represented by null values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SnapshotWhenOptions.Builderbuilder()final StringCreates a description of the options.abstract Set<SnapshotWhenOptions.Flag>flags()The feature flags.final booleanhas(SnapshotWhenOptions.Flag flag) Check if theflagis set.static SnapshotWhenOptionsCreates an options with the flags andstampColumns..static SnapshotWhenOptionsof(SnapshotWhenOptions.Flag... flags) Creates an options with theflags.static SnapshotWhenOptionsof(Iterable<SnapshotWhenOptions.Flag> flags, String... stampColumns) Creates an options containing theflagsandstampColumns.abstract List<JoinAddition>Thetriggertable stamp columns.
-
Constructor Details
-
SnapshotWhenOptions
public SnapshotWhenOptions()
-
-
Method Details
-
builder
-
of
Creates an options with theflags.Equivalent to
builder().addFlags(flags).build().- Parameters:
flags- the flags- Returns:
- the snapshot control
-
of
public static SnapshotWhenOptions of(boolean initial, boolean incremental, boolean history, String... stampColumns) Creates an options with the flags andstampColumns..- Parameters:
initial- forSnapshotWhenOptions.Flag.INITIALincremental- forSnapshotWhenOptions.Flag.INCREMENTALhistory- forSnapshotWhenOptions.Flag.HISTORYstampColumns- the stamp columns- Returns:
- the options
-
of
public static SnapshotWhenOptions of(Iterable<SnapshotWhenOptions.Flag> flags, String... stampColumns) Creates an options containing theflagsandstampColumns.- Parameters:
flags- the flagsstampColumns- the stamp columns- Returns:
- the snapshot control
- See Also:
-
flags
The feature flags. -
stampColumns
Thetriggertable stamp columns. If empty, it represents all columns from thetriggertable. -
has
Check if theflagis set.Equivalent to
flags().contains(flag).- Parameters:
flag- the flag- Returns:
- true if
thishasflag
-
description
Creates a description of the options.- Returns:
- the description
-