public class AcquisitionDateVersioner extends MetadataBasedFileVersioner
<code>AcquisitionDate</code> - if present, takes as is, and assumes it is in the yyMMdd format.<br/> <code>StartDateTime</code> - if present, assumes it is in yyyy-MM-ddTHH:mm:ss.000Z, or ISO8601 format, reformats it to yyMMdd, and then uses it for the value of <code>AcquisitionDate</code><br/>If neither of the above met fields are present, the Versioner will generate a new DateTime, and use the value of it (formatted as yyMMdd) for the AcquisitionDate.
Modifier and Type | Field and Description |
---|---|
protected static String |
ACQ_DATE_FORMAT |
protected static String |
ACQUISITION_DATE |
protected static String |
START_DATE_TIME |
X_POINT_ID
Constructor and Description |
---|
AcquisitionDateVersioner() |
Modifier and Type | Method and Description |
---|---|
void |
createDataStoreReferences(Product product,
Metadata metadata) |
getFilePathSpec, isFlatProducts, setFilePathSpec, setFlatProducts
protected static final String ACQUISITION_DATE
protected static String ACQ_DATE_FORMAT
protected static final String START_DATE_TIME
public void createDataStoreReferences(Product product, Metadata metadata) throws VersioningException
createDataStoreReferences
in interface Versioner
createDataStoreReferences
in class MetadataBasedFileVersioner
VersioningException
Copyright © 1999–2017 Apache OODT. All rights reserved.