Package network.oxalis.statistics.api
Interface StatisticsTransformer
-
- All Known Implementing Classes:
StatisticsToXmlTransformer
public interface StatisticsTransformerTransforms 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:
- Invoke
startEntry()first - Invoke the writeXxxx methods for each field
- Complete the entry by calling
endEntry()
-
-
Field Summary
Fields Modifier and Type Field Description static StringACCESS_POINT_ID_ELEMENT_NAMEstatic StringCHANNEL_ELEMENT_NAMEstatic StringCOUNT_ELEMENT_NAMEstatic StringDIRECTION_ELEMENT_NAMEstatic StringDOCUMENT_TYPE_ELEMENT_NAMEstatic StringENTRY_START_ELEMENT_NAMEstatic StringPARTICIPANT_ID_ELEMENT_NAMEstatic StringPERIOD_ELEMENT_NAMEstatic StringPROFILE_ID_ELEMENT_NAMEstatic StringSTATISTICS_DOCUMENT_START_ELEMENT_NAME
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidendEntry()Completes the current statistics entryvoidendStatistics()voidstartEntry()Invoked by the transformer upon the start of a new entry (row, line, etc.) of statistical datavoidstartStatistics(Date start, Date end)voidwriteAccessPointIdentifier(String accessPointIdentifier)voidwriteChannel(String channel)voidwriteCount(int count)voidwriteDirection(String direction)voidwriteDocumentType(String documentType)voidwriteParticipantIdentifier(String participantId)voidwritePeriod(String period)voidwriteProfileId(String profileId)
-
-
-
Field Detail
-
STATISTICS_DOCUMENT_START_ELEMENT_NAME
static final String STATISTICS_DOCUMENT_START_ELEMENT_NAME
- See Also:
- Constant Field Values
-
ENTRY_START_ELEMENT_NAME
static final String ENTRY_START_ELEMENT_NAME
- See Also:
- Constant Field Values
-
ACCESS_POINT_ID_ELEMENT_NAME
static final String ACCESS_POINT_ID_ELEMENT_NAME
- See Also:
- Constant Field Values
-
PARTICIPANT_ID_ELEMENT_NAME
static final String PARTICIPANT_ID_ELEMENT_NAME
- See Also:
- Constant Field Values
-
DOCUMENT_TYPE_ELEMENT_NAME
static final String DOCUMENT_TYPE_ELEMENT_NAME
- See Also:
- Constant Field Values
-
PROFILE_ID_ELEMENT_NAME
static final String PROFILE_ID_ELEMENT_NAME
- See Also:
- Constant Field Values
-
CHANNEL_ELEMENT_NAME
static final String CHANNEL_ELEMENT_NAME
- See Also:
- Constant Field Values
-
COUNT_ELEMENT_NAME
static final String COUNT_ELEMENT_NAME
- See Also:
- Constant Field Values
-
PERIOD_ELEMENT_NAME
static final String PERIOD_ELEMENT_NAME
- See Also:
- Constant Field Values
-
DIRECTION_ELEMENT_NAME
static final String DIRECTION_ELEMENT_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
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()
-
-