All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.canova.spark.functions.pairdata.PathToKeyConverterFilename Maven / Gradle / Ivy

There is a newer version: 0.0.0.17
Show newest version
package org.canova.spark.functions.pairdata;

import org.apache.commons.io.FilenameUtils;

/** Convert the path to a key by taking the full file name (excluding the file extension and directories) */
public class PathToKeyConverterFilename implements PathToKeyConverter {

    @Override
    public String getKey(String path) {
        return FilenameUtils.getBaseName(path);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy