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

com.sap.hana.datalake.files.Hdlfs Maven / Gradle / Ivy

Go to download

An implementation of org.apache.hadoop.fs.FileSystem targeting SAP HANA Data Lake Files.

There is a newer version: 3.0.27
Show newest version
package com.sap.hana.datalake.files;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.DelegateToFileSystem;
import org.apache.hadoop.fs.FileSystem;

import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;

public class Hdlfs extends DelegateToFileSystem {

  public static final String SCHEME = "hdlfs";

  Hdlfs(final URI theUri, final Configuration conf) throws IOException, URISyntaxException {
    super(theUri, createHdlfsFileSystem(theUri, conf), conf, SCHEME, false);
  }

  private static FileSystem createHdlfsFileSystem(final URI theUri, final Configuration conf) {
    final FileSystem fs = new HdlfsFileSystem();

    try {
      fs.initialize(theUri, conf);
    } catch (final IOException ex) {
      throw new RuntimeException(ex);
    }

    return fs;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy