public class OrcAcidUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ACID_STATS |
static String |
DELTA_SIDE_FILE_SUFFIX |
Constructor and Description |
---|
OrcAcidUtils() |
Modifier and Type | Method and Description |
---|---|
static long |
getLastFlushLength(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path deltaFile)
Read the side file to get the last flush length.
|
static org.apache.hadoop.fs.Path |
getSideFile(org.apache.hadoop.fs.Path main)
Get the filename of the ORC ACID side file that contains the lengths
of the intermediate footers.
|
static AcidStats |
parseAcidStats(Reader reader) |
public static final String ACID_STATS
public static final String DELTA_SIDE_FILE_SUFFIX
public static org.apache.hadoop.fs.Path getSideFile(org.apache.hadoop.fs.Path main)
main
- the main ORC filenamepublic static long getLastFlushLength(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path deltaFile) throws IOException
fs
- the file system to usedeltaFile
- the path of the delta fileIOException
Copyright © 2016 The Apache Software Foundation. All rights reserved.