public interface AggregatedRecord<A extends AggregatedRecord<A,R>,R extends Record> extends Record
| Modifier and Type | Field and Description |
|---|---|
static String |
AGGREGATED
KEY : Indicate that this
Record is an aggregation |
static String |
END_TIME
KEY : Represent the right end of the time interval covered by this
AggregatedRecord. |
static String |
OPERATION_COUNT
KEY : Indicate The Number of
AggregatedRecord |
static String |
START_TIME
KEY : Represent the left end of the time interval covered by this
AggregatedRecord. |
CREATION_TIME, ID, RECORD_TYPE| Modifier and Type | Method and Description |
|---|---|
A |
aggregate(A record) |
A |
aggregate(R record) |
Class<R> |
getAggregable() |
Set<String> |
getAggregatedFields() |
Calendar |
getEndTime() |
int |
getOperationCount() |
Calendar |
getStartTime() |
boolean |
isAggregable(A record) |
boolean |
isAggregable(R record) |
void |
setEndTime(Calendar endTime) |
void |
setOperationCount(int operationCount) |
void |
setStartTime(Calendar startTime) |
getComputedFields, getCreationTime, getId, getQuerableKeys, getRecordType, getRequiredFields, getResourceProperties, getResourceProperty, setCreationTime, setId, setResourceProperties, setResourceProperty, validatecompareTostatic final String AGGREGATED
Record is an aggregationstatic final String OPERATION_COUNT
AggregatedRecordstatic final String START_TIME
AggregatedRecord. The value will be recorded in UTC milliseconds
from the epoch.static final String END_TIME
AggregatedRecord. The value will be recorded in UTC milliseconds
from the epoch.Set<String> getAggregatedFields()
int getOperationCount()
void setOperationCount(int operationCount)
throws InvalidValueException
InvalidValueExceptionCalendar getStartTime()
void setStartTime(Calendar startTime) throws InvalidValueException
InvalidValueExceptionCalendar getEndTime()
void setEndTime(Calendar endTime) throws InvalidValueException
InvalidValueExceptionA aggregate(A record) throws NotAggregatableRecordsExceptions
NotAggregatableRecordsExceptionsA aggregate(R record) throws NotAggregatableRecordsExceptions
NotAggregatableRecordsExceptionsboolean isAggregable(A record) throws NotAggregatableRecordsExceptions
NotAggregatableRecordsExceptionsboolean isAggregable(R record) throws NotAggregatableRecordsExceptions
NotAggregatableRecordsExceptionsCopyright © 2016. All Rights Reserved.