org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor Java Examples

The following examples show how to use org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Bzip2Factory.java    From hadoop with Apache License 2.0 2 votes vote down vote up
/**
 * Return the appropriate type of the bzip2 compressor. 
 * 
 * @param conf configuration
 * @return the appropriate type of the bzip2 compressor.
 */
public static Class<? extends Compressor> 
getBzip2CompressorType(Configuration conf) {
  return isNativeBzip2Loaded(conf) ? 
    Bzip2Compressor.class : BZip2DummyCompressor.class;
}
 
Example #2
Source File: Bzip2Factory.java    From hadoop with Apache License 2.0 2 votes vote down vote up
/**
 * Return the appropriate implementation of the bzip2 compressor. 
 * 
 * @param conf configuration
 * @return the appropriate implementation of the bzip2 compressor.
 */
public static Compressor getBzip2Compressor(Configuration conf) {
  return isNativeBzip2Loaded(conf)? 
    new Bzip2Compressor(conf) : new BZip2DummyCompressor();
}
 
Example #3
Source File: Bzip2Factory.java    From big-c with Apache License 2.0 2 votes vote down vote up
/**
 * Return the appropriate type of the bzip2 compressor. 
 * 
 * @param conf configuration
 * @return the appropriate type of the bzip2 compressor.
 */
public static Class<? extends Compressor> 
getBzip2CompressorType(Configuration conf) {
  return isNativeBzip2Loaded(conf) ? 
    Bzip2Compressor.class : BZip2DummyCompressor.class;
}
 
Example #4
Source File: Bzip2Factory.java    From big-c with Apache License 2.0 2 votes vote down vote up
/**
 * Return the appropriate implementation of the bzip2 compressor. 
 * 
 * @param conf configuration
 * @return the appropriate implementation of the bzip2 compressor.
 */
public static Compressor getBzip2Compressor(Configuration conf) {
  return isNativeBzip2Loaded(conf)? 
    new Bzip2Compressor(conf) : new BZip2DummyCompressor();
}
 
Example #5
Source File: BZip2Codec.java    From RDFS with Apache License 2.0 2 votes vote down vote up
/**
* This functionality is currently not supported.
*
* @throws java.lang.UnsupportedOperationException
*             Throws UnsupportedOperationException
*/
public Class<? extends org.apache.hadoop.io.compress.Compressor> getCompressorType() {
  return BZip2DummyCompressor.class;
}
 
Example #6
Source File: BZip2Codec.java    From RDFS with Apache License 2.0 2 votes vote down vote up
/**
* This functionality is currently not supported.
*
* @throws java.lang.UnsupportedOperationException
*             Throws UnsupportedOperationException
*/
public Compressor createCompressor() {
  return new BZip2DummyCompressor();
}
 
Example #7
Source File: BZip2Codec.java    From hadoop-gpu with Apache License 2.0 2 votes vote down vote up
/**
* This functionality is currently not supported.
*
* @throws java.lang.UnsupportedOperationException
*             Throws UnsupportedOperationException
*/
public Class<? extends org.apache.hadoop.io.compress.Compressor> getCompressorType() {
  return BZip2DummyCompressor.class;
}
 
Example #8
Source File: BZip2Codec.java    From hadoop-gpu with Apache License 2.0 2 votes vote down vote up
/**
* This functionality is currently not supported.
*
* @throws java.lang.UnsupportedOperationException
*             Throws UnsupportedOperationException
*/
public Compressor createCompressor() {
  return new BZip2DummyCompressor();
}