public static final class CalculateCommand.State extends Object
calculate command. Supports optional
in, where, and at clauses that can be chained
fluently.| Modifier and Type | Method and Description |
|---|---|
CalculateCommand.State |
at(Timestamp timestamp)
Pin this calculation to a historical
Timestamp. |
String |
ccl()
Return a CCL string equivalent to this
Command. |
String |
condition()
Return the raw CCL condition for this command.
|
Criteria |
criteria()
Return the
Criteria for this command. |
boolean |
equals(Object obj) |
CalculateCommand.State |
from(long record)
Alias for
in(long) to support alternate CCL dialects. |
CalculateCommand.State |
from(long record,
long... moreRecords)
Alias for
in(long, long...) to support alternate CCL
dialects. |
String |
function()
Return the aggregation function for this command.
|
int |
hashCode() |
CalculateCommand.State |
in(long record)
Scope this calculation to the specified
record. |
CalculateCommand.State |
in(long record,
long... moreRecords)
Scope this calculation to the specified records.
|
String |
key()
Return the key for this command.
|
List<Long> |
records()
Return the target records for this command.
|
Timestamp |
timestamp()
Return the historical
Timestamp for this command. |
String |
toString() |
CalculateCommand.State |
where(Criteria criteria)
Scope this calculation to records matching the
Criteria. |
CalculateCommand.State |
where(String ccl)
Scope this calculation to records matching the CCL condition string.
|
CalculateCommand.State |
within(long record)
Alias for
in(long) to support alternate CCL dialects. |
CalculateCommand.State |
within(long record,
long... moreRecords)
Alias for
in(long, long...) to support alternate CCL
dialects. |
public CalculateCommand.State in(long record)
record.record - the target recordpublic CalculateCommand.State in(long record, long... moreRecords)
record - the first recordmoreRecords - additional recordspublic CalculateCommand.State from(long record)
in(long) to support alternate CCL dialects.record - the target recordpublic CalculateCommand.State from(long record, long... moreRecords)
in(long, long...) to support alternate CCL
dialects.record - the first recordmoreRecords - additional recordspublic CalculateCommand.State within(long record)
in(long) to support alternate CCL dialects.record - the target recordpublic CalculateCommand.State within(long record, long... moreRecords)
in(long, long...) to support alternate CCL
dialects.record - the first recordmoreRecords - additional recordspublic CalculateCommand.State where(Criteria criteria)
Criteria.criteria - the Criteriapublic CalculateCommand.State where(String ccl)
ccl - the CCL conditionpublic CalculateCommand.State at(Timestamp timestamp)
Timestamp.timestamp - the Timestamppublic String function()
public String key()
@Nullable public List<Long> records()
null@Nullable public Criteria criteria()
Criteria for this command.Criteria, or null@Nullable public String condition()
null@Nullable public Timestamp timestamp()
Timestamp for this command.Timestamp, or nullpublic String ccl()
CommandCommand.