Sha256: e273d744475b7f45d0c69ab2740a5dea2f12e2fbf7b038453513bb1f3e4328fe

Contents?: true

Size: 609 Bytes

Versions: 5

Compression:

Stored size: 609 Bytes

Contents

package org.embulk.output.orc;

import com.google.common.base.Throwables;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

class OrcOutputPluginHelper
{
    protected OrcOutputPluginHelper()
    {
        throw new UnsupportedOperationException();
    }

    static void removeOldFile(String fpath)
    {
        Path path = Paths.get(fpath);
        // TODO: Check local file. not HDFS or S3.
        try {
            Files.deleteIfExists(path);
        }
        catch (IOException e) {
            Throwables.propagate(e);
        }
    }
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
embulk-output-orc-0.3.2 src/main/java/org/embulk/output/orc/OrcOutputPluginHelper.java
embulk-output-orc-0.3.1 src/main/java/org/embulk/output/orc/OrcOutputPluginHelper.java
embulk-output-orc-0.3.0 src/main/java/org/embulk/output/orc/OrcOutputPluginHelper.java
embulk-output-orc-0.2.4 src/main/java/org/embulk/output/orc/OrcOutputPluginHelper.java
embulk-output-orc-0.2.2 src/main/java/org/embulk/output/orc/OrcOutputPluginHelper.java