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

io.delta.flink.source.internal.utils.SourceUtils Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
package io.delta.flink.source.internal.utils;

import org.apache.flink.core.fs.Path;
import static org.apache.flink.util.Preconditions.checkArgument;

/**
 * A utility class for Source connector
 */
public final class SourceUtils {

    private SourceUtils() {

    }

    /**
     * Converts Flink's {@link Path} to String
     *
     * @param path Flink's {@link Path}
     * @return String representation of {@link Path}
     */
    public static String pathToString(Path path) {
        checkArgument(path != null, "Path argument cannot be be null.");
        return path.toUri().normalize().toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy