Class Aggregator


  • public class Aggregator
    extends Object
    Author:
    Luca Frosini (ISTI - CNR)
    • Field Detail

      • originalRecordsbackupFile

        protected final File originalRecordsbackupFile
      • aggregateRecordsBackupFile

        protected final File aggregateRecordsBackupFile
      • malformedRecordsFile

        protected final File malformedRecordsFile
      • malformedRecordNumber

        protected int malformedRecordNumber
      • objectMapper

        protected org.gcube.com.fasterxml.jackson.databind.ObjectMapper objectMapper
      • startTime

        protected Calendar startTime
    • Constructor Detail

      • Aggregator

        public Aggregator​(AggregationStatus aggregationStatus,
                          File originalRecordsbackupFile,
                          File aggregateRecordsBackupFile)
    • Method Detail

      • elaborateRow

        protected int elaborateRow​(org.gcube.com.fasterxml.jackson.databind.node.ObjectNode content,
                                   AggregatorBuffer aggregatorBuffer,
                                   int originalRecordsCounter)
                            throws Exception
        Throws:
        Exception
      • addProperty

        protected void addProperty​(org.gcube.com.fasterxml.jackson.databind.node.ObjectNode objectNode,
                                   String key,
                                   Object value)
      • getCalendar

        protected Calendar getCalendar​(java.time.OffsetDateTime offsetDateTime)