Package org.apache.hadoop.io.compress

Examples of org.apache.hadoop.io.compress.SnappyCodec


  public void testFile() throws Exception {
    run("test.txt");
  }

  private void run(String filename) throws FileNotFoundException, IOException{
    File snappyFile = new File(inputDir, filename + new SnappyCodec().getDefaultExtension());
    Configuration conf = new Configuration();
    CompressionCodec codec = (CompressionCodec) ReflectionUtils.newInstance(
        SnappyCodec.class, conf);

    // Compress
View Full Code Here

TOP

Related Classes of org.apache.hadoop.io.compress.SnappyCodec

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.