Interface StatisticsTransformer

  • All Known Implementing Classes:
    StatisticsToXmlTransformer

    public interface StatisticsTransformer
    Transforms aggregated statistics into another format. This interface has been designed to maximize performance when transforming the results from the statistics repository into whatever format the implementor of this interface has choosen. I.e. transformation from SQL ResultSet to XML, which will not require any new objects to be created.

    To use it:

    1. Invoke startEntry() first
    2. Invoke the writeXxxx methods for each field
    3. Complete the entry by calling endEntry()
    User: steinar Date: 24.02.13 Time: 10:27
    • Method Detail

      • startStatistics

        void startStatistics​(Date start,
                             Date end)
      • startEntry

        void startEntry()
        Invoked by the transformer upon the start of a new entry (row, line, etc.) of statistical data
      • writeAccessPointIdentifier

        void writeAccessPointIdentifier​(String accessPointIdentifier)
      • writePeriod

        void writePeriod​(String period)
      • writeDirection

        void writeDirection​(String direction)
      • writeParticipantIdentifier

        void writeParticipantIdentifier​(String participantId)
      • writeDocumentType

        void writeDocumentType​(String documentType)
      • writeProfileId

        void writeProfileId​(String profileId)
      • writeChannel

        void writeChannel​(String channel)
      • writeCount

        void writeCount​(int count)
      • endEntry

        void endEntry()
        Completes the current statistics entry
      • endStatistics

        void endStatistics()