public class Aggregator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected File |
aggregateRecordsBackupFile |
protected AggregationStatus |
aggregationStatus |
protected int |
malformedRecordNumber |
protected File |
malformedRecordsFile |
protected org.gcube.com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
protected File |
originalRecordsbackupFile |
protected Calendar |
startTime |
| Constructor and Description |
|---|
Aggregator(AggregationStatus aggregationStatus,
File originalRecordsbackupFile,
File aggregateRecordsBackupFile) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addProperty(org.gcube.com.fasterxml.jackson.databind.node.ObjectNode objectNode,
String key,
Object value) |
void |
aggregate() |
protected void |
aggregateRow(AggregatorBuffer aggregatorBuffer,
String json) |
protected int |
elaborateRow(org.gcube.com.fasterxml.jackson.databind.node.ObjectNode content,
AggregatorBuffer aggregatorBuffer,
int originalRecordsCounter) |
protected Calendar |
getCalendar(java.time.OffsetDateTime offsetDateTime) |
protected void |
retrieveAndAggregate(ResultSet resultSet) |
protected final AggregationStatus aggregationStatus
protected final File originalRecordsbackupFile
protected final File aggregateRecordsBackupFile
protected final File malformedRecordsFile
protected int malformedRecordNumber
protected org.gcube.com.fasterxml.jackson.databind.ObjectMapper objectMapper
protected Calendar startTime
public Aggregator(AggregationStatus aggregationStatus, File originalRecordsbackupFile, File aggregateRecordsBackupFile)
protected int elaborateRow(org.gcube.com.fasterxml.jackson.databind.node.ObjectNode content,
AggregatorBuffer aggregatorBuffer,
int originalRecordsCounter)
throws Exception
Exceptionprotected void addProperty(org.gcube.com.fasterxml.jackson.databind.node.ObjectNode objectNode,
String key,
Object value)
protected Calendar getCalendar(java.time.OffsetDateTime offsetDateTime)
protected void retrieveAndAggregate(ResultSet resultSet) throws Exception
Exceptionprotected void aggregateRow(AggregatorBuffer aggregatorBuffer, String json) throws Exception
ExceptionCopyright © 2022. All Rights Reserved.