Package org.gcube.documentstore.records
Interface AggregatedRecord<A extends AggregatedRecord<A,R>,R extends Record>
- All Superinterfaces:
Comparable<Record>,Record,Serializable
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringKEY : Indicate that thisRecordis an aggregationstatic final StringKEY : Represent the right end of the time interval covered by thisAggregatedRecord.static final StringKEY : Indicate The Number ofAggregatedRecordstatic final StringKEY : Represent the left end of the time interval covered by thisAggregatedRecord.Fields inherited from interface org.gcube.documentstore.records.Record
CREATION_TIME, ID, RECORD_TYPE -
Method Summary
Modifier and TypeMethodDescriptionintbooleanisAggregable(A record) booleanisAggregable(R record) voidsetEndTime(Calendar endTime) voidsetOperationCount(int operationCount) voidsetStartTime(Calendar startTime) Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.gcube.documentstore.records.Record
getComputedFields, getCreationTime, getId, getQuerableKeys, getRecordType, getRequiredFields, getResourceProperties, getResourceProperty, removeResourceProperty, setCreationTime, setId, setResourceProperties, setResourceProperty, validate
-
Field Details
-
AGGREGATED
KEY : Indicate that thisRecordis an aggregation- See Also:
-
OPERATION_COUNT
KEY : Indicate The Number ofAggregatedRecord- See Also:
-
START_TIME
KEY : Represent the left end of the time interval covered by thisAggregatedRecord. The value will be recorded in UTC milliseconds from the epoch.- See Also:
-
END_TIME
KEY : Represent the right end of the time interval covered by thisAggregatedRecord. The value will be recorded in UTC milliseconds from the epoch.- See Also:
-
-
Method Details
-
getAggregatedFields
- Returns:
- a Set containing the keys of aggregated fields The returned Set MUST be a copy of the internal representation. Any modification to the returned Set MUST not affect the object
-
getOperationCount
int getOperationCount() -
setOperationCount
- Throws:
InvalidValueException
-
getStartTime
Calendar getStartTime() -
setStartTime
- Throws:
InvalidValueException
-
getEndTime
Calendar getEndTime() -
setEndTime
- Throws:
InvalidValueException
-
aggregate
- Throws:
NotAggregatableRecordsExceptions
-
aggregate
- Throws:
NotAggregatableRecordsExceptions
-
isAggregable
- Throws:
NotAggregatableRecordsExceptions
-
isAggregable
- Throws:
NotAggregatableRecordsExceptions
-
getAggregable
-