Examples of SnappyCodec


Examples of com.facebook.hive.orc.compression.SnappyCodec

      case NONE:
        return null;
      case ZLIB:
        return new ZlibCodec(conf);
      case SNAPPY:
        return new SnappyCodec();
      case LZO:
        try {
          Class<? extends CompressionCodec> lzo =
              (Class<? extends CompressionCodec>)
                  Class.forName("com.facebook.hive.orc.LzoCodec");
View Full Code Here

Examples of com.facebook.hive.orc.compression.SnappyCodec

    }
  }

  @Test
  public void testCompressedSeek() throws Exception {
    CompressionCodec codec = new SnappyCodec();
    TestInStream.OutputCollector collect = new TestInStream.OutputCollector();

    ReaderWriterProfiler.setProfilerOptions(null);
    RunLengthByteWriter out = new RunLengthByteWriter(new OutStream("test", 500,
        codec, collect, new MemoryEstimate()));
View Full Code Here

Examples of com.facebook.hive.orc.compression.SnappyCodec

    }
  }

  @Test
  public void testCompressedSeek() throws Exception {
    CompressionCodec codec = new SnappyCodec();
    TestInStream.OutputCollector collect = new TestInStream.OutputCollector();

    ReaderWriterProfiler.setProfilerOptions(null);
    RunLengthByteWriter out = new RunLengthByteWriter(new OutStream("test", 500,
        codec, collect));
View Full Code Here

Examples of com.facebook.hive.orc.compression.SnappyCodec

      case NONE:
        return null;
      case ZLIB:
        return new ZlibCodec(conf);
      case SNAPPY:
        return new SnappyCodec();
      case LZO:
        try {
          Class<? extends CompressionCodec> lzo =
              (Class<? extends CompressionCodec>)
                  Class.forName("com.facebook.hive.orc.LzoCodec");
View Full Code Here

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
Copyright © 2018 www.massapi.com. 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.