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
Modifier and TypeClassDescriptionstatic interface
static enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SnapshotWhenOptions.Builder
builder()
final String
Creates a description of the options.abstract Set<SnapshotWhenOptions.Flag>
flags()
The feature flags.final boolean
has
(SnapshotWhenOptions.Flag flag) Check if theflag
is set.static SnapshotWhenOptions
Creates an options with the flags andstampColumns
..static SnapshotWhenOptions
of
(SnapshotWhenOptions.Flag... flags) Creates an options with theflags
.static SnapshotWhenOptions
of
(Iterable<SnapshotWhenOptions.Flag> flags, String... stampColumns) Creates an options containing theflags
andstampColumns
.abstract List<JoinAddition>
Thetrigger
table 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.INITIAL
incremental
- forSnapshotWhenOptions.Flag.INCREMENTAL
history
- forSnapshotWhenOptions.Flag.HISTORY
stampColumns
- the stamp columns- Returns:
- the options
-
of
public static SnapshotWhenOptions of(Iterable<SnapshotWhenOptions.Flag> flags, String... stampColumns) Creates an options containing theflags
andstampColumns
.- Parameters:
flags
- the flagsstampColumns
- the stamp columns- Returns:
- the snapshot control
- See Also:
-
flags
The feature flags. -
stampColumns
Thetrigger
table stamp columns. If empty, it represents all columns from thetrigger
table. -
has
Check if theflag
is set.Equivalent to
flags().contains(flag)
.- Parameters:
flag
- the flag- Returns:
- true if
this
hasflag
-
description
Creates a description of the options.- Returns:
- the description
-