public interface IFileNameSupplier extends Supplier<String>, Serializable
To get it straight, if an archive is a filesystem with root "/data/archive", a batch file in there could be "/data/archive/2019/09/2/punchplatformxyz.csv.gz". The "2019/09/2/punchplatformxyz.csv.gz" part is the called object id.
This sounds simple but the logic of generating the id is very configurable and depends on each type of archive type (filesystem, object storage).
Hence the need to have such id IFileNameSupplier
.
Modifier and Type | Method and Description |
---|---|
IFileNameSupplier |
prepare(org.thales.punch.libraries.objectstorage.indexing.BatchMetadata metaData)
Prepare this supplier before you use it to get a new batch identifier.
|
IFileNameSupplier prepare(org.thales.punch.libraries.objectstorage.indexing.BatchMetadata metaData)
BatchMetadata
. It allows the supplier to generate the correct identifier.metaData
- the current batch meta data.Copyright © 2022. All rights reserved.