Package org.apache.hadoop.io.compress

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


    }
  }

  public static DirectDecompressorShim getDirectDecompressor(
      DirectCompressionType codec) {
    DirectDecompressor decompressor = null;
    switch (codec) {
    case ZLIB: {
      decompressor = new ZlibDirectDecompressor();
    }
      break;
View Full Code Here


    CompressionCodec c = getCodec(codecName);
    //TODO: Create the decompressor only once at init time.
    Class<?> cx = c.getClass();

    DirectDecompressionCodec d=null;
    DirectDecompressor decompr=null;

    if (DirectDecompressionCodec.class.isAssignableFrom(cx)) {
      d=(DirectDecompressionCodec)c;
    }

    if(d!=null) {
      decompr = d.createDirectDecompressor();
    }

    if(d!=null && decompr!=null){
      decompr.decompress(inpBuffer, outBuffer);
    }else{
      logger.warn("This Hadoop implementation does not support a " + codecName +
        " direct decompression codec interface. "+
        "Direct decompression is available only on *nix systems with Hadoop 2.3 or greater. "+
        "Read operations will be a little slower. ");
View Full Code Here

TOP

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

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.