1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 // This source code is licensed under both the GPLv2 (found in the 3 // COPYING file in the root directory) and Apache 2.0 License 4 // (found in the LICENSE.Apache file in the root directory). 5 6 package org.rocksdb; 7 8 /** 9 * HDFS environment. 10 */ 11 public class HdfsEnv extends Env { 12 13 /** 14 <p>Creates a new environment that is used for HDFS environment.</p> 15 * 16 * <p>The caller must delete the result when it is 17 * no longer needed.</p> 18 * 19 * @param fsName the HDFS as a string in the form "hdfs://hostname:port/" 20 */ HdfsEnv(final String fsName)21 public HdfsEnv(final String fsName) { 22 super(createHdfsEnv(fsName)); 23 } 24 createHdfsEnv(final String fsName)25 private static native long createHdfsEnv(final String fsName); disposeInternal(final long handle)26 @Override protected final native void disposeInternal(final long handle); 27 } 28