Class HashedTruncatedNTupleExtension
- java.lang.Object
-
- edu.wisc.library.ocfl.core.extension.storage.layout.HashedTruncatedNTupleExtension
-
- All Implemented Interfaces:
OcflExtension,OcflStorageLayoutExtension
public class HashedTruncatedNTupleExtension extends Object implements OcflStorageLayoutExtension
Implementation of the Hashed Truncated N-tuple Trees for OCFL Storage Hierarchies extension. TODO add link to spec when finalized
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXTENSION_NAME
-
Constructor Summary
Constructors Constructor Description HashedTruncatedNTupleExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Class<? extends OcflExtensionConfig>getExtensionConfigClass()The class that represents the extensions deserialized configuration.StringgetExtensionName()Returns the name of the extensionvoidinit(OcflExtensionConfig config)Configures the extension.StringmapObjectId(String objectId)Maps an object id to its path within the OCFL storage root.
-
-
-
Field Detail
-
EXTENSION_NAME
public static final String EXTENSION_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getExtensionName
public String getExtensionName()
Returns the name of the extension- Specified by:
getExtensionNamein interfaceOcflExtension- Returns:
- extension name
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceOcflStorageLayoutExtension- Returns:
- the description text that should be used in ocfl_layout.json
-
init
public void init(OcflExtensionConfig config)
Configures the extension. This method must be called before the extension can be used.- Specified by:
initin interfaceOcflStorageLayoutExtension- Parameters:
config- extension configuration
-
getExtensionConfigClass
public Class<? extends OcflExtensionConfig> getExtensionConfigClass()
Description copied from interface:OcflStorageLayoutExtensionThe class that represents the extensions deserialized configuration.- Specified by:
getExtensionConfigClassin interfaceOcflStorageLayoutExtension- Returns:
- configuration class
-
mapObjectId
public String mapObjectId(String objectId)
Maps an object id to its path within the OCFL storage root.- Specified by:
mapObjectIdin interfaceOcflStorageLayoutExtension- Parameters:
objectId- the object id- Returns:
- the path to the object root relative to the OCFL storage root
-
-