Example usage for org.apache.hadoop.util NativeCodeLoader buildSupportsSnappy

List of usage examples for org.apache.hadoop.util NativeCodeLoader buildSupportsSnappy

Introduction

In this page you can find the example usage for org.apache.hadoop.util NativeCodeLoader buildSupportsSnappy.

Prototype

public static native boolean buildSupportsSnappy();

Source Link

Document

Returns true only if this build was compiled with support for snappy.

Usage

From source file:com.facebook.presto.hadoop.TestHadoopNative.java

License:Apache License

@Test
public void testNative() {
    HadoopNative.requireHadoopNative();/*from  w ww .j  a v  a2  s  .  c o  m*/

    assertTrue(NativeCodeLoader.isNativeCodeLoaded());
    assertTrue(NativeCodeLoader.buildSupportsSnappy());
    assertTrue(ZlibFactory.isNativeZlibLoaded(new Configuration()));
    assertTrue(Bzip2Factory.isNativeBzip2Loaded(new Configuration()));
}