public class SeriesDataWriter extends DatasetInfoDataWriterEngine
DataWriterEngine.FooterMessage
Constructor and Description |
---|
SeriesDataWriter(com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
SdmxSuperBeanRetrievalManager superBeanRetrievalManager) |
Modifier and Type | Method and Description |
---|---|
void |
close(DataWriterEngine.FooterMessage... footer)
Writes the footer message (if supported by the writer implementation), and then completes the XML document, closes off all the tags, closes any resources.
|
void |
startDataset(ProvisionAgreementBean prov,
DataflowBean flow,
DataStructureBean dsd,
DatasetHeaderBean datasetHeader,
AnnotationBean... ann)
Starts a dataset with the data conforming to the DSD.
|
void |
writeHeader(HeaderBean header)
(Optional) Writes a header to the message, any missing mandatory attributes are defaulted.
|
getAllDimensions, getReportedIndex, getReportedValues, writeAttributeValue, writeObservation, writeObservation, writeSeriesKeyValue
startGroup, startSeries, writeGroupKeyValue, writeObservation
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
startGroup, startSeries, writeGroupKeyValue, writeObservation
public SeriesDataWriter(com.fasterxml.jackson.core.JsonGenerator jsonGenerator, SdmxSuperBeanRetrievalManager superBeanRetrievalManager)
public void writeHeader(HeaderBean header)
WriterEngine
writeHeader
in interface WriterEngine
writeHeader
in class DecoratedDataWriterEngine
public void close(DataWriterEngine.FooterMessage... footer)
DataWriterEngine
close
in interface DataWriterEngine
close
in class DecoratedDataWriterEngine
public void startDataset(ProvisionAgreementBean prov, DataflowBean flow, DataStructureBean dsd, DatasetHeaderBean datasetHeader, AnnotationBean... ann)
DataWriterEngine
startDataset
in interface DataWriterEngine
startDataset
in class DatasetInfoDataWriterEngine
prov
- agreement (optional) The provision agreement can be provided to give extra information about the datasetflow
- (optional) The dataflow can be provided to give extra information about the datasetdsd
- (mandatory) the data structure is used to know the dimenisonality of the datadatasetHeader
- (optional) containing, amongst others, the dataset action, reporting dates, dimension at observation if null then the dimension at observation is
assumed to be TIME_PERIOD and the dataset action is assumed to be INFORMATIONann
- (optional) any additional annotations that are attached to the dataset, can be null if no annotations exist