@InterfaceAudience.Private public class Compressor extends Object
| Constructor and Description |
|---|
Compressor() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Command line tool to compress and uncompress WALs.
|
private static void |
printHelp() |
(package private) static byte[] |
readCompressed(DataInput in,
Dictionary dict)
Deprecated.
|
(package private) static short |
toShort(byte hi,
byte lo) |
private static void |
transformFile(org.apache.hadoop.fs.Path input,
org.apache.hadoop.fs.Path output) |
(package private) static int |
uncompressIntoArray(byte[] to,
int offset,
DataInput in,
Dictionary dict)
Deprecated.
|
(package private) static void |
writeCompressed(byte[] data,
int offset,
int length,
DataOutput out,
Dictionary dict)
Deprecated.
|
public Compressor()
public static void main(String[] args) throws IOException
IOExceptionprivate static void printHelp()
private static void transformFile(org.apache.hadoop.fs.Path input, org.apache.hadoop.fs.Path output) throws IOException
IOException@Deprecated static byte[] readCompressed(DataInput in, Dictionary dict) throws IOException
in - the DataInput to read fromdict - the dictionary we use for our read.IOException@Deprecated static int uncompressIntoArray(byte[] to, int offset, DataInput in, Dictionary dict) throws IOException
to - the array to write intooffset - array offset to start writing toin - the DataInput to read fromdict - the dictionary to use for compressionIOException@Deprecated static void writeCompressed(byte[] data, int offset, int length, DataOutput out, Dictionary dict) throws IOException
data - the array to write.out - the DataOutput to write intodict - the dictionary to use for compressionIOExceptionstatic short toShort(byte hi, byte lo)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.