@InterfaceAudience.Private @InterfaceStability.Unstable public class Serialization extends Object
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
static String |
METADATA_FILENAME |
static String |
METADATA_TMP_FILENAME |
static String |
OLD_METADATA_FILENAME |
Modifier and Type | Method and Description |
---|---|
static boolean |
compressFile(File uncompressed,
File compressed)
Compress file using Snappy
|
static boolean |
copyFile(File from,
File to)
Copy a file using a 64K size buffer.
|
static boolean |
decompressFile(File compressed,
File decompressed)
Decompress file using Snappy
|
public static final String METADATA_FILENAME
public static final String METADATA_TMP_FILENAME
public static final String OLD_METADATA_FILENAME
public static final org.slf4j.Logger LOG
public static boolean copyFile(File from, File to) throws IOException
from
- File to copy - this file should existto
- Destination file - this file should not existIOException
public static boolean compressFile(File uncompressed, File compressed) throws IOException
uncompressed
- File to compress - this file should existcompressed
- Compressed file - this file should not existIOException
public static boolean decompressFile(File compressed, File decompressed) throws IOException
compressed
- File to compress - this file should existdecompressed
- Compressed file - this file should not existIOException
Copyright © 2009-2016 Apache Software Foundation. All Rights Reserved.