public class MetadataBasedFileVersioner extends Object implements Versioner
A Versioner class that uses Metadata
fields and a given
filePathSpec
to version references. The filePathSpec should be
of the form:
/[FieldName1]/other/text/.../[FieldName2]...
where FieldName1
and FieldName2
are Metadata
fields provided by the given Metadata object.
X_POINT_ID
Constructor and Description |
---|
MetadataBasedFileVersioner() |
MetadataBasedFileVersioner(String filePathSpec) |
Modifier and Type | Method and Description |
---|---|
void |
createDataStoreReferences(Product product,
Metadata metadata) |
String |
getFilePathSpec() |
boolean |
isFlatProducts() |
void |
setFilePathSpec(String filePathSpec) |
void |
setFlatProducts(boolean flatProducts) |
public MetadataBasedFileVersioner()
public MetadataBasedFileVersioner(String filePathSpec)
public void createDataStoreReferences(Product product, Metadata metadata) throws VersioningException
createDataStoreReferences
in interface Versioner
VersioningException
public String getFilePathSpec()
public void setFilePathSpec(String filePathSpec)
filePathSpec
- the filePathSpec to setpublic boolean isFlatProducts()
public void setFlatProducts(boolean flatProducts)
flatProducts
- the flatProducts to setCopyright © 1999–2017 Apache OODT. All rights reserved.